2014-03-09 17:03:05 +01:00
|
|
|
#
|
|
|
|
# spec file for package eom
|
|
|
|
#
|
2018-03-10 22:44:34 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-03-09 17:03:05 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2015-06-28 13:50:24 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2014-03-09 17:03:05 +01:00
|
|
|
|
2015-12-09 21:31:42 +01:00
|
|
|
%define typelib typelib-1_0-Eom-1_0
|
2018-03-10 22:44:34 +01:00
|
|
|
%define _version 1.20
|
2014-03-09 17:03:05 +01:00
|
|
|
Name: eom
|
2018-03-10 22:44:34 +01:00
|
|
|
Version: 1.20.0
|
2014-03-09 17:03:05 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: MATE Desktop graphics viewer
|
2018-03-10 22:44:34 +01:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
2014-03-09 17:03:05 +01:00
|
|
|
Group: System/GUI/Other
|
2017-02-08 15:50:07 +01:00
|
|
|
Url: https://mate-desktop.org/
|
2015-06-28 13:50:24 +02:00
|
|
|
Source: http://pub.mate-desktop.org/releases/%{_version}/%{name}-%{version}.tar.xz
|
2018-03-10 22:44:34 +01:00
|
|
|
# PATCH-FEATURE-OPENSUSE eom-gtk-3.20.patch -- Restore GLib 2.48 and GTK+ 3.20 support.
|
|
|
|
Patch0: eom-gtk-3.20.patch
|
2014-03-09 17:03:05 +01:00
|
|
|
BuildRequires: hicolor-icon-theme
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libxml2-python
|
2015-11-06 07:26:16 +01:00
|
|
|
BuildRequires: mate-common >= %{_version}
|
2016-08-10 15:38:38 +02:00
|
|
|
BuildRequires: pkgconfig
|
2015-06-28 13:50:24 +02:00
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: yelp-tools
|
2014-03-09 17:03:05 +01:00
|
|
|
BuildRequires: pkgconfig(dbus-glib-1)
|
|
|
|
BuildRequires: pkgconfig(exempi-2.0)
|
|
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
|
2018-03-10 22:44:34 +01:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.48
|
2015-12-09 20:13:36 +01:00
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
2018-03-10 22:44:34 +01:00
|
|
|
BuildRequires: pkgconfig(gtk+-3.0) >= 3.20
|
2017-03-19 12:45:42 +01:00
|
|
|
BuildRequires: pkgconfig(gtk+-unix-print-3.0)
|
2014-03-09 17:03:05 +01:00
|
|
|
BuildRequires: pkgconfig(lcms2)
|
|
|
|
BuildRequires: pkgconfig(libexif)
|
2017-03-19 12:45:42 +01:00
|
|
|
BuildRequires: pkgconfig(libpeas-gtk-1.0)
|
2014-03-09 17:03:05 +01:00
|
|
|
BuildRequires: pkgconfig(librsvg-2.0)
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2015-11-06 07:26:16 +01:00
|
|
|
BuildRequires: pkgconfig(mate-desktop-2.0) >= %{_version}
|
|
|
|
Requires: mate-desktop-gsettings-schemas >= %{_version}
|
2015-10-05 16:55:31 +02:00
|
|
|
Recommends: %{name}-lang
|
2015-12-07 18:18:11 +01:00
|
|
|
# mate-image-viewer was last used in openSUSE 13.1.
|
2015-06-28 13:50:24 +02:00
|
|
|
Provides: mate-image-viewer = %{version}
|
|
|
|
Obsoletes: mate-image-viewer < %{version}
|
|
|
|
Obsoletes: mate-image-viewer-lang < %{version}
|
|
|
|
%glib2_gsettings_schema_requires
|
2014-03-09 17:03:05 +01:00
|
|
|
|
|
|
|
%description
|
2015-06-28 13:50:24 +02:00
|
|
|
The Eye of MATE is a simple graphics viewer for the MATE Desktop
|
|
|
|
which uses the gdk-pixbuf library. It can deal with large images,
|
|
|
|
and zoom and scroll with constant memory usage. Its goals are
|
|
|
|
simplicity and standards compliance.
|
|
|
|
|
|
|
|
%lang_package
|
2014-03-09 17:03:05 +01:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: MATE Desktop graphics viewer development files
|
|
|
|
Group: Development/Tools/Other
|
|
|
|
Requires: %{name} = %{version}
|
2016-02-19 14:09:30 +01:00
|
|
|
# mate-image-viewer-devel was last used in openSUSE 13.1.
|
2014-03-12 14:32:48 +01:00
|
|
|
Provides: mate-image-viewer-devel = %{version}
|
|
|
|
Obsoletes: mate-image-viewer-devel < %{version}
|
2014-03-09 17:03:05 +01:00
|
|
|
|
|
|
|
%description devel
|
2015-06-28 13:50:24 +02:00
|
|
|
The Eye of MATE is a simple graphics viewer for the MATE Desktop
|
|
|
|
which uses the gdk-pixbuf library. It can deal with large images,
|
|
|
|
and zoom and scroll with constant memory usage. Its goals are
|
|
|
|
simplicity and standards compliance.
|
2014-03-09 17:03:05 +01:00
|
|
|
|
2015-12-09 21:31:42 +01:00
|
|
|
%package -n %{typelib}
|
|
|
|
Summary: MATE Desktop graphics viewer typelib
|
2016-04-09 14:17:10 +02:00
|
|
|
Group: System/Libraries
|
2015-12-09 21:31:42 +01:00
|
|
|
|
|
|
|
%description -n %{typelib}
|
|
|
|
The Eye of MATE is a simple graphics viewer for the MATE Desktop
|
|
|
|
which uses the gdk-pixbuf library. It can deal with large images,
|
|
|
|
and zoom and scroll with constant memory usage. Its goals are
|
|
|
|
simplicity and standards compliance.
|
|
|
|
|
2014-03-09 17:03:05 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2018-03-10 22:44:34 +01:00
|
|
|
%patch0 -p1
|
2014-03-09 17:03:05 +01:00
|
|
|
|
|
|
|
%build
|
2015-12-07 18:18:11 +01:00
|
|
|
NOCONFIGURE=1 mate-autogen
|
2015-06-28 13:50:24 +02:00
|
|
|
%configure \
|
2016-04-09 14:17:10 +02:00
|
|
|
--libexecdir=%{_libexecdir}/%{name} \
|
2017-03-19 12:45:42 +01:00
|
|
|
--disable-python
|
2017-02-08 15:50:07 +01:00
|
|
|
make %{?_smp_mflags} V=1
|
2014-03-09 17:03:05 +01:00
|
|
|
|
|
|
|
%install
|
2015-06-28 13:50:24 +02:00
|
|
|
%make_install
|
2014-03-09 17:03:05 +01:00
|
|
|
%find_lang %{name} %{?no_lang_C}
|
2015-06-28 13:50:24 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%suse_update_desktop_file %{name}
|
|
|
|
|
2018-03-10 22:44:34 +01:00
|
|
|
%if 0%{?suse_version} < 1500
|
2014-03-09 17:03:05 +01:00
|
|
|
%post
|
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
2015-06-28 13:50:24 +02:00
|
|
|
%glib2_gsettings_schema_post
|
2014-03-09 17:03:05 +01:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
2015-06-28 13:50:24 +02:00
|
|
|
%glib2_gsettings_schema_postun
|
2017-11-08 21:16:27 +01:00
|
|
|
%endif
|
2014-03-09 17:03:05 +01:00
|
|
|
|
|
|
|
%files
|
2018-03-10 22:44:34 +01:00
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
%license COPYING
|
|
|
|
%else
|
|
|
|
%doc COPYING
|
|
|
|
%endif
|
|
|
|
%doc AUTHORS NEWS README
|
2014-03-09 17:03:05 +01:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_libdir}/%{name}/
|
2016-09-21 00:24:40 +02:00
|
|
|
%{_datadir}/%{name}/
|
|
|
|
%{_datadir}/glib-2.0/schemas/*.xml
|
2015-06-28 13:50:24 +02:00
|
|
|
%dir %{_datadir}/appdata/
|
|
|
|
%{_datadir}/appdata/%{name}.appdata.xml
|
2014-03-09 17:03:05 +01:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2015-06-28 13:50:24 +02:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/%{name}.*
|
|
|
|
%{_mandir}/man?/%{name}.?%{?ext_man}
|
2016-09-21 00:24:40 +02:00
|
|
|
%{_datadir}/help/C/%{name}/
|
2014-03-09 17:03:05 +01:00
|
|
|
|
2015-12-09 21:31:42 +01:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
2014-03-09 17:03:05 +01:00
|
|
|
%files devel
|
|
|
|
%{_includedir}/%{name}-2.20/
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
2015-12-09 21:31:42 +01:00
|
|
|
%{_datadir}/gir-1.0/Eom-1.0.gir
|
2015-06-28 13:50:24 +02:00
|
|
|
%{_datadir}/gtk-doc/html/%{name}/
|
2014-03-09 17:03:05 +01:00
|
|
|
|
2015-12-09 21:31:42 +01:00
|
|
|
%files -n %{typelib}
|
|
|
|
%{_libdir}/girepository-1.0/Eom-1.0.typelib
|
2014-03-09 17:03:05 +01:00
|
|
|
|
|
|
|
%changelog
|