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

Name:           shotwell
Version:        0.11.5
Release:        1
# FIXME: Check if the hack to remove --fatal-warnings is still required. Also see
License:        LGPLv2.1+
Summary:        Photo Manager for GNOME
Group:          Productivity/Graphics/Viewers
# PATCH-FIX-OPENSUSE shotwell-no-max-vala.patch -- Shotwell devs don't want vala 0.13/0.14 for 0.11.x, but it's okay to use it. See and the vala fix in
Patch0:         shotwell-no-max-vala.patch
BuildRequires:  libraw-devel-static
BuildRequires:  vala
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(atk)
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(gio-unix-2.0)
BuildRequires:  pkgconfig(gstreamer-0.10)
BuildRequires:  pkgconfig(gstreamer-base-0.10)
BuildRequires:  pkgconfig(gstreamer-pbutils-0.10)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(gudev-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

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.

%setup -q
%patch0 -p1

# We can't use the configure macro: it's not a standard autotools configure script
export CFLAGS="%{optflags}"
export LIB=%{_lib}
# HACK: Remove fatal-warnings to succeed build with vala 0.13.
sed -i "s:--fatal-warnings ::g" Makefile plugins/
./configure \
        --prefix=%{_prefix} \
        --lib=%{_lib} \
        --disable-schemas-compile \
        --disable-desktop-update \
%__make %{?_smp_mfalgs}

%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

rm -rf %{buildroot}

%if 0%{?suse_version} > 1130


%if 0%{?suse_version} > 1130


%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by