source: spec/trunk/SPECS/psutils.spec@ 1010

Last change on this file since 1010 was 858, checked in by Silvan Scherrer, 9 years ago

Specs: PSUtils: adapt it to libpaper

File size: 2.7 KB
Line 
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
5Summary: PostScript Utilities
6Name: psutils
7Version: 1.23
8Release: 2%{?dist}
9License: psutils
10Group: 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
16URL: https://github.com/rrthomas/psutils
17Vendor: bww bitwise works GmbH
18Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
19
20BuildRequires: autoconf
21BuildRequires: automake
22#BuildRequires: perl-generators
23#BuildRequires: perl(File::Basename)
24#BuildRequires: perl(Getopt::Long)
25#BuildRequires: perl(strict)
26#BuildRequires: perl(warnings)
27Requires: libpaper
28
29
30%description
31Utilities for manipulating PostScript documents.
32Page selection and rearrangement are supported, including arrangement into
33signatures for booklet printing, and page merging for n-up printing.
34
35
36%package perl
37Summary: psutils scripts requiring perl
38BuildArch: noarch
39
40%description perl
41Various 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
52svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
53rm -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
57autoreconf -fiv
58
59%build
60export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
61export LIBS="-lcx"
62%configure
63
64make %{?_smp_mflags}
65
66
67%install
68rm -rf $RPM_BUILD_ROOT
69make install DESTDIR=$RPM_BUILD_ROOT
70
71
72%clean
73rm -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
Note: See TracBrowser for help on using the repository browser.