File bundsteg.spec of Package bundsteg
#
# spec file for package bundsteg
#
# Copyright (c) 2019 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: bundsteg
Version: 1.2
Release: 0
Summary: printing pdf documents with inner margins including multiple pages onto one and page rotation
License: GPL-3.0-only
Group: Applications/Publishing
URL: https://www.elstel.org/bundsteg
Source0: https://www.elstel.org/bundsteg/%{name}-v%{version}
BuildRequires: coreutils
Requires: ghostscript
Requires: pdftk
Requires: poppler-tools
Requires: texlive-pdfcrop-bin
BuildArch: noarch
%description
bundsteg allows you to add inner margins to pdfs in order to make space for stitching pages together. The little scriptlet additionally features printing multiple pages onto one by invoking pdfnup and rotating pages individually, based on a modulo or a page range before any other operation will be executed. Margins are at first removed fully in order to re-add margins at a later time on so that your pages or slides can be scaled to the maximal possible free space.
%prep
%build
chmod +x %{SOURCE0}
%{SOURCE0} --license >COPYING
sed -n '2,/^$/p' <%{SOURCE0} | sed 's/^#//' >ChangeLog
%install
mkdir -p %{buildroot}%{_bindir}
install %{SOURCE0} %{buildroot}%{_bindir}/bundsteg
%files
%{_bindir}/bundsteg
%license COPYING
%doc ChangeLog
%changelog