File raw-thumbnailer.spec of Package raw-thumbnailer
#
# spec file for package raw-thumbnailer
#
# 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/
#
Summary: Thumbnailer for digital camera RAW
Name: raw-thumbnailer
Version: 0.99.1
Release: 79
License: GPLv2+
Group: Productivity/Graphics/Other
%if %suse_version >= 1030
%define prefix /usr
%define sysconfdir /etc
%else
%define prefix /opt/gnome
%define sysconfdir /etc%{prefix}
%endif
Source0: %name-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM raw-thumbnailer-make382.patch dimstar@opensuse.org -- Fix build with make 3.82
Patch0: raw-thumbnailer-make382.patch
# Needed for patch0 raw-thumbnailer-make382.patch"
BuildRequires: gnome-common
BuildRequires: gnome-vfs2-devel
BuildRequires: gtk2-devel
BuildRequires: libgsf-devel
BuildRequires: libjpeg-devel
BuildRequires: libopenraw-devel >= 0.0.4
# apparently on suse 10.0 it needs this
BuildRequires: libstdc++-devel
BuildRequires: perl-XML-Parser
# All features provided by dcraw-gnome are now handled by other packages:
# Package existed in <= 10.3 and SLE == 10
Obsoletes: dcraw-gnome <= 0.11
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq
%description
A thumbnailer used by Nautilus for digital camera RAW files.
%prep
%setup -q
%patch0 -p1
%build
NOCONFIGURE=1 gnome-autogen.sh
%configure
%__make %{?_smp_mflags}
%install
%makeinstall
%find_gconf_schemas
%pre -f %{name}.schemas_pre
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%if 0%{?suse_version} > 1130
%post
%mime_database_post
%endif
%if 0%{?suse_version} > 1130
%postun
%mime_database_postun
%endif
%clean
rm -rf %{buildroot}
%files -f %{name}.schemas_list
%defattr(-,root,root)
%doc README NEWS COPYING ChangeLog
%{_bindir}/raw-thumbnailer
%{_datadir}/mime/packages/raw-thumbnailer.xml
%changelog