File pspdftool.spec of Package pspdftool

#
# This is a spec file for PsPdfTool (Version 0.03)
#
# Copyright 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright Michal Hrusecky <mhrusecky@suse.cz>
#
# 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.
#

# norootforbuild

Name:    pspdftool
Summary: Tool for prepress preparation of PDF and PostScript documents
Version: 0.03
Release: 1
#
License: GPL
URL:     http://pspdftool.sf.net
Group:   Productivity/Publishing
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: zlib-devel
Recommends: ghostscript-library
#
Source:  http://downloads.sourceforge.net/pspdftool/%{name}-%{version}.tar.bz2

%description

This tool provides command line utility for manipulation with PostScript or PDF
files. You can for example concatenate several documents without need to have
original document. Other thing an ordinary user may want is to put several
document pages on one physical paper for example for printing booklets or just
for preview. Some manipulations are supported as well, like resizing, moving
things around or cropping. And much more...

Author:
---------
   Ales Snuparek <snuparek@atlas.cz>

%prep
%setup

%build
%configure --with-zlib --with-lzw --with-ghostscript --prefix=/usr --enable-rc --docdir=%{_defaultdocdir}/%{name}
make %{?jobs:-j%jobs}

%install
make DESTDIR=%{buildroot} install
rm %{buildroot}/%{_defaultdocdir}/%{name}/INSTALL

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%{_bindir}/pspdftool
%doc %{_mandir}/man1/*
%dir %{_defaultdocdir}/%{name}
%{_defaultdocdir}/%{name}/*

%changelog
openSUSE Build Service is sponsored by