Package tumbler: Specfile

%def_enable ffmpeg
%def_disable gstreamer

Name: tumbler
Version: 0.2.9
Release: alt1

Summary: A thumbnail D-Bus service
License: GPLv2+ and LGPLv2+
Group: Graphical desktop/XFce

Url: https://git.xfce.org/xfce/tumbler/
Packager: Xfce Team <xfce@packages.altlinux.org>

Requires: lib%name = %version-%release

Vcs: https://gitlab.xfce.org/xfce/tumbler.git
Source: %name-%version.tar
Patch: %name-%version-%release.patch

BuildPreReq: rpm-build-xfce4 xfce4-dev-tools
BuildRequires: gtk-doc intltool libfreetype-devel libgio-devel libgtk+2-devel libjpeg-devel libpng-devel
BuildRequires: libpoppler-glib-devel libgsf-devel libcurl-devel
%{?!_with_bootstrap:BuildRequires: libopenraw-gnome-devel}
%{?_enable_ffmpeg:BuildRequires: libffmpegthumbnailer-devel}
%{?_enable_gstreamer:BuildRequires: libgdk-pixbuf-devel gstreamer1.0-devel gst-plugins1.0-devel}

%define _unpackaged_files_terminate_build 1

%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

%package -n lib%name
Summary: A D-bus thumbnailing framweork
Group: System/Libraries
License: LGPLv2+

%description -n lib%name
Tumbler is a D-Bus service for applications to request
thumbnails for various URI schemes and MIME types

%package -n lib%name-devel
Summary: Development files for %name
Group: Development/C
License: LGPLv2+
Requires: lib%name = %version-%release

%description -n lib%name-devel
Development files and headers for %name

%prep
%setup
%patch -p1

%build
%xfce4reconf
%configure \
	--libexecdir=%_prefix/libexec \
	%{?_disable_ffmpeg:--disable-ffmpeg-thumbnailer} \
	%{?_disable_gstreamer:--disable-gstreamer-thumbnailer} \
	--disable-static
%make_build

%install
%makeinstall_std
%find_lang %name

%files -f %name.lang
%doc AUTHORS NEWS TODO
%_sysconfdir/xdg/%name
%_prefix/libexec/%name-1
%_libdir/%name-1
%_datadir/dbus-1/services/*.service

%exclude %_libdir/%name-1/plugins/*.la
%exclude %_libdir/%name-1/plugins/cache/*.la

%files -n lib%name
%_libdir/*.so.*

%files -n lib%name-devel
%_includedir/%name-1
%_libdir/*.so
%_pkgconfigdir/*.pc

%changelog
* Wed Aug 12 2020 Mikhail Efremov <sem@altlinux.org> 0.2.9-alt1
- Added Vcs tag.
- Updated to 0.2.9.

* Mon Dec 23 2019 Mikhail Efremov <sem@altlinux.org> 0.2.8-alt1
- Don't use rpm-build-licenses.
- Updated to 0.2.8.

* Mon Aug 12 2019 Mikhail Efremov <sem@altlinux.org> 0.2.7-alt1
- Updated to 0.2.7.

* Mon Jul 29 2019 Mikhail Efremov <sem@altlinux.org> 0.2.6-alt1
- Updated to 0.2.6.

* Sun Jun 30 2019 Mikhail Efremov <sem@altlinux.org> 0.2.5-alt1
- Updated to 0.2.5.

* Mon May 20 2019 Mikhail Efremov <sem@altlinux.org> 0.2.4-alt1
- Updated to 0.2.4.

* Thu Sep 13 2018 Mikhail Efremov <sem@altlinux.org> 0.2.3-alt1
- Updated to 0.2.3.

* Sun Sep 09 2018 Mikhail Efremov <sem@altlinux.org> 0.2.2-alt1
- Updated to 0.2.2.

* Mon Apr 02 2018 Mikhail Efremov <sem@altlinux.org> 0.2.1-alt1
- Updated to 0.2.1.

* Mon Jul 31 2017 Mikhail Efremov <sem@altlinux.org> 0.2.0-alt1
- Drop obsoleted patch.
- Updated to 0.2.0.

* Thu Jul 27 2017 Michael Shigorin <mike@altlinux.org> 0.1.90-alt1.1
- BOOTSTRAP: avoid libopenraw for hefty BRs (boost).

* Tue May 16 2017 Mikhail Efremov <sem@altlinux.org> 0.1.90-alt1
- Updated to 0.1.90.

* Thu Jan 19 2017 Mikhail Efremov <sem@altlinux.org> 0.1.31-alt2
- Fix build with libopenraw-0.1.0.

* Fri Mar 06 2015 Mikhail Efremov <sem@altlinux.org> 0.1.31-alt1
- Updated to 0.1.31.

* Mon Feb 24 2014 Mikhail Efremov <sem@altlinux.org> 0.1.30-alt1
- Fix Xfce name (XFCE -> Xfce).
- Updated to 0.1.30.

* Mon May 06 2013 Mikhail Efremov <sem@altlinux.org> 0.1.29-alt1
- Updated translations from upstream git.
- Updated to 0.1.29.

* Thu Jan 24 2013 Mikhail Efremov <sem@altlinux.org> 0.1.27-alt2
- libtumbler-devel: Added strict dependency on libtumbler
    (closes: #28456).
- Updated from upstream git (translations and minor build fixes).

* Sun Jan 13 2013 Mikhail Efremov <sem@altlinux.org> 0.1.27-alt1
- Updated to 0.1.27.
- Don't package tumbler-xdg-cache.la.

* Tue Dec 11 2012 Mikhail Efremov <sem@altlinux.org> 0.1.26-alt1
- Fix URL.
- FIx License.
- Build ODF and RAW thumbnailer plugins.
- Use %%xfce4reconf.
- Updated to 0.1.26 (closes: #28211).

* Wed Mar 09 2011 Valery Inozemtsev <shrek@altlinux.ru> 0.1.21-alt1
- 0.1.21
- fixed path to tumblerd in dbus service files (closes: #25206)

* Mon Nov 08 2010 Valery Inozemtsev <shrek@altlinux.ru> 0.1.4-alt1
- 0.1.4

* Thu Nov 04 2010 Valery Inozemtsev <shrek@altlinux.ru> 0.1.3-alt1
- 0.1.3

* Tue Jan 26 2010 Valery Inozemtsev <shrek@altlinux.ru> 0.1.1-alt1
- initial release