File psutils.spec of Package psutils

#
# spec file for package psutils (Version p17)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           psutils
License:        GPLv2+
Group:          Productivity/Publishing/PS
Provides:       psutils-p17
Requires:       perl
AutoReqProv:    on
Version:        p17
Release:        1002
Summary:        Tools for Manipulating PostScript Files
Source:         psutils-p17.tar.gz
Patch:          psutils-p17.dif
Patch1:         psutils-flip.dif
Patch2:         psutils-pserror.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This archive contains utilities for manipulating PostScript documents.
Page selection and rearrangement are supported, including arrangement
into signatures for booklet printing, and page merging for n-up
printing.

psbook		rearranges pages into signatures

psselect	selects pages and page ranges

pstops		performs general page rearrangement and selection

psnup		put multiple pages per physical sheet of paper

psresize	alter document paper size

epsffit 	fits an EPSF file to a given bounding box

You will find a README in /usr/share/doc/packages/psutils/ which also
describes several Perl scripts for importing PostScript files. A manual
page for each ps utility is also included.



Authors:
--------
    Angus J. C. Duggan <angus@harlequin.co.uk>

%prep
%setup
%patch1 -p1 -b .flip
%patch2 -p0 -b .sec
%patch

%build
make %{_smp_mflags} -f Makefile.unix RPM_OPT_FLAGS="$RPM_OPT_FLAGS" 

%install
    rm -rf $RPM_BUILD_ROOT
    mkdir -p $RPM_BUILD_ROOT%_mandir/man1 $RPM_BUILD_ROOT/usr/bin
    make -f Makefile.unix BINDIR=$RPM_BUILD_ROOT/usr/bin MANDIR=$RPM_BUILD_ROOT%_mandir/man1 INCLUDEDIR=$RPM_BUILD_ROOT/usr/share/psutils install

%clean
    rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README LICENSE
/usr/bin/epsffit
/usr/bin/extractres
/usr/bin/fixdlsrps
/usr/bin/fixfmps
/usr/bin/fixmacps
/usr/bin/fixpsditps
/usr/bin/fixpspps
/usr/bin/fixscribeps
/usr/bin/fixtpps
/usr/bin/fixwfwps
/usr/bin/fixwpps
/usr/bin/fixwwps
/usr/bin/getafm
/usr/bin/includeres
/usr/bin/psbook
/usr/bin/psmerge
/usr/bin/psnup
/usr/bin/psresize
/usr/bin/psselect
/usr/bin/pstops
/usr/bin/showchar
%{_mandir}/man1/epsffit.1.gz
%{_mandir}/man1/extractres.1.gz
%{_mandir}/man1/fixdlsrps.1.gz
%{_mandir}/man1/fixfmps.1.gz
%{_mandir}/man1/fixmacps.1.gz
%{_mandir}/man1/fixpsditps.1.gz
%{_mandir}/man1/fixpspps.1.gz
%{_mandir}/man1/fixscribeps.1.gz
%{_mandir}/man1/fixtpps.1.gz
%{_mandir}/man1/fixwfwps.1.gz
%{_mandir}/man1/fixwpps.1.gz
%{_mandir}/man1/fixwwps.1.gz
%{_mandir}/man1/getafm.1.gz
%{_mandir}/man1/includeres.1.gz
%{_mandir}/man1/psbook.1.gz
%{_mandir}/man1/psmerge.1.gz
%{_mandir}/man1/psnup.1.gz
%{_mandir}/man1/psresize.1.gz
%{_mandir}/man1/psselect.1.gz
%{_mandir}/man1/pstops.1.gz
%dir /usr/share/psutils/
/usr/share/psutils/md68_0.ps
/usr/share/psutils/md71_0.ps

%changelog
openSUSE Build Service is sponsored by