[ristretto] Require tumbler for thumbnail generation

Christoph Wickert cwickert at fedoraproject.org
Tue Nov 8 12:37:34 UTC 2011


commit bbdbaebe53c4ee929a6c5da6dadf386988f657c9
Author: Christoph Wickert <cwickert at fedoraproject.org>
Date:   Tue Nov 8 13:37:28 2011 +0100

    Require tumbler for thumbnail generation

 ristretto.spec |   30 +++++++++++++++++-------------
 1 files changed, 17 insertions(+), 13 deletions(-)
---
diff --git a/ristretto.spec b/ristretto.spec
index d61ec10..de0d3d1 100644
--- a/ristretto.spec
+++ b/ristretto.spec
@@ -6,7 +6,7 @@
 
 Name:           ristretto
 Version:        0.3.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Image-viewer for the Xfce desktop environment
 Summary(de):    Bildbetrachter für die Xfce Desktop-Umgebung
 
@@ -23,6 +23,7 @@ BuildRequires:  libexif-devel >= 0.6.0
 BuildRequires:  libxfce4ui-devel >= %{xfceversion}
 BuildRequires:  xfconf-devel >= %{xfceversion}
 BuildRequires:  desktop-file-utils, gettext, intltool
+Requires:       tumbler
 
 
 %description
@@ -44,22 +45,22 @@ make %{?_smp_mflags}
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
 %find_lang %{name}
-desktop-file-install --vendor fedora                            \
-        --dir ${RPM_BUILD_ROOT}%{_datadir}/applications         \
-        --add-mime-type=image/x-bmp                             \
-        --add-mime-type=image/x-png                             \
-        --add-mime-type=image/x-pcx                             \
-        --add-mime-type=image/x-tga                             \
-        --add-mime-type=image/xpm                               \
-        --delete-original                                       \
-        ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
+desktop-file-install --vendor fedora \
+        --dir %{buildroot}%{_datadir}/applications \
+        --add-mime-type=image/x-bmp \
+        --add-mime-type=image/x-png \
+        --add-mime-type=image/x-pcx \
+        --add-mime-type=image/x-tga \
+        --add-mime-type=image/xpm \
+        --delete-original \
+        %{buildroot}%{_datadir}/applications/%{name}.desktop
 
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
 
 %post
@@ -89,6 +90,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 
 %changelog
+* Tue Nov 08 2011 Christoph Wickert <cwickert at fedoraproject.org> - 0.3.0-2
+- Require tumbler for thumbnail generation
+
 * Sun Nov 06 2011 Christoph Wickert <cwickert at fedoraproject.org> - 0.3.0-1
 - Update to 0.3.0
 


More information about the scm-commits mailing list