File gnome-photos.spec of Package gnome-photos
#
# spec file for package gnome-photos
#
# Copyright (c) 2015 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: gnome-photos
Version: 3.16.2
Release: 0
Summary: Photo viewer for GNOME
License: GPL-3.0+
Group: Productivity/Graphics/Viewers
Url: https://live.gnome.org/Design/Apps/Photos
Source: http://download.gnome.org/sources/gnome-photos/3.16/%{name}-%{version}.tar.xz
# Technically seen, glib2-tools would require this, but it introduces a loop there. So explictly require here
BuildRequires: gdk-pixbuf-loader-rsvg
BuildRequires: hicolor-icon-theme
BuildRequires: intltool >= 0.50.1
BuildRequires: itstool
BuildRequires: update-desktop-files
BuildRequires: yelp-tools
BuildRequires: pkgconfig(babl)
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(cairo-gobject)
BuildRequires: pkgconfig(exempi-2.0) >= 1.99.5
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(gegl-0.3)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glib-2.0) >= 2.39.3
BuildRequires: pkgconfig(gnome-desktop-3.0)
BuildRequires: pkgconfig(goa-1.0) >= 3.8.0
BuildRequires: pkgconfig(grilo-0.2) >= 0.2.6
BuildRequires: pkgconfig(gtk+-3.0) >= 3.15.5
BuildRequires: pkgconfig(gtk+-unix-print-3.0)
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(libexif) >= 0.6.14
BuildRequires: pkgconfig(libgdata) >= 0.15.2
BuildRequires: pkgconfig(libgfbgraph-0.2) >= 0.2.1
BuildRequires: pkgconfig(librsvg-2.0) >= 2.26.0
BuildRequires: pkgconfig(tracker-control-1.0)
BuildRequires: pkgconfig(tracker-sparql-1.0)
# gnome-photos references tracker's glib schemas
Requires: tracker
# If we want to be able to send photos to a remote DLNA renderer, we require the dbus service for it
Recommends: dbus(dleyna-renderer-service)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires
%description
Photos, like Documents, Music and Videos, is one of the core GNOME
applications meant for find and reminding the user about her content.
The internal architecture Photos is based on Documents -- the document
manager application for GNOME, because they share similar UI/UX
patterns and objectives.
%package -n gnome-shell-search-provider-gnome-photos
Summary: GNOME Photos -- Search Provider for GNOME Shell
Group: Productivity/Graphics/Viewers
Supplements: packageand(gnome-shell:%{name})
Requires: %{name} = %{version}
%description -n gnome-shell-search-provider-gnome-photos
This package contains a search provider to enable GNOME Shell to get
search results from GNOME Photos.
%lang_package
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
%make_install
rm %{buildroot}%{_datadir}/doc/%{name}/{ARTISTS,AUTHORS,ChangeLog,COPYING,NEWS,README}
%suse_update_desktop_file org.gnome.Photos
%find_lang %{name} %{?no_lang_C}
%post
%glib2_gsettings_schema_post
%icon_theme_cache_post
%desktop_database_post
%postun
%glib2_gsettings_schema_postun
%icon_theme_cache_postun
%desktop_database_postun
%files
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_bindir}/%{name}
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/icons/hicolor/scalable/apps/gnome-photos-symbolic.svg
%dir %{_datadir}/appdata
%{_datadir}/appdata/org.gnome.Photos.appdata.xml
%{_datadir}/applications/org.gnome.Photos.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.photos.gschema.xml
%{_datadir}/dbus-1/services/org.gnome.Photos.service
%{_datadir}/help/C/%{name}/
%files -n gnome-shell-search-provider-gnome-photos
%defattr (-, root, root)
# Own dirs so we don't have to depend on gnome-shell -- should probably be split into own package.
%dir %{_datadir}/gnome-shell
%dir %{_datadir}/gnome-shell/search-providers
%{_datadir}/gnome-shell/search-providers/org.gnome.Photos.search-provider.ini
%files lang -f %{name}.lang
%changelog