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

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

Spec: PSUtils first version

File size: 2.6 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 1725
4
5Summary: PostScript Utilities
6Name: psutils
7Version: 1.23
8Release: 1%{?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)
27
28
29%description
30Utilities for manipulating PostScript documents.
31Page selection and rearrangement are supported, including arrangement into
32signatures for booklet printing, and page merging for n-up printing.
33
34
35%package perl
36Summary: psutils scripts requiring perl
37BuildArch: noarch
38
39%description perl
40Various scripts from the psutils distribution that require perl.
41
42
43%debug_package
44
45
46%prep
47%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}
48%setup -q
49%else
50%setup -n "%{name}-%{version}" -Tc
51svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
52rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
53(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
54%endif
55
56autoreconf -fiv
57
58%build
59export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
60export LIBS="-lcx"
61%configure
62
63make %{?_smp_mflags}
64
65
66%install
67rm -rf $RPM_BUILD_ROOT
68make install DESTDIR=$RPM_BUILD_ROOT
69
70
71%clean
72rm -rf $RPM_BUILD_ROOT
73
74
75%files
76%doc README LICENSE
77%{_bindir}/epsffit.exe
78%{_bindir}/psbook.exe
79%{_bindir}/psnup.exe
80%{_bindir}/psresize.exe
81%{_bindir}/psselect.exe
82%{_bindir}/pstops.exe
83%{_mandir}/man1/epsffit.1*
84%{_mandir}/man1/psbook.1*
85%{_mandir}/man1/psnup.1*
86%{_mandir}/man1/psresize.1*
87%{_mandir}/man1/psselect.1*
88%{_mandir}/man1/pstops.1*
89%{_mandir}/man1/psutils.1*
90
91
92%files perl
93%doc LICENSE
94%{_bindir}/extractres
95%{_bindir}/includeres
96%{_bindir}/psjoin
97%{_mandir}/man1/extractres.1*
98%{_mandir}/man1/includeres.1*
99%{_mandir}/man1/psjoin.1*
100
101
102%changelog
103* Tue Oct 11 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 1.23-1
104- initial version
Note: See TracBrowser for help on using the repository browser.