Use /usr/bin/perl instead of /usr/bin/env perl.

- Add BR: perl(*).
- Use wildcards instead of hardcoded *.gz for man-pages.
This commit is contained in:
Ralf Corsépius 2014-04-10 11:06:10 +02:00
parent 5b03ad0e98
commit 2b1fe3346a

View File

@ -1,7 +1,7 @@
Summary: PostScript Utilities Summary: PostScript Utilities
Name: psutils Name: psutils
Version: 1.23 Version: 1.23
Release: 2%{?dist} Release: 3%{?dist}
License: psutils License: psutils
# We can't follow https://fedoraproject.org/wiki/Packaging:SourceURL#Github # We can't follow https://fedoraproject.org/wiki/Packaging:SourceURL#Github
@ -15,6 +15,11 @@ URL: https://github.com/rrthomas/psutils
# https://github.com/rrthomas/psutils/commit/cca570c806bf4bde07f400b2bab9266e02998145 # https://github.com/rrthomas/psutils/commit/cca570c806bf4bde07f400b2bab9266e02998145
Patch0: psutils-paperconf.patch Patch0: psutils-paperconf.patch
BuildRequires: perl(File::Basename)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
Requires: /usr/bin/paperconf Requires: /usr/bin/paperconf
# copylib - https://fedorahosted.org/fpc/ticket/174 # copylib - https://fedorahosted.org/fpc/ticket/174
@ -28,7 +33,6 @@ signatures for booklet printing, and page merging for n-up printing.
%package perl %package perl
Summary: psutils scripts requiring perl Summary: psutils scripts requiring perl
BuildArch: noarch BuildArch: noarch
Requires: perl
%description perl %description perl
Various scripts from the psutils distribution that require perl. Various scripts from the psutils distribution that require perl.
@ -37,6 +41,9 @@ Various scripts from the psutils distribution that require perl.
%setup -q %setup -q
%patch0 -p1 -b .paperconf %patch0 -p1 -b .paperconf
# Use /usr/bin/perl instead of /usr/bin/env perl
sed -i -e 's,/usr/bin/env perl,%{__perl},' \
extractres psjoin
%build %build
%configure %configure
@ -54,24 +61,29 @@ Various scripts from the psutils distribution that require perl.
%{_bindir}/psresize %{_bindir}/psresize
%{_bindir}/psselect %{_bindir}/psselect
%{_bindir}/pstops %{_bindir}/pstops
%{_mandir}/man1/epsffit.1.gz %{_mandir}/man1/epsffit.1*
%{_mandir}/man1/psbook.1.gz %{_mandir}/man1/psbook.1*
%{_mandir}/man1/psjoin.1.gz %{_mandir}/man1/psjoin.1*
%{_mandir}/man1/psnup.1.gz %{_mandir}/man1/psnup.1*
%{_mandir}/man1/psresize.1.gz %{_mandir}/man1/psresize.1*
%{_mandir}/man1/psselect.1.gz %{_mandir}/man1/psselect.1*
%{_mandir}/man1/pstops.1.gz %{_mandir}/man1/pstops.1*
%{_mandir}/man1/psutils.1.gz %{_mandir}/man1/psutils.1*
%files perl %files perl
%doc LICENSE %doc LICENSE
%{_bindir}/extractres %{_bindir}/extractres
%{_bindir}/includeres %{_bindir}/includeres
%{_mandir}/man1/extractres.1.gz %{_mandir}/man1/extractres.1*
%{_mandir}/man1/includeres.1.gz %{_mandir}/man1/includeres.1*
%changelog %changelog
* Thu Apr 10 2014 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.23-3
- Use /usr/bin/perl instead of /usr/bin/env perl.
- Add BR: perl(*).
- Use wildcards instead of hardcoded *.gz for man-pages.
* Tue Mar 04 2014 Jiri Popelka <jpopelka@redhat.com> - 1.23-2 * Tue Mar 04 2014 Jiri Popelka <jpopelka@redhat.com> - 1.23-2
- use paperconf instead of paper binary (#1072371) - use paperconf instead of paper binary (#1072371)