File f-spot.spec of Package f-spot

# spec file for package f-spot
# 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:           f-spot
Version:        0.8.2
Release:        2
License:        GPLv2+
Summary:        GNOME Photo Management Application
Group:          Productivity/Graphics/Viewers
Source:         %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM f-spot-mono-recent-gtk-sharp.patch -- Fix build with recent gtk-sharp, taken from git
Patch2:         f-spot-mono-recent-gtk-sharp.patch
BuildRequires:  fdupes
BuildRequires:  flickrnet
BuildRequires:  gconf-sharp2
BuildRequires:  glib-sharp2
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gnome-screensaver
BuildRequires:  gnome-keyring-sharp-devel
BuildRequires:  gnome-sharp2
BuildRequires:  gtk-sharp2
BuildRequires:  gtk-sharp2-gapi
BuildRequires:  intltool
BuildRequires:  libexif-devel
BuildRequires:  libgnomeui-devel
BuildRequires:  liblcms-devel
BuildRequires:  libunique-devel
BuildRequires:  mono-addins
BuildRequires:  mono-basic
BuildRequires:  mono-data-sqlite
BuildRequires:  mono-devel
BuildRequires:  ndesk-dbus-glib-devel
BuildRequires:  update-desktop-files
Requires:       brasero
Requires:       dbus-1-x11
Requires:       dcraw
Requires:       libgphoto2
Requires:       mono-core
Recommends:     %{name}-lang
Provides:       %{name}-devel = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

F-Spot is a full-featured personal photo management application for the
GNOME desktop.

F-Spot simplifies digital photography by providing intuitive tools to
help you share, touch-up, find and organize your images.

%setup -q
%if 0%{?suse_version} >= 1140
%patch2 -p1

export CFLAGS="%{optflags} -fstack-protector -fno-strict-aliasing"
    --libexecdir=%{_libexecdir}/f-spot \
    --disable-schemas-install \
#%__make %{?jobs:-j%jobs}

%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file -C "Organize digital photographs" -G "Photo Browser" -N "F-Spot" %{name}
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/screensavers/f-spot-screensaver.desktop
%suse_update_desktop_file f-spot-import
%suse_update_desktop_file f-spot-view
rm %{buildroot}%{_libdir}/*/*.*a
# Not sure if this is TRT...
%__rm -rf %{buildroot}%{_libdir}/gio-sharp-unstable
%__rm -rf %{buildroot}%{_libdir}/pkgconfig/gio-sharp-unstable.pc
%fdupes -s %{buildroot}

rm -rf %{buildroot}

%pre -f %{name}.schemas_pre

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%if 0%{?suse_version} > 1130


%if 0%{?suse_version} > 1130


%files -f %{name}.schemas_list
%defattr(-, root, root)
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/

%files lang -f %{name}.lang
%defattr(-, root, root)
%define __find_provides env sh -c 'filelist=($(grep -v -E "%{_libdir}/%{name}/extensions|Mono.Addins")) && { printf "%s\\n" "${filelist[@]}" | %{_prefix}/lib/rpm/find-provides && printf "%s\\n" "${filelist[@]}" | %{_bindir}/mono-find-provides ; } | sort | uniq || echo ""'

openSUSE Build Service is sponsored by