File pdfposter.spec of Package pdfposter
#
# spec file for package pdfposter
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: pdfposter
Version: 0.8.1
Release: 0
Summary: Scale and tile PDF images/pages to print on multiple pages
License: GPL-3.0-or-later
URL: https://pdfposter.readthedocs.io
Source0: https://gitlab.com/pdftools/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.bz2
BuildRequires: python-rpm-macros
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pypdf
BuildArch: noarch
%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.
%prep
%setup -q -n %{name}-v%{version}
# Remove shebang
for Files in pdftools/pdfposter/cmd.py pdftools/pdfposter/__init__.py; do
sed -i.orig -e 1d ${Files}
touch -r ${Files}.orig ${Files}
rm ${Files}.orig
done
%build
%py3_build
%install
%py3_install
%files
%doc README.txt
%{_bindir}/%{name}
%{python3_sitelib}/pdftools/
%{python3_sitelib}/pdftools.*
%changelog