File shotwell.spec of Package shotwell
#
# spec file for package shotwell
#
# Copyright (c) 2018 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: shotwell
Version: 0.32.8
Release: 0
Summary: Photo Manager for GNOME
License: LGPL-2.1-or-later
Group: Productivity/Graphics/Viewers
URL: https://wiki.gnome.org/Apps/Shotwell
Source0: https://download.gnome.org/sources/shotwell/0.32/%{name}-%{version}.tar.xz
Source99: shotwell-rpmlintrc
BuildRequires: appstream-glib
BuildRequires: desktop-file-utils
BuildRequires: fdupes
BuildRequires: gettext >= 0.19.7
BuildRequires: libraw-devel-static
BuildRequires: meson >= 0.43.0
BuildRequires: pkgconfig
BuildRequires: vala >= 0.28.0
BuildRequires: yelp-tools
BuildRequires: pkgconfig(atk)
BuildRequires: pkgconfig(gcr-3)
BuildRequires: pkgconfig(gcr-ui-3)
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(gee-0.8) >= 0.10.0
BuildRequires: pkgconfig(gexiv2) >= 0.12.3
BuildRequires: pkgconfig(gio-unix-2.0) >= 2.20
BuildRequires: pkgconfig(glib-2.0) >= 2.40.0
BuildRequires: pkgconfig(gstreamer-1.0) >= 1.20
BuildRequires: pkgconfig(gstreamer-base-1.0) >= 1.0.0
BuildRequires: pkgconfig(gstreamer-pbutils-1.0) >= 1.20
BuildRequires: pkgconfig(gtk+-3.0) >= 3.14.0
BuildRequires: pkgconfig(gudev-1.0) >= 145
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(libexif) >= 0.6.16
BuildRequires: pkgconfig(libsecret-1)
BuildRequires: pkgconfig(libgphoto2) >= 2.5.0
BuildRequires: pkgconfig(libportal-gtk3) > 0.5
BuildRequires: pkgconfig(libsoup-3.0)
BuildRequires: pkgconfig(libwebpdemux)
BuildRequires: pkgconfig(libwebp)
BuildRequires: pkgconfig(libxml-2.0) >= 2.6.32
BuildRequires: pkgconfig(sqlite3) >= 3.5.9
BuildRequires: pkgconfig(webkit2gtk-4.1) >= 2.26
%description
Shotwell is a digital photo organizer designed for the GNOME desktop
environment. It allows you to import photos from disk or camera,
organize them in various ways, view them in full-window or fullscreen
mode, and export them to share with others.
%lang_package
%prep
%autosetup -p1
%build
%meson \
-D unity_support=false \
-D dupe_detection=false \
-D install_apport_hook=false \
%{nil}
%meson_build
%install
%meson_install
%fdupes %{buildroot}%{_datadir}
%find_lang %{name} %{?no_lang_C}
%check
%meson_test
desktop-file-validate %{buildroot}%{_datadir}/applications/org.gnome.Shotwell.desktop
desktop-file-validate %{buildroot}%{_datadir}/applications/org.gnome.Shotwell-Viewer.desktop
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/org.gnome.Shotwell.appdata.xml
%ldconfig_scriptlets
%files
%license COPYING
%doc AUTHORS NEWS THANKS
%doc %{_datadir}/help/C/%{name}/
%{_bindir}/shotwell
%dir %{_datadir}/metainfo
%{_datadir}/applications/org.gnome.Shotwell-Viewer.desktop
%{_datadir}/applications/org.gnome.Shotwell.Auth.desktop
%{_datadir}/applications/org.gnome.Shotwell.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.shotwell-extras.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.shotwell.gschema.xml
%{_datadir}/glib-2.0/schemas/org.yorba.shotwell-extras.gschema.xml
%{_datadir}/glib-2.0/schemas/org.yorba.shotwell.gschema.xml
%{_datadir}/icons/hicolor/*/*/org.gnome.Shotwell*
%{_datadir}/metainfo/org.gnome.Shotwell.appdata.xml
%{_libdir}/shotwell/
# This is not split as the only consumer is shotwell itself.
%{_libdir}/libshotwell-authenticator.so
%{_libdir}/libshotwell-authenticator.so.0
%{_libdir}/libshotwell-authenticator.so.%{version}
%{_libdir}/libshotwell-plugin-common.so
%{_libdir}/libshotwell-plugin-common.so.0
%{_libdir}/libshotwell-plugin-common.so.%{version}
%{_libdir}/libshotwell-plugin-dev-1.0.so
%{_libdir}/libshotwell-plugin-dev-1.0.so.0
%{_libdir}/libshotwell-plugin-dev-1.0.so.%{version}
%dir %{_libexecdir}/shotwell
%{_libexecdir}/shotwell/shotwell-authenticator
%{_libexecdir}/shotwell/shotwell-settings-migrator
%{_libexecdir}/shotwell/shotwell-video-metadata-handler
%{_libexecdir}/shotwell/shotwell-video-thumbnailer
%{_mandir}/man1/shotwell.1%{?ext_man}
%files lang -f %{name}.lang
%changelog