e85a7a4
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
e623312
e623312
Name:           pdfposter
4b815f1
Version:        0.5.0
e85a7a4
Release:        2%{?dist}
e623312
Summary:        Scale and tile PDF images/pages to print on multiple pages
e623312
e623312
Group:          Applications/Engineering
e623312
License:        GPLv3+
e623312
URL:            http://pdfposter.origo.ethz.ch/
4b815f1
Source0:        http://download.origo.ethz.ch/%{name}/1095/pdftools.%{name}-%{version}.tar.bz2
e623312
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
e623312
BuildArch:      noarch
e623312
e623312
BuildRequires:  python
e623312
BuildRequires:  python-setuptools-devel
e623312
e623312
Requires:       pyPdf
e623312
e623312
%description
e623312
Pdfposter can be used to create a large poster by building it from multple
e623312
pages and/or printing it on large media. It expects as input a PDF file,
e623312
normally printing on a single page. The output is again a PDF file, maybe
e623312
containing multiple pages together building the poster.  The input page 
e623312
will be scaled to obtain the desired size.
e623312
e623312
e623312
%prep
e623312
%setup -q -n pdftools.%{name}-%{version}
e623312
#Remove shebang
e623312
for Files in pdftools/pdfposter/cmd.py pdftools/pdfposter/__init__.py; do
4b815f1
  sed -i.orig -e 1d ${Files}
e623312
  touch -r ${Files}.orig ${Files}
4b815f1
  rm ${Files}.orig
e623312
done
e623312
e623312
%build
e623312
python ./setup.py build
e623312
e623312
e623312
%install
e623312
rm -rf %{buildroot}
e623312
python ./setup.py install -O1 --skip-build --root=%{buildroot}
e623312
install -Dp -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
e623312
e623312
e623312
%clean
e623312
rm -rf %{buildroot}
e623312
e623312
e623312
%files
e623312
%defattr(-,root,root,-)
e623312
%doc COPYING README.txt examples/
e623312
%{_mandir}/man*/*.gz
e623312
%{_bindir}/%{name}
e623312
%{python_sitelib}/pdftools*/
e623312
e623312
e623312
%changelog
e85a7a4
* Thu Jul 09 2009 Fabian Affolter <fabian@bernewireless.net> - 0.5.0-2
e85a7a4
- Replaced 'define' with 'global'
e85a7a4
4b815f1
* Sun May 03 2009 Fabian Affolter <fabian@bernewireless.net> - 0.5.0-1
4b815f1
- Updated to new upstream version 0.5.0
4b815f1
e623312
* Thu Apr 07 2009 Fabian Affolter <fabian@bernewireless.net> - 0.4.6-1
e623312
- Initial package for Fedora