SHA256
1
0
forked from pool/eog
eog/eog.spec
Bjørn Lie 8e0ef021eb Accepting request 548433 from home:Zaitor
- Drop update-desktop-files BuildRequires and no longer pass
  suse_update_desktop_file macro, not needed anymore.
- Drop eog2 Provides and Obsoletes, no current openSUSE release
  have ever had eog2.
- Modernize spec, use autosetup and make_build macros.

OBS-URL: https://build.opensuse.org/request/show/548433
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/eog?expand=0&rev=237
2017-12-05 03:20:28 +00:00

110 lines
3.2 KiB
RPMSpec

#
# spec file for package eog
#
# Copyright (c) 2017 SUSE LINUX 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: eog
Version: 3.26.2
Release: 0
Summary: Image Viewer for GNOME
License: GPL-2.0+ AND LGPL-2.1+
Group: Productivity/Graphics/Viewers
Url: http://www.gnome.org/
Source: http://download.gnome.org/sources/eog/3.26/%{name}-%{version}.tar.xz
BuildRequires: fdupes
BuildRequires: libjpeg-devel
BuildRequires: pkgconfig
BuildRequires: yelp-tools
BuildRequires: pkgconfig(exempi-2.0) >= 1.99.5
BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.36.5
BuildRequires: pkgconfig(glib-2.0) >= 2.42.0
BuildRequires: pkgconfig(gnome-desktop-3.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gtk+-3.0) >= 3.22.0
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(libexif)
BuildRequires: pkgconfig(libpeas-gtk-1.0) >= 0.7.4
BuildRequires: pkgconfig(librsvg-2.0) >= 2.36.2
BuildRequires: pkgconfig(shared-mime-info)
Recommends: %{name}-lang
%if !0%{?is_opensuse}
BuildRequires: translation-update-upstream
%endif
%description
Eye of GNOME is a simple graphics viewer for the GNOME desktop which
uses the gdk-pixbuf library. It can deal with large images, and zoom
and scroll with constant memory usage.
%package devel
Summary: Development files for eog, an image viewer
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}
%description devel
Eye of GNOME (eog) is a simple graphics viewer for the GNOME desktop
which uses the gdk-pixbuf library.
This subpackage contains the header files for developing
eog plugins.
%lang_package
%prep
%autosetup
%if !0%{?is_opensuse}
translation-update-upstream
%endif
%build
%configure
%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}
%files
%license COPYING
%doc %{_datadir}/help/C/%{name}/
%{_bindir}/eog
%{_libdir}/eog/
%{_datadir}/applications/eog.desktop
%dir %{_datadir}/appdata
%{_datadir}/appdata/eog.appdata.xml
%{_datadir}/icons/hicolor/*/apps/%{name}*
%{_datadir}/eog/
%{_datadir}/GConf/gsettings/eog.convert
%{_datadir}/glib-2.0/schemas/org.gnome.eog.enums.xml
%{_datadir}/glib-2.0/schemas/org.gnome.eog.gschema.xml
# %%{_datadir}/eog/gir-1.0/ goes to the -devel package.
%exclude %{_datadir}/eog/gir-1.0/
%files lang -f %{name}.lang
%files devel
%doc AUTHORS ChangeLog NEWS README
%{_includedir}/eog-3.0/
%{_libdir}/pkgconfig/eog.pc
%{_datadir}/eog/gir-1.0/
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html/
%{_datadir}/gtk-doc/html/eog/
%changelog