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/
#

Name:           raw-thumbnailer
Version:        3.0.0
Release:        0
Summary:        Thumbnailer for digital camera RAW
License:        GPL-2.0+
Group:          Productivity/Graphics/Other
Url:            http://libopenraw.freedesktop.org
Source0:        http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.bz2
BuildRequires:  intltool
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(libopenraw-gnome-1.0) >= 0.0.9
# 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

%description
A thumbnailer used by Nautilus for digital camera RAW files.

%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
%make_install

%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
%defattr(-,root,root)
%doc NEWS COPYING ChangeLog
%{_bindir}/raw-thumbnailer
%{_datadir}/mime/packages/raw-thumbnailer.xml
%dir %{_datadir}/thumbnailers
%{_datadir}/thumbnailers/raw.thumbnailer

%changelog
openSUSE Build Service is sponsored by