[pdfmod] importing module

Ismael Olea olea at fedoraproject.org
Thu Jul 19 15:05:23 UTC 2012


commit 6d7ee1fb49b7209d204528fed33d915c984228ca
Author: Ismael Olea <ismael at olea.org>
Date:   Thu Jul 19 17:05:04 2012 +0200

    importing module

 .gitignore               |    1 +
 pdfmod-mono-2.10-1.patch |   26 +++++++++++
 pdfmod.spec              |  109 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 4 files changed, 137 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6599323 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pdfmod-0.9.1.tar.gz
diff --git a/pdfmod-mono-2.10-1.patch b/pdfmod-mono-2.10-1.patch
new file mode 100644
index 0000000..7e2e8dd
--- /dev/null
+++ b/pdfmod-mono-2.10-1.patch
@@ -0,0 +1,26 @@
+From a29cfe7f8f31ce003fa3e307d54d86a2a8e8cf19 Mon Sep 17 00:00:00 2001
+From: Nuno Araujo <nuno.araujo at russo79.com>
+Date: Mon, 21 Mar 2011 04:10:52 +0000
+Subject: Fix compilation under Mono 2.10 (bgo#644516)
+
+Force use of the overloaded implicit operator of Hyena.Gui.DragDropList
+to solve mono 2.10 compilation problems.
+
+Signed-off-by: Alexander Kojevnikov <alexander at kojevnikov.com>
+---
+diff --git a/src/PdfMod/Gui/DocumentIconView.cs b/src/PdfMod/Gui/DocumentIconView.cs
+index 5796c72..386d662 100644
+--- a/src/PdfMod/Gui/DocumentIconView.cs
++++ b/src/PdfMod/Gui/DocumentIconView.cs
+@@ -319,7 +319,7 @@ namespace PdfMod.Gui
+                 if (to_index < 0)
+                     return;
+ 
+-                var pages = args.SelectionData.Data as Hyena.Gui.DragDropList<Page>;
++                Hyena.Gui.DragDropList<Page> pages = args.SelectionData;
+                 to_index -= pages.Count (p => p.Index < to_index);
+                 var action = new MoveAction (document, pages, to_index);
+                 action.Do ();
+--
+cgit v0.9
+
diff --git a/pdfmod.spec b/pdfmod.spec
new file mode 100644
index 0000000..a1256d2
--- /dev/null
+++ b/pdfmod.spec
@@ -0,0 +1,109 @@
+%global debug_package %{nil}
+Name:		pdfmod
+Version:	0.9.1
+Release:	4%{?dist}
+Summary:	A simple application for modifying PDF documents
+Summary(es):	Una simple aplicación para modificar documentos PDF
+Group:		Applications/Productivity
+License:	GPLv2+
+URL:		http://live.gnome.org/PdfMod
+Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.9/%{name}-%{version}.tar.gz
+#patch for mono 2.10
+#https://build.opensuse.org/package/view_file?file=pdfmod-mono-2.10.patch&package=pdfmod&project=GNOME%3AApps&srcmd5=73b47920f485d87e789da3aa86216285
+Patch0:		pdfmod-mono-2.10-1.patch
+BuildArch:	noarch
+
+BuildRequires:	gettext
+BuildRequires:	intltool
+BuildRequires:	gnome-doc-utils
+BuildRequires:	desktop-file-utils
+BuildRequires:	gnome-sharp-devel
+BuildRequires:	gtk-sharp2-devel
+BuildRequires:	mono-devel
+BuildRequires:	hyena-devel
+BuildRequires:	poppler-sharp-devel
+
+#stupid dep needed at configuring; maybe an autoconf induced bug?:
+BuildRequires:	gcc
+
+Requires:	mono-core
+Requires:	hyena
+Requires:	poppler-sharp
+
+%description
+You can reorder, rotate, and remove pages, export images from a document,
+edit the title, subject, author, and keywords, and combine documents via
+drag and drop.
+
+%description -l es
+Permite ordenar, rotar y mover páginas, exportar imágenes del documento,
+editar el titulo, asunto, autor, y palabras claves, y combinar documentos
+mediante arrastrar y soltar.
+
+%prep
+%setup -q
+%patch0 -p1
+# upstream uses 0.4 vs Fedora current 0.8
+sed -i 's/libpoppler-glib\.so\.4/libpoppler-glib\.so.8/g' lib/poppler-sharp/poppler-sharp/poppler-sharp.dll.config
+
+%build
+%configure --enable-external-poppler-sharp
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=%{buildroot}
+desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
+chmod a-x %{buildroot}%{_libdir}/%{name}/poppler-sharp.dll.config
+%find_lang %{name}
+
+
+%post
+update-mime-database %{_datadir}/mime &> /dev/null || :
+update-desktop-database &> /dev/null || :
+
+%files -f %{name}.lang
+%doc AUTHORS COPYING HACKING NEWS README
+%{_bindir}/%{name}/
+%{_libdir}/%{name}/
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/gnome/help/%{name}
+%{_datadir}/icons/hicolor/
+
+%changelog
+* Thu Jul 19 2012 <ismael at olea.org> 0.9.1-4
+- making rpmlint happier https://bugzilla.redhat.com/show_bug.cgi?id=834552#c2
+- minor cleaning
+ 
+* Thu Jun 21 2012 <ismael at olea.org> 0.9.1-3
+- cleaning spec
+
+* Thu Nov 10 2011 Ismael Olea <ismael at olea.org> 0.9.1-2
+- Added pdfmod-mono-2.10-1.patch 
+- minor building love
+
+* Mon Mar 21 2011 Claudio Rodrigo Pereyra Diaz <claudiorodrigo at pereyradiaz.com.ar> 0.9.1-1
+- Update to upstream release
+- Translate spec summary and description to spanish
+
+* Mon Oct 03 2010 Claudio Rodrigo Pereyra Diaz <claudiorodrigo at pereyradiaz.com.ar> 0.9.0-1
+- Update to upstream release
+
+* Wed Jun 09 2010 Claudio Rodrigo Pereyra Diaz <claudiorodrigo at pereyradiaz.com.ar> 0.8.3-2
+- Unbundle poppler-sharp
+
+* Wed Jun 09 2010 Claudio Rodrigo Pereyra Diaz <claudiorodrigo at pereyradiaz.com.ar> 0.8.3-1
+- New upstream release
+
+* Fri Apr 02 2010 Sebastian Dziallas <sebastian at when.com> - 0.8.1-1
+- new upstream release
+- don't remove libs for now
+- remove gnome-sharp dependency
+- add build requirements as noted in review
+
+* Sun Feb 07 2010 Sebastian Dziallas <sebastian at when.com> - 0.8-2
+- remove bundled libs
+- build in release mode
+- enable maintainer mode
+
+* Sun Nov 15 2009 Sebastian Dziallas <sebastian at when.com> - 0.8-1
+- initial packaging
diff --git a/sources b/sources
index e69de29..de99b9b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+3fe70abcc264cd099060d19ebdc949ed  pdfmod-0.9.1.tar.gz


More information about the scm-commits mailing list