Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:smarty12:Python
pdfposter
pdfposter.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pdfposter.spec of Package pdfposter
# # spec file for package pdfposter # # Copyright (c) 2016 SUSE LINUX 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/ # Name: pdfposter Version: 0.6.1.dev0 Release: 0 Url: https://gitlab.com/pdftools/pdfposter Summary: Scale and tile PDF images/pages to print on multiple pages License: GPL-3.0+ Group: Development/Libraries/Python Source0: pdftools.%{name}-%{version}.tar.bz2 Source1: poster.sh Source2: pdfposter-rpmlintrc # PATCH-FIX-OPENSUSE Patch0: 0001-Add-trimbox-option.patch # PATCH-FIX-OPENSUSE Patch1: 0002-Add-overlap-percent-option.patch # PATCH-FIX-OPENSUSE Patch2: 0003-Add-xoffset-percent-and-yoffset-percent-options.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Prefix: %{_prefix} BuildRequires: python-docutils BuildRequires: python-devel BuildRequires: python-setuptools BuildRequires: scons Requires: python Requires: python-PyPDF2 Requires: python-base = 2.7 Requires: python-setuptools %if 0%{?suse_version} %py_requires %if 0%{?suse_version} > 1010 BuildRequires: fdupes %endif %if 0%{?suse_version} > 1110 BuildArch: noarch %endif %endif %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %description Pdfposter can be used to create a large poster by building it from multple pages and/or printing it on large media. It expects as input a PDF file, normally printing on a single page. The output is again a PDF file, maybe containing multiple pages together building the poster. The input page will be scaled to obtain the desired size. This is much like poster does for Postscript files, but working with PDF. Since sometimes poster does not like your files converted from PDF. Indeed pdfposter was inspired by poster. %package -n poster Summary: Script to print posters Group: Development/Libraries/Python Requires: %{name} = %{version} ghostscript-library xpdf-tools %description -n poster This provides a script /usr/bin/poster as a drop in replacement for the old poster, for the benefit of dependent printer dialoges, e.g., KDE3 kprinter. %prep %setup -n pdftools.%{name}-%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 %build export CFLAGS="%{optflags}" python setup.py build %install env PYTHONPATH= scons || true # crashes somehow after doing the man page. that is okay. python setup.py install --root=%{buildroot} --prefix=%{_prefix} install -m 755 %{S:1} %{buildroot}/usr/bin/poster mkdir -p %{buildroot}%{_mandir}/man1/ install -m 644 docs/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 %if 0%{?suse_version} > 1010 %fdupes %{buildroot} %endif %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc README.txt %{_mandir}/man1/%{name}.1.gz %{_bindir}/%{name} %{python_sitelib}/* %files -n poster %defattr(-,root,root) %{_bindir}/poster %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor