| 1 | #define svn_url e:/trees/psutils/trunk
|
|---|
| 2 | %define svn_url http://svn.netlabs.org/repos/ports/psutils/trunk
|
|---|
| 3 | %define svn_rev 1733
|
|---|
| 4 |
|
|---|
| 5 | Summary: PostScript Utilities
|
|---|
| 6 | Name: psutils
|
|---|
| 7 | Version: 1.23
|
|---|
| 8 | Release: 2%{?dist}
|
|---|
| 9 | License: psutils
|
|---|
| 10 | Group: Development/Libraries
|
|---|
| 11 |
|
|---|
| 12 | # We can't follow https://fedoraproject.org/wiki/Packaging:SourceURL#Github
|
|---|
| 13 | # and use upstream tarball for building because ./bootstrap downloads gnulib.
|
|---|
| 14 | # wget https://github.com/rrthomas/psutils/archive/master.zip && unzip master.zip && cd psutils-master/
|
|---|
| 15 | # ./bootstrap && autoreconf -vfi && ./configure && make dist-xz
|
|---|
| 16 | URL: https://github.com/rrthomas/psutils
|
|---|
| 17 | Vendor: bww bitwise works GmbH
|
|---|
| 18 | Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
|
|---|
| 19 |
|
|---|
| 20 | BuildRequires: autoconf
|
|---|
| 21 | BuildRequires: automake
|
|---|
| 22 | #BuildRequires: perl-generators
|
|---|
| 23 | #BuildRequires: perl(File::Basename)
|
|---|
| 24 | #BuildRequires: perl(Getopt::Long)
|
|---|
| 25 | #BuildRequires: perl(strict)
|
|---|
| 26 | #BuildRequires: perl(warnings)
|
|---|
| 27 | Requires: libpaper
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 | %description
|
|---|
| 31 | Utilities for manipulating PostScript documents.
|
|---|
| 32 | Page selection and rearrangement are supported, including arrangement into
|
|---|
| 33 | signatures for booklet printing, and page merging for n-up printing.
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 | %package perl
|
|---|
| 37 | Summary: psutils scripts requiring perl
|
|---|
| 38 | BuildArch: noarch
|
|---|
| 39 |
|
|---|
| 40 | %description perl
|
|---|
| 41 | Various scripts from the psutils distribution that require perl.
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 | %debug_package
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 | %prep
|
|---|
| 48 | %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
|
|---|
| 49 | %setup -q
|
|---|
| 50 | %else
|
|---|
| 51 | %setup -n "%{name}-%{version}" -Tc
|
|---|
| 52 | svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
|
|---|
| 53 | rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
|
|---|
| 54 | (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
|
|---|
| 55 | %endif
|
|---|
| 56 |
|
|---|
| 57 | autoreconf -fiv
|
|---|
| 58 |
|
|---|
| 59 | %build
|
|---|
| 60 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 61 | export LIBS="-lcx"
|
|---|
| 62 | %configure
|
|---|
| 63 |
|
|---|
| 64 | make %{?_smp_mflags}
|
|---|
| 65 |
|
|---|
| 66 |
|
|---|
| 67 | %install
|
|---|
| 68 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 69 | make install DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 70 |
|
|---|
| 71 |
|
|---|
| 72 | %clean
|
|---|
| 73 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 74 |
|
|---|
| 75 |
|
|---|
| 76 | %files
|
|---|
| 77 | %doc README LICENSE
|
|---|
| 78 | %{_bindir}/epsffit.exe
|
|---|
| 79 | %{_bindir}/psbook.exe
|
|---|
| 80 | %{_bindir}/psnup.exe
|
|---|
| 81 | %{_bindir}/psresize.exe
|
|---|
| 82 | %{_bindir}/psselect.exe
|
|---|
| 83 | %{_bindir}/pstops.exe
|
|---|
| 84 | %{_mandir}/man1/epsffit.1*
|
|---|
| 85 | %{_mandir}/man1/psbook.1*
|
|---|
| 86 | %{_mandir}/man1/psnup.1*
|
|---|
| 87 | %{_mandir}/man1/psresize.1*
|
|---|
| 88 | %{_mandir}/man1/psselect.1*
|
|---|
| 89 | %{_mandir}/man1/pstops.1*
|
|---|
| 90 | %{_mandir}/man1/psutils.1*
|
|---|
| 91 |
|
|---|
| 92 |
|
|---|
| 93 | %files perl
|
|---|
| 94 | %doc LICENSE
|
|---|
| 95 | %{_bindir}/extractres
|
|---|
| 96 | %{_bindir}/includeres
|
|---|
| 97 | %{_bindir}/psjoin
|
|---|
| 98 | %{_mandir}/man1/extractres.1*
|
|---|
| 99 | %{_mandir}/man1/includeres.1*
|
|---|
| 100 | %{_mandir}/man1/psjoin.1*
|
|---|
| 101 |
|
|---|
| 102 |
|
|---|
| 103 | %changelog
|
|---|
| 104 | * Tue Oct 11 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 1.23-2
|
|---|
| 105 | - adapt psutils to paperconf
|
|---|
| 106 | - libpaper is a requirement now
|
|---|
| 107 |
|
|---|
| 108 | * Tue Oct 11 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 1.23-1
|
|---|
| 109 | - initial version
|
|---|