File shotwell.spec of Package shotwell
#
# spec file for package shotwell
#
# Copyright (c) 2014 SUSE LINUX Products 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.15.1
Release: 0
Summary: Photo Manager for GNOME
License: LGPL-2.1+
Group: Productivity/Graphics/Viewers
Url: http://yorba.org/shotwell/
Source: http://yorba.org/download/shotwell/0.15/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM 0001-Remove-photo-from-the-collection-when-deleting-in-si.patch bnc#869348 bgo#732964 mgorse@suse.com -- Fix possible crash after removing photo in single page view.
Patch0: 0001-Remove-photo-from-the-collection-when-deleting-in-si.patch
BuildRequires: libraw-devel-static
BuildRequires: update-desktop-files
BuildRequires: vala >= 0.17.2
BuildRequires: pkgconfig(atk)
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(gdk-2.0)
BuildRequires: pkgconfig(gdk-x11-2.0)
BuildRequires: pkgconfig(gee-0.8) >= 0.5.0
BuildRequires: pkgconfig(gexiv2) >= 0.3.92
BuildRequires: pkgconfig(gio-unix-2.0) >= 2.20
BuildRequires: pkgconfig(gstreamer-1.0) >= 1.0.0
BuildRequires: pkgconfig(gstreamer-base-1.0) >= 1.0.0
BuildRequires: pkgconfig(gstreamer-pbutils-1.0) >= 1.0.0
BuildRequires: pkgconfig(gtk+-3.0) >= 3.0.11
BuildRequires: pkgconfig(gudev-1.0) >= 145
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(libexif) >= 0.6.16
BuildRequires: pkgconfig(libgphoto2) >= 2.4.2
BuildRequires: pkgconfig(libsoup-2.4) >= 2.26.0
BuildRequires: pkgconfig(libxml-2.0) >= 2.6.32
BuildRequires: pkgconfig(rest-0.7)
BuildRequires: pkgconfig(sqlite3) >= 3.5.9
BuildRequires: pkgconfig(unique-3.0) >= 3.0.0
BuildRequires: pkgconfig(webkitgtk-3.0) >= 1.4.0
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires
%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
%setup -q
%patch0 -p1
%build
# We can't use the configure macro: it's not a standard autotools configure script
export CFLAGS="%{optflags}"
export LIB=%{_lib}
./configure \
--prefix=%{_prefix} \
--lib=%{_lib} \
--libexec=%{_libexecdir}/%{name} \
--disable-schemas-compile \
--disable-desktop-update \
--disable-icon-update
%__make %{?_smp_mfalgs}
%install
%makeinstall
%find_lang %{name} %{?no_lang_C}
%find_lang shotwell-extras shotwell.lang %{no_lang_C}
%suse_update_desktop_file shotwell
%suse_update_desktop_file shotwell-viewer
%clean
rm -rf %{buildroot}
%post
%glib2_gsettings_schema_post
%desktop_database_post
%icon_theme_cache_post
%postun
%glib2_gsettings_schema_postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root)
%doc AUTHORS COPYING MAINTAINERS NEWS README THANKS
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%{_bindir}/shotwell
%dir %{_datadir}/appdata
%{_datadir}/appdata/shotwell.appdata.xml
%{_datadir}/applications/shotwell*.desktop
%{_datadir}/GConf/gsettings/shotwell.convert
%{_datadir}/glib-2.0/schemas/org.yorba.shotwell-extras.gschema.xml
%{_datadir}/glib-2.0/schemas/org.yorba.shotwell.gschema.xml
%{_datadir}/icons/hicolor/*/apps/shotwell.svg
%{_datadir}/shotwell/
%{_libdir}/shotwell/
%dir %{_libexecdir}/shotwell
%{_libexecdir}/shotwell/shotwell-settings-migrator
%{_libexecdir}/shotwell/shotwell-video-thumbnailer
%files lang -f %{name}.lang
%changelog