File shotwell.spec of Package shotwell
#
# spec file for package shotwell
#
# Copyright (c) 2011 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.8.1
Release: 2
License: LGPLv2.1+
Summary: Photo Manager for GNOME
Url: http://yorba.org/shotwell/
Group: Productivity/Graphics/Viewers
Source: %{name}-%{version}.tar.bz2
BuildRequires: libraw-devel-static
BuildRequires: vala
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(atk)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(gdk-2.0)
BuildRequires: pkgconfig(gdk-x11-2.0)
BuildRequires: pkgconfig(gee-1.0)
BuildRequires: pkgconfig(gexiv2)
BuildRequires: pkgconfig(gstreamer-0.10)
BuildRequires: pkgconfig(gstreamer-base-0.10)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(gudev-1.0)
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(libexif)
BuildRequires: pkgconfig(libgphoto2)
BuildRequires: pkgconfig(libsoup-2.4)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(unique-1.0)
BuildRequires: pkgconfig(webkit-1.0)
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq
%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
%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} \
--disable-schemas-install \
--disable-desktop-update \
--disable-icon-update
%__make %{?jobs:-j%{jobs}}
%install
%makeinstall
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas
%suse_update_desktop_file shotwell
%suse_update_desktop_file shotwell-viewer
%clean
rm -rf %{buildroot}
%pre -f %{name}.schemas_pre
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%if 0%{?suse_version} > 1130
%post
%desktop_database_post
%icon_theme_cache_post
%endif
%if 0%{?suse_version} > 1130
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files -f %{name}.schemas_list
%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
%{_datadir}/applications/shotwell*.desktop
%{_datadir}/icons/hicolor/*/apps/shotwell.svg
%{_datadir}/shotwell/
%files lang -f %{name}.lang
%changelog