File pdfchain.spec of Package pdfchain
#
# spec file for package pdfchain
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012-2013 B1 Systems GmbH, Vohburg, 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: pdfchain
Version: 0.4.4.2
Release: 0
Summary: A GUI for pdftk
License: GPL-3.0
Group: Productivity/Publishing/PDF
Url: http://pdfchain.sourceforge.net
Source0: http://sourceforge.net/projects/pdfchain/files/pdfchain-%{version}/pdfchain-%{version}.tar.gz
Source1: pdfchain.appdata.xml
Patch0: pdfchain-desktop.patch
# PATCH-FIX-UPSTREAM fix-crash-and-warnings.patch fcrozat@suse.com -- fix crash at startup
Patch1: 0003-Fix-crash-because-the-RadioButtonGroup-was-contructe.patch
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: intltool >= 0.35.0
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gtkmm-3.0) >= 3.12.0
Requires: hicolor-icon-theme
Requires: pdftk >= 2.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
PDF Chain is a Graphical User Interface for the PDF Tool Kit.
It includes features designed to handle PDF files in a easy way.
Basicaly it can merge, split, add backgrounds or stamps and add attachments.
There are some tools for extended needs, too.
The GUI is written using GTKmm, a C++ library for GTK.
PDF Chain is released under the terms of the GNU Public License verion 3.
PDF Chain comes without any warranty.
%prep
%setup -q
%patch0
%patch1 -p1
%build
%configure
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
rm -rf %{buildroot}%{_datadir}/doc/pdfchain
%fdupes %{buildroot}
# Install appdata
install -Dm0644 %{S:1} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README
%{_bindir}/pdfchain
%{_datadir}/applications/pdfchain.desktop
%{_datadir}/icons/hicolor/*/apps/pdfchain.png
%{_datadir}/pixmaps/pdfchain.png
%dir %{_datadir}/appdata
%{_datadir}/appdata/%{name}.appdata.xml
%changelog