[vdrsync] More spec modernization but still retaining EPEL-5 compatibility

Paul Howarth pghmcfc at rpmfusion.org
Wed Oct 26 12:11:56 CEST 2016


commit 79eb01b0d4224a8d9286568eaeb6f1ffc7cfd913
Author: Paul Howarth <paul at city-fan.org>
Date:   Wed Oct 26 11:09:51 2016 +0100

    More spec modernization but still retaining EPEL-5 compatibility
    
    - BR: perl and perl-generators
      (https://fedoraproject.org/wiki/Changes/Build_Root_Without_Perl)
    - Use %license where possible
    - Drop %defattr, redundant since rpm 4.4

 vdrsync.spec | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/vdrsync.spec b/vdrsync.spec
index 8968d02..5ff569f 100644
--- a/vdrsync.spec
+++ b/vdrsync.spec
@@ -1,6 +1,6 @@
 Name:           vdrsync
 Version:        0.1.3
-Release:        18.PRE1.050322%{?dist}
+Release:        19.PRE1.050322%{?dist}
 Summary:        Recording demultiplexer for VDR
 
 Group:          Applications/Multimedia
@@ -13,6 +13,8 @@ Patch1:         %{name}-panteltje.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
+BuildRequires:  perl
+BuildRequires:  perl-generators
 Requires:       dejavu-lgc-sans-fonts
 Requires:       dvdauthor
 Requires:       ffmpeg
@@ -61,8 +63,12 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %files
-%defattr(-,root,root,-)
-%doc BUGS CHANGES COPYING MANUAL README* TODO
+%if 0%{?_licensedir:1}
+%license COPYING
+%else
+%doc COPYING
+%endif
+%doc BUGS CHANGES MANUAL README* TODO
 %lang(de) %doc MANUAL-DE
 %{_bindir}/vdrsync
 %{_bindir}/vdrsync-dvd-menu
@@ -70,6 +76,12 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Wed Oct 26 2016 Paul Howarth <paul at city-fan.org> - 0.1.3-19.PRE1.050322
+- BR: perl and perl-generators
+  (https://fedoraproject.org/wiki/Changes/Build_Root_Without_Perl)
+- Use %%license where possible
+- Drop %%defattr, redundant since rpm 4.4
+
 * Sun Aug 31 2014 Sérgio Basto <sergio at serjux.com> - 0.1.3-18.PRE1.050322
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 


More information about the rpmfusion-commits mailing list