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:
parent
5b03ad0e98
commit
2b1fe3346a
36
psutils.spec
36
psutils.spec
@ -1,7 +1,7 @@
|
||||
Summary: PostScript Utilities
|
||||
Name: psutils
|
||||
Version: 1.23
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: psutils
|
||||
|
||||
# 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
|
||||
Patch0: psutils-paperconf.patch
|
||||
|
||||
BuildRequires: perl(File::Basename)
|
||||
BuildRequires: perl(Getopt::Long)
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(warnings)
|
||||
|
||||
Requires: /usr/bin/paperconf
|
||||
|
||||
# copylib - https://fedorahosted.org/fpc/ticket/174
|
||||
@ -28,7 +33,6 @@ signatures for booklet printing, and page merging for n-up printing.
|
||||
%package perl
|
||||
Summary: psutils scripts requiring perl
|
||||
BuildArch: noarch
|
||||
Requires: perl
|
||||
|
||||
%description 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
|
||||
|
||||
%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
|
||||
%configure
|
||||
@ -54,24 +61,29 @@ Various scripts from the psutils distribution that require perl.
|
||||
%{_bindir}/psresize
|
||||
%{_bindir}/psselect
|
||||
%{_bindir}/pstops
|
||||
%{_mandir}/man1/epsffit.1.gz
|
||||
%{_mandir}/man1/psbook.1.gz
|
||||
%{_mandir}/man1/psjoin.1.gz
|
||||
%{_mandir}/man1/psnup.1.gz
|
||||
%{_mandir}/man1/psresize.1.gz
|
||||
%{_mandir}/man1/psselect.1.gz
|
||||
%{_mandir}/man1/pstops.1.gz
|
||||
%{_mandir}/man1/psutils.1.gz
|
||||
%{_mandir}/man1/epsffit.1*
|
||||
%{_mandir}/man1/psbook.1*
|
||||
%{_mandir}/man1/psjoin.1*
|
||||
%{_mandir}/man1/psnup.1*
|
||||
%{_mandir}/man1/psresize.1*
|
||||
%{_mandir}/man1/psselect.1*
|
||||
%{_mandir}/man1/pstops.1*
|
||||
%{_mandir}/man1/psutils.1*
|
||||
|
||||
%files perl
|
||||
%doc LICENSE
|
||||
%{_bindir}/extractres
|
||||
%{_bindir}/includeres
|
||||
%{_mandir}/man1/extractres.1.gz
|
||||
%{_mandir}/man1/includeres.1.gz
|
||||
%{_mandir}/man1/extractres.1*
|
||||
%{_mandir}/man1/includeres.1*
|
||||
|
||||
|
||||
%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
|
||||
- use paperconf instead of paper binary (#1072371)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user