File pdfmod.spec of Package pdfmod
#
# spec file for package pdfmod
#
# Copyright (c) 2011 SUSE LINUX Products 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: pdfmod
Version: 0.9.0
Release: 3
License: GPLv2+
Summary: PDF Modifier
Url: http://live.gnome.org/PdfMod
Group: Productivity/Publishing/PDF
Source: %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM pdfmod-poppler-soname.patch vuntz@opensuse.org -- Use the right soname for libpoppler-glib
Patch0: pdfmod-poppler-soname.patch
# PATCH-FIX-UPSTREAM pdfmod-mono-2.8.patch vuntz@opensuse.org -- Fix build with recent mono, taken from git
Patch1: pdfmod-mono-2.8.patch
BuildRequires: gconf-sharp2
BuildRequires: glib-sharp2
BuildRequires: gmime-2_4-sharp
BuildRequires: gnome-doc-utils-devel
BuildRequires: gtk-sharp2
BuildRequires: gtk-sharp2-gapi
BuildRequires: hyena >= 0.3
BuildRequires: intltool
BuildRequires: mono-basic
BuildRequires: mono-data-sqlite
BuildRequires: mono-devel
BuildRequires: mono-nunit
BuildRequires: ndesk-dbus
BuildRequires: ndesk-dbus-glib-devel
BuildRequires: tango-icon-theme
BuildRequires: update-desktop-files
Requires: gtk-sharp2
%if 0%{?suse_version} > 1130
Requires: libpoppler-glib5
%else
Requires: libpoppler-glib4
%endif
Requires: mono
Requires: mono-core
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
PDF Mod is a simple tool for modifying your PDFs: moving, removing,
extracting, and rotating pages.
%lang_package
%prep
%setup -q
%if 0%{?suse_version} > 1130
%patch0 -p1
%endif
%patch1 -p1
%build
%configure
%{__make} %{?_smp_mflags}
%install
%makeinstall
%suse_update_desktop_file pdfmod Utility DesktopUtility
%find_lang %{name} %{?no_lang_C}
%clean
rm -rf %{buildroot}
%if 0%{?suse_version} > 1130
%post
%desktop_database_post
%icon_theme_cache_post
%endif
%if 0%{?suse_version} > 1130
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files
%defattr(-, root, root)
%doc AUTHORS NEWS README COPYING
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%{_bindir}/%{name}
%{_libdir}/%{name}/
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/applications/%{name}.desktop
%files lang -f %{name}.lang
%changelog