[a52dec] Clean spec, with Vascom, rfbz #4193, add license tag

Sérgio M. Basto sergiomb at rpmfusion.org
Tue Aug 16 23:17:35 CEST 2016


commit 6b5ddd6cc1d28d56224646b56b693c67f1f65405
Author: Sérgio M. Basto <sergio at serjux.com>
Date:   Tue Aug 16 22:15:19 2016 +0100

    Clean spec, with Vascom, rfbz #4193, add license tag

 a52dec-configure-optflags.patch |  4 ++--
 a52dec.spec                     | 44 ++++++++++++++---------------------------
 2 files changed, 17 insertions(+), 31 deletions(-)
---
diff --git a/a52dec-configure-optflags.patch b/a52dec-configure-optflags.patch
index 3b62117..a0b8463 100644
--- a/a52dec-configure-optflags.patch
+++ b/a52dec-configure-optflags.patch
@@ -1,5 +1,5 @@
---- configure~	2002-07-28 06:50:42.000000000 +0300
-+++ configure	2003-04-13 17:20:53.000000000 +0300
+--- ./configure~	2002-07-28 06:50:42.000000000 +0300
++++ ./configure	2003-04-13 17:20:53.000000000 +0300
 @@ -2857,13 +2857,13 @@
  
          case "$host" in
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 at serjux.com> - 0.7.4-20
+- Clean spec, with Vascom, rfbz #4193, add license tag
+
 * Sat Aug 30 2014 Sérgio Basto <sergio at serjux.com> - 0.7.4-19
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 


More information about the rpmfusion-commits mailing list