summaryrefslogtreecommitdiffstats
path: root/a52dec.spec
diff options
context:
space:
mode:
authorSérgio M. Basto <sergio@serjux.com>2016-08-16 22:15:19 +0100
committerSérgio M. Basto <sergio@serjux.com>2016-08-16 22:15:19 +0100
commit6b5ddd6cc1d28d56224646b56b693c67f1f65405 (patch)
tree6e4bbf02a1645ae0513a28c2dd0e84ac8631b71f /a52dec.spec
parentea68cf35fb463b81ca348437329bd04674714b69 (diff)
downloada52dec-6b5ddd6cc1d28d56224646b56b693c67f1f65405.zip
a52dec-6b5ddd6cc1d28d56224646b56b693c67f1f65405.tar.gz
a52dec-6b5ddd6cc1d28d56224646b56b693c67f1f65405.tar.xz
Clean spec, with Vascom, rfbz #4193, add license tag
Diffstat (limited to 'a52dec.spec')
-rw-r--r--a52dec.spec44
1 files changed, 15 insertions, 29 deletions
diff --git a/a52dec.spec b/a52dec.spec
index 684bee7..f790300 100644
--- a/a52dec.spec
+++ b/a52dec.spec
@@ -1,23 +1,22 @@
Summary: A free ATSC A/52 stream decoder
Name: a52dec
Version: 0.7.4
-Release: 19%{?dist}
+Release: 20%{?dist}
License: GPLv2
Group: System Environment/Libraries
-URL: http://liba52.sourceforge.net/
-Source0: http://liba52.sourceforge.net/files/%{name}-%{version}.tar.gz
+URL: http://liba52.sourceforge.net
+Source0: %{url}/files/%{name}-%{version}.tar.gz
Patch0: a52dec-configure-optflags.patch
Patch1: a52dec-0.7.4-rpath64.patch
Patch2: liba52-silence.patch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
-BuildRequires: %{__perl}
+
+BuildRequires: perl
%package devel
Summary: Development files needed for a52dec
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-#---------------------------------------------------------------------
%description
liba52 is a free library for decoding ATSC A/52 streams. The A/52
@@ -31,57 +30,44 @@ standard is used in a variety of applications, including digital
television and DVD. It is also known as AC-3.
This package contains development files for a52dec.
-#---------------------------------------------------------------------
%prep
-%setup -q
-%patch0
-%patch1 -p1
-%patch2 -p1
+%autosetup -p1
%{__perl} -pi -e 's/-prefer-non-pic\b/-prefer-pic/' \
configure liba52/configure.incl
-#---------------------------------------------------------------------
%build
%configure --enable-shared --disable-static
-make %{?_smp_mflags}
+%make_build
-#---------------------------------------------------------------------
%install
-rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=%{buildroot}
-
-#---------------------------------------------------------------------
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+%make_install
-#---------------------------------------------------------------------
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
-%defattr(-,root,root,-)
%exclude %{_libdir}/liba52.la
-%doc AUTHORS COPYING ChangeLog HISTORY NEWS TODO
+%doc AUTHORS ChangeLog HISTORY NEWS TODO
+%license COPYING
%{_libdir}/liba52.so.*
-%{_bindir}/a52dec
+%{_bindir}/%{name}
%{_bindir}/extract_a52
%{_mandir}/man1/a52dec.1*
%{_mandir}/man1/extract_a52.1*
%files devel
-%defattr(-,root,root,-)
%doc doc/liba52.txt
-%{_includedir}/a52dec
+%{_includedir}/%{name}
%{_libdir}/liba52.so
-#---------------------------------------------------------------------
-
%changelog
+* Tue Aug 16 2016 Sérgio Basto <sergio@serjux.com> - 0.7.4-20
+- Clean spec, with Vascom, rfbz #4193, add license tag
+
* Sat Aug 30 2014 Sérgio Basto <sergio@serjux.com> - 0.7.4-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild