[packages/mate-image-viewer] - new, modified from eog 2.x
qboosh
qboosh at pld-linux.org
Sat Dec 28 08:18:56 CET 2013
commit 4809533abf732a1443ee0612eb9aaafcff100f69
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Dec 28 08:19:07 2013 +0100
- new, modified from eog 2.x
mate-image-viewer-codegen.patch | 16 ++++
mate-image-viewer.spec | 177 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 193 insertions(+)
---
diff --git a/mate-image-viewer.spec b/mate-image-viewer.spec
new file mode 100644
index 0000000..027419c
--- /dev/null
+++ b/mate-image-viewer.spec
@@ -0,0 +1,177 @@
+#
+# Conditional build:
+%bcond_without apidocs # disable API documentation
+#
+Summary: The Eye of MATE image viewer
+Summary(pl.UTF-8): Oko MATE - przeglądarka obrazków
+Summary(pt_BR.UTF-8): Visualizador de imagem Eye of MATE
+Name: mate-image-viewer
+Version: 1.6.1
+Release: 1
+License: GPL v2+
+Group: X11/Applications/Graphics
+Source0: http://pub.mate-desktop.org/releases/1.6/%{name}-%{version}.tar.xz
+# Source0-md5: 5000fc45beddebeabd49c5a80994f867
+Patch0: %{name}-codegen.patch
+URL: http://mate-desktop.org/
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake >= 1:1.9
+BuildRequires: dbus-glib-devel >= 0.71
+BuildRequires: docbook-dtd412-xml
+BuildRequires: exempi-devel >= 1.99.5
+BuildRequires: gdk-pixbuf2-devel >= 2.4.0
+BuildRequires: gettext-devel >= 0.10.40
+BuildRequires: glib2-devel >= 1:2.26.0
+BuildRequires: gtk+2-devel >= 2:2.18.0
+%{?with_apidocs:BuildRequires: gtk-doc >= 1.9}
+BuildRequires: intltool >= 0.40.0
+BuildRequires: lcms-devel
+BuildRequires: libexif-devel >= 1:0.6.14
+BuildRequires: libjpeg-devel
+BuildRequires: librsvg-devel >= 2.26.0
+BuildRequires: libtool >= 1:1.4.3
+BuildRequires: libxml2-devel >= 2.0
+BuildRequires: mate-common
+BuildRequires: mate-desktop-devel >= 1.5.0
+BuildRequires: mate-doc-utils
+BuildRequires: mate-icon-theme-devel >= 1.1.0
+BuildRequires: pkgconfig >= 1:0.9.0
+BuildRequires: python-devel >= 2.3
+BuildRequires: python-pygobject-devel >= 2.16.0
+BuildRequires: python-pygtk-devel >= 2:2.14.0
+BuildRequires: rpmbuild(find_lang) >= 1.36
+BuildRequires: rpmbuild(macros) >= 1.311
+BuildRequires: scrollkeeper
+BuildRequires: shared-mime-info >= 0.20
+BuildRequires: tar >= 1:1.22
+BuildRequires: xorg-lib-libX11-devel
+BuildRequires: xz
+BuildRequires: zlib-devel
+Requires(post,postun): desktop-file-utils
+Requires(post,postun): glib2 >= 1:2.26.0
+Requires(post,postun): gtk-update-icon-cache
+Requires(post,postun): hicolor-icon-theme
+Requires(post,postun): scrollkeeper
+Requires: dbus-glib >= 0.71
+Requires: exempi >= 1.99.5
+Requires: glib2 >= 1:2.26.0
+Requires: gtk+2 >= 2:2.18.0
+Requires: libexif >= 1:0.6.14
+Requires: librsvg >= 2.26.0
+Requires: mate-icon-theme >= 1.1.0
+Requires: shared-mime-info >= 0.20
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Eye of MATE is a tool for viewing/cataloging images. It's a fork of
+Eye of GNOME.
+
+%description -l pl.UTF-8
+Eye of MATE (Oko MATE) jest narzędziem do oglądania i katalogowania
+obrazków. Jest to odgałęzienie programu Eye of GNOME.
+
+%description -l pt_BR.UTF-8
+Aplicativo para visualizar imagens chamado Eye of MATE.
+
+%package devel
+Summary: Header files for Eye of MATE plugins
+Summary(pl.UTF-8): Pliki nagłówkowe dla wtyczek Eye of MATE
+Group: X11/Development/Libraries
+# doesn't require base
+Requires: glib2-devel >= 1:2.26.0
+Requires: gtk+2-devel >= 2:2.18.0
+
+%description devel
+Header files for Eye of MATE plugins.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe dla wtyczek Eye of MATE.
+
+%package apidocs
+Summary: Eye of MATE API documentation
+Summary(pl.UTF-8): Dokumentacja API Eye of MATE
+Group: Documentation
+Requires: gtk-doc-common
+
+%description apidocs
+Eye of MATE API documentation.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API Eye of MATE.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+mate-doc-prepare --copy --force
+%{?with_apidocs:%{__gtkdocize}}
+%{__intltoolize}
+%{__libtoolize}
+%{__aclocal}
+%{__automake}
+%{__autoheader}
+%{__autoconf}
+%configure \
+ --enable-gtk-doc%{!?with_apidocs:=no} \
+ --disable-scrollkeeper \
+ --disable-silent-rules \
+ --with-html-dir=%{_gtkdocdir}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/eom/plugins/*.la
+
+# mate < 1.5 did not exist in PLD, avoid dependency on mate-conf
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/eom.convert
+
+%find_lang eom --with-mate --with-omf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%glib_compile_schemas
+%scrollkeeper_update_post
+%update_desktop_database_post
+%update_icon_cache hicolor
+
+%postun
+%glib_compile_schemas
+%scrollkeeper_update_postun
+%update_desktop_database_postun
+%update_icon_cache hicolor
+
+%files -f eom.lang
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README THANKS TODO
+%attr(755,root,root) %{_bindir}/eom
+%dir %{_libdir}/eom
+%dir %{_libdir}/eom/plugins
+%attr(755,root,root) %{_libdir}/eom/plugins/libfullscreen.so
+%{_libdir}/eom/plugins/fullscreen.eom-plugin
+%attr(755,root,root) %{_libdir}/eom/plugins/libreload.so
+%{_libdir}/eom/plugins/reload.eom-plugin
+%attr(755,root,root) %{_libdir}/eom/plugins/libstatusbar-date.so
+%{_libdir}/eom/plugins/statusbar-date.eom-plugin
+%{_datadir}/glib-2.0/schemas/org.mate.eom.gschema.xml
+%{_datadir}/mate-image-viewer
+%{_desktopdir}/eom.desktop
+%{_iconsdir}/hicolor/*/apps/eom.*
+%{_mandir}/man1/eom.1*
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/eom-2.20
+%{_pkgconfigdir}/eom.pc
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/eom
+%endif
diff --git a/mate-image-viewer-codegen.patch b/mate-image-viewer-codegen.patch
new file mode 100644
index 0000000..2f61501
--- /dev/null
+++ b/mate-image-viewer-codegen.patch
@@ -0,0 +1,16 @@
+--- eog-2.25.92/configure.ac~ 2009-03-15 18:12:32.222616928 +0100
++++ eog-2.25.92/configure.ac 2009-03-15 18:13:28.487391837 +0100
+@@ -361,11 +361,11 @@
+ AC_MSG_RESULT([$PYGTK_DEFSDIR])
+
+ AC_MSG_CHECKING([for pygobject codegen])
+- PYGOBJECT_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygobject-2.0`/codegen.py"
++ PYGOBJECT_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygobject-2.0`/codegen.pyc"
+ AC_MSG_RESULT([$PYGOBJECT_CODEGEN])
+
+ AC_MSG_CHECKING([for pygobject h2def])
+- PYGOBJECT_H2DEF="$PYTHON `$PKG_CONFIG --variable=codegendir pygobject-2.0`/h2def.py"
++ PYGOBJECT_H2DEF="$PYTHON `$PKG_CONFIG --variable=codegendir pygobject-2.0`/h2def.pyc"
+ AC_MSG_RESULT([$PYGOBJECT_H2DEF])
+
+ AC_SUBST([PYGOBJECT_DEFSDIR])
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mate-image-viewer.git/commitdiff/4809533abf732a1443ee0612eb9aaafcff100f69
More information about the pld-cvs-commit
mailing list