[vdrsync] More spec modernization but still retaining EPEL-5 compatibility
by Paul Howarth
commit 79eb01b0d4224a8d9286568eaeb6f1ffc7cfd913
Author: Paul Howarth <paul(a)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(a)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(a)serjux.com> - 0.1.3-18.PRE1.050322
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
8 years, 2 months
[normalize] BR: perl-generators for proper dependency generation
by Paul Howarth
commit 3d77777a7712ff19b849e27f67f5b43f3065fd20
Author: Paul Howarth <paul(a)city-fan.org>
Date: Wed Oct 26 10:40:23 2016 +0100
BR: perl-generators for proper dependency generation
See https://fedoraproject.org/wiki/Changes/Build_Root_Without_Perl
Also, use %license
normalize.spec | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/normalize.spec b/normalize.spec
index 8d3c0c9..24ccb15 100644
--- a/normalize.spec
+++ b/normalize.spec
@@ -3,7 +3,7 @@
Summary: Tool for adjusting the volume of audio files to a standard level
Name: normalize
Version: 0.7.7
-Release: 10%{?dist}
+Release: 11%{?dist}
URL: http://normalize.nongnu.org/
License: GPLv2+
Group: Applications/Multimedia
@@ -12,7 +12,9 @@ Patch0: normalize-0.7.7-audiofile.patch
Patch1: normalize-0.7.7-autoreconf.patch
BuildRequires: audiofile-devel >= 1:0.2.1-2 libmad-devel gettext
# For autoreconf
-BuildRequires: libtool perl-Carp
+BuildRequires: libtool perl(Carp)
+# For dependency generation
+BuildRequires: perl-generators
# Binaries from the following are required.
BuildRequires: lame vorbis-tools madplay flac
# Explicit, because won't be detected automatically.
@@ -60,7 +62,8 @@ rm $RPM_BUILD_ROOT%{_libdir}/xmms/Effect/librva.la
%files -f %{name}.lang
-%doc COPYING README NEWS THANKS TODO
+%license COPYING
+%doc README NEWS THANKS TODO
%{_bindir}/normalize
%{_bindir}/normalize-mp3
%{_bindir}/normalize-ogg
@@ -72,6 +75,11 @@ rm $RPM_BUILD_ROOT%{_libdir}/xmms/Effect/librva.la
%changelog
+* Wed Oct 26 2016 Paul Howarth <paul(a)city-fan.org> - 0.7.7-11
+- BR: perl-generators for proper dependency generation
+ (https://fedoraproject.org/wiki/Changes/Build_Root_Without_Perl)
+- Use %%license
+
* Sun Aug 31 2014 Sérgio Basto <sergio(a)serjux.com> - 0.7.7-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
8 years, 2 months