Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37841193
en ru br
ALT Linux repos
S:0.7.0-alt1

Group :: Publishing
RPM: pdfshuffler

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name:           pdfshuffler
Version:        0.7.0
Release:        alt1
Group:          Publishing
Summary:        PDF file merging, rearranging, and splitting

License:        %gpl3only
URL:            http://sourceforge.net/projects/pdfshuffler/
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires(pre): rpm-build-python3
BuildRequires:  python3-dev
BuildRequires:  rpm-build-licenses
BuildRequires: /usr/bin/desktop-file-validate

BuildRequires:  python3-module-pkg_resources python3-module-setuptools
BuildRequires:  desktop-file-utils
BuildRequires:  gettext gettext-tools

Requires:       python3-module-PyPDF2
Requires: libpoppler-gir

%description
PDF-Shuffler is a small python application, which helps the user
to merge or split pdf documents and rotate, crop and rearrange their
pages using an interactive and intuitive graphical interface.

%prep
%setup -q

%build
%{__python3} setup.py build

%install
%{__python3} setup.py install --root %{buildroot}


mkdir -p %buildroot/%_iconsdir/hicolor/{16x16,256x256,32x32,48x48,scalable}/apps
cp -ra data/hicolor/* %buildroot%_iconsdir/hicolor/

desktop-file-validate %buildroot%_desktopdir/%{name}.desktop
%find_lang %name

# Register as an application to be visible in the software center

#
# NOTE: It would be *awesome* if this file was maintained by the upstream
# project, translated and installed into the right place during `make install`.
#
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
#
mkdir -p $RPM_BUILD_ROOT%_datadir/appdata
cat > $RPM_BUILD_ROOT%_datadir/appdata/%{name}.appdata.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
<!--
BugReportURL: https://sourceforge.net/p/pdfshuffler/feature-requests/34/
SentUpstream: 2014-09-17
-->
<application>
 <id type="desktop">pdfshuffler.desktop</id>
 <metadata_license>CC0-1.0</metadata_license>
 <description>
   <p>
     PDF-Shuffler is a small application, which helps the user to merge or split pdf
     documents and rotate, crop and rearrange their pages using an interactive and
     intuitive graphical interface.
     It is a frontend for python-pyPdf.
   </p>
   <!-- FIXME: Probably needs another paragraph or two -->
 </description>
 <url type="homepage">http://pdfshuffler.sourceforge.net/</url>
 <screenshots>
   <screenshot type="default">http://a.fsdn.com/con/app/proj/pdfshuffler/screenshots/181783.jpg/</screenshot>
 </screenshots>
 <!-- FIXME: change this to an upstream email address for spec updates
 <updatecontact>someone_who_cares at upstream_project.org</updatecontact>
  -->
</application>
EOF

%files -f %{name}.lang
%doc AUTHORS ChangeLog README TODO
%doc --no-dereference COPYING
%_mandir/man*/*.*
%_bindir/%{name}
%_datadir/%{name}/
%_datadir/appdata/%{name}.appdata.xml
%_desktopdir/%{name}.desktop
%_iconsdir/hicolor/*/apps/*
%python3_sitelibdir_noarch/%{name}*.egg-info
%python3_sitelibdir_noarch/%name/

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin