]> git.pld-linux.org Git - packages/eom.git/blobdiff - eom.spec
up to 1.16.1
[packages/eom.git] / eom.spec
index 9840c8270007d22209fd413f7d2d5570fa80e88b..1752456055c62d62c85302df6e6e8a1c022f3df8 100644 (file)
--- a/eom.spec
+++ b/eom.spec
@@ -1,17 +1,18 @@
 #
 # Conditional build:
 %bcond_without apidocs         # disable API documentation
-#
+%bcond_with    gtk3            # use GTK+ 3.x instead of 2.x
+
 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:          eom
-Version:       1.8.0
+Version:       1.16.1
 Release:       1
 License:       GPL v2+
 Group:         X11/Applications/Graphics
-Source0:       http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
-# Source0-md5: 0e80c19eb58d337ff25a7492967d0e4a
+Source0:       http://pub.mate-desktop.org/releases/1.16/%{name}-%{version}.tar.xz
+# Source0-md5: d5fd10ad1b70c914b20502859c7e521c
 Patch0:                %{name}-codegen.patch
 URL:           http://mate-desktop.org/
 BuildRequires: autoconf >= 2.59
@@ -19,28 +20,28 @@ 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
+BuildRequires: gdk-pixbuf2-devel >= 2.30.0
+BuildRequires: gettext-tools >= 0.10.40
+BuildRequires: glib2-devel >= 1:2.36.0
+BuildRequires: gobject-introspection-devel >= 0.9.3
+%{!?with_gtk3:BuildRequires:   gtk+2-devel >= 2:2.18.0}
+%{?with_gtk3:BuildRequires:    gtk+3-devel >= 3.0.0}
 %{?with_apidocs:BuildRequires: gtk-doc >= 1.9}
-BuildRequires: intltool >= 0.40.0
-BuildRequires: lcms-devel
+BuildRequires: intltool >= 0.50.1
+BuildRequires: lcms2-devel >= 2
 BuildRequires: libexif-devel >= 1:0.6.14
 BuildRequires: libjpeg-devel
-BuildRequires: librsvg-devel >= 2.26.0
+BuildRequires: librsvg-devel >= 2.36.2
 BuildRequires: libtool >= 1:1.4.3
 BuildRequires: libxml2-devel >= 2.0
 BuildRequires: mate-common
-BuildRequires: mate-desktop-devel >= 1.5.0
-BuildRequires: mate-icon-theme-devel >= 1.1.0
+BuildRequires: mate-desktop-devel >= 1.9.1
 BuildRequires: pkgconfig >= 1:0.9.0
-BuildRequires: python-devel >= 2.3
+BuildRequires: python-devel >= 1: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
@@ -48,17 +49,18 @@ BuildRequires:      xz
 BuildRequires: yelp-tools
 BuildRequires: zlib-devel
 Requires(post,postun): desktop-file-utils
-Requires(post,postun): glib2 >= 1:2.26.0
+Requires(post,postun): glib2 >= 1:2.36.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:      gdk-pixbuf2 >= 2.30.0
+Requires:      glib2 >= 1:2.36.0
+%{!?with_gtk3:Requires:        gtk+2 >= 2:2.18.0}
+%{?with_gtk3:Requires: gtk+3 >= 3.0.0}
 Requires:      libexif >= 1:0.6.14
-Requires:      librsvg >= 2.26.0
-Requires:      mate-icon-theme >= 1.1.0
+Requires:      librsvg >= 2.36.2
+Requires:      mate-desktop-libs >= 1.9.1
 Requires:      shared-mime-info >= 0.20
 Obsoletes:     mate-image-viewer
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -79,8 +81,9 @@ 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
+Requires:      glib2-devel >= 1:2.36.0
+%{!?with_gtk3:Requires:        gtk+2-devel >= 2:2.18.0}
+%{?with_gtk3:Requires: gtk+3-devel >= 3.0.0}
 Obsoletes:     mate-image-viewer-devel
 
 %description devel
@@ -95,6 +98,9 @@ Summary(pl.UTF-8):    Dokumentacja API Eye of MATE
 Group:         Documentation
 Requires:      gtk-doc-common
 Obsoletes:     mate-image-viewer-apidocs
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
 
 %description apidocs
 Eye of MATE API documentation.
@@ -116,8 +122,8 @@ Dokumentacja API Eye of MATE.
 %{__autoconf}
 %configure \
        --enable-gtk-doc%{!?with_apidocs:=no} \
-       --disable-scrollkeeper \
        --disable-silent-rules \
+       %{?with_gtk:--with-gtk=3.0} \
        --with-html-dir=%{_gtkdocdir}
 %{__make}
 
@@ -129,32 +135,29 @@ rm -rf $RPM_BUILD_ROOT
 
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/eom/plugins/*.la
 
-%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/cmn
-
-# mate < 1.5 did not exist in PLD, avoid dependency on mate-conf
-%{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/eom.convert
+# not supported by glibc yet
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,jv,pms}
 
-%find_lang eom --with-mate --with-omf
+%find_lang eom --with-mate
 
 %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
+%doc AUTHORS ChangeLog NEWS README
 %attr(755,root,root) %{_bindir}/eom
+%{_libdir}/girepository-1.0/Eom-1.0.typelib
 %dir %{_libdir}/eom
 %dir %{_libdir}/eom/plugins
 %attr(755,root,root) %{_libdir}/eom/plugins/libfullscreen.so
@@ -163,6 +166,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/eom/plugins/reload.eom-plugin
 %attr(755,root,root) %{_libdir}/eom/plugins/libstatusbar-date.so
 %{_libdir}/eom/plugins/statusbar-date.eom-plugin
+%{_datadir}/appdata/eom.appdata.xml
+%{_datadir}/glib-2.0/schemas/org.mate.eom.enums.xml
 %{_datadir}/glib-2.0/schemas/org.mate.eom.gschema.xml
 %{_datadir}/eom
 %{_desktopdir}/eom.desktop
@@ -172,6 +177,7 @@ rm -rf $RPM_BUILD_ROOT
 %files devel
 %defattr(644,root,root,755)
 %{_includedir}/eom-2.20
+%{_datadir}/gir-1.0/Eom-1.0.gir
 %{_pkgconfigdir}/eom.pc
 
 %if %{with apidocs}
This page took 0.079087 seconds and 4 git commands to generate.