File tumbler.spec of Package tumbler
#
# spec file for package tumbler
#
# 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: tumbler
Version: 0.1.22
Release: 1
License: GPLv2+ and LGPLv2+
Summary: Thumbnail Management for Xfce
Url: http://www.xfce.org/
Group: Productivity/Graphics/Other
Source: http://archive.xfce.org/src/apps/%{name}/0.1/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM tumbler-0.1.22-fix-video-thumbnails.patch bxo#7996 gber@opensuse.org -- Fixes generation of video images by starting the pipeline
Patch0: tumbler-0.1.22-fix-video-thumbnails.patch
BuildRequires: intltool
BuildRequires: freetype2-devel
BuildRequires: libjpeg-devel
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(poppler-glib)
BuildRequires: pkgconfig(gstreamer-0.10)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Tumbler is a D-Bus service for applications to request thumbnails for various
URI schemes and MIME types. It is an implementation of the thumbnail management
D-Bus specification described on http://live.gnome.org/ThumbnailerSpec and
extensible through a plugin interface or via specialized thumbnailer services
implemented in accordance to the thumbnail management D-Bus specification.
%package devel
License: GPLv2+ and LGPLv2+
Summary: Development Files for tumbler
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: freetype2-devel
Requires: libjpeg-devel
Requires: pkgconfig(libpng)
Requires: pkgconfig(glib-2.0)
Requires: pkgconfig(dbus-glib-1)
Requires: pkgconfig(gdk-pixbuf-2.0)
Requires: pkgconfig(poppler-glib)
%description devel
Tumbler is a D-Bus service for applications to request thumbnails for various
URI schemes and MIME types. It is an implementation of the thumbnail management
D-Bus specification described on http://live.gnome.org/ThumbnailerSpec and
extensible through a plugin interface or via specialized thumbnailer services
implemented in accordance to the thumbnail management D-Bus specification.
This package contains the development files needed for developing tumbler
plugins.
%prep
%setup -q
%patch0 -p1
%build
%configure --disable-static
make %{?_smp_mflags} V=1
%install
%make_install
find %{buildroot}%{_libdir} -name '*.la' | xargs rm -f
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%find_lang %{name}
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_libdir}/*.so.*
# should be libexec, upstream uses libdir
%dir %{_libdir}/tumbler-1
%{_libdir}/tumbler-1/tumblerd
%dir %{_libdir}/tumbler-1/plugins
%dir %{_libdir}/tumbler-1/plugins/cache
%{_libdir}/tumbler-1/plugins/cache/tumbler-xdg-cache.so
%{_libdir}/tumbler-1/plugins/cache/tumbler-cache-plugin.so
%{_libdir}/tumbler-1/plugins/tumbler-font-thumbnailer.so
%{_libdir}/tumbler-1/plugins/tumbler-jpeg-thumbnailer.so
%{_libdir}/tumbler-1/plugins/tumbler-pixbuf-thumbnailer.so
%{_libdir}/tumbler-1/plugins/tumbler-poppler-thumbnailer.so
%{_libdir}/tumbler-1/plugins/tumbler-gst-thumbnailer.so
%{_datadir}/dbus-1/services/*.service
%files devel
%defattr(-,root,root)
%{_includedir}/tumbler-1
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%doc %{_datadir}/gtk-doc/html/tumbler
%changelog