File psutils.spec of Package psutils

# spec file for package psutils
# Copyright (c) 2013 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

Name:           psutils
Version:        p17
Release:        0
Summary:        Tools for Manipulating PostScript Files
License:        GPL-2.0+
Group:          Productivity/Publishing/PS
Patch0:         psutils-p17.dif
Patch1:         psutils-flip.dif
Patch2:         psutils-pserror.dif
Requires:       perl
Provides:       psutils-p17
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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

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.

%setup -q -n psutils
%patch1 -p1 -b .flip
%patch2 -p0 -b .sec

make %{?_smp_mflags} -f Makefile.unix RPM_OPT_FLAGS="%{optflags}"

    mkdir -p %{buildroot}%{_mandir}/man1 %{buildroot}%{_prefix}/bin
    make -f Makefile.unix BINDIR=%{buildroot}%{_bindir} \
                          MANDIR=%{buildroot}%{_mandir}/man1 \
                          INCLUDEDIR=%{buildroot}%{_datadir}/psutils install

%dir %{_datadir}/psutils/

openSUSE Build Service is sponsored by