rpms/qbittorrent/F-11 qbittorrent.spec,1.12,1.13

Leigh Scott leigh123linux at fedoraproject.org
Tue Jun 23 20:43:19 UTC 2009


Author: leigh123linux

Update of /cvs/pkgs/rpms/qbittorrent/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv17427

Modified Files:
	qbittorrent.spec 
Log Message:
* Tue Jun 23 2009 Leigh Scott <leigh123linux at googlemail.com> -1.3.3-5
- replace update-mime-database with update-desktop-database
- update scriplets to the latest guidelines
- clean up white space



Index: qbittorrent.spec
===================================================================
RCS file: /cvs/pkgs/rpms/qbittorrent/F-11/qbittorrent.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -p -r1.12 -r1.13
--- qbittorrent.spec	5 May 2009 08:56:47 -0000	1.12
+++ qbittorrent.spec	23 Jun 2009 20:42:49 -0000	1.13
@@ -1,7 +1,7 @@
 Name:    qbittorrent
 Summary: A Bittorrent Client 
 Version: 1.3.3
-Release: 4%{dist}
+Release: 5%{dist}
 Source0: http://downloads.sf.net/qbittorrent/%{name}-%{version}.tar.gz
 Patch0:  qbittorrent_flag.patch
 
@@ -17,7 +17,6 @@ BuildRequires: zziplib-devel
 BuildRequires: rb_libtorrent-devel >= 0.14.1
 BuildRequires: curl-devel, glib2-devel
 
-
 %description
 A Bittorrent client using rb_libtorrent and a Qt4 Graphical User Interface.
 It aims to be as fast as possible and to provide multi-OS, unicode support.
@@ -26,7 +25,6 @@ It aims to be as fast as possible and to
 %setup -q
 %patch0 -p1 -b .qbittorrent_flag
 
-
 %build
 # use ./configure instead of %%configure as it doesn't work
 CFLAGS="%optflags" CXXFLAGS="%optflags" \
@@ -37,46 +35,42 @@ make %{?_smp_mflags}
 rm -rf $RPM_BUILD_ROOT
 make INSTALL_ROOT=$RPM_BUILD_ROOT install
 
-
-desktop-file-install --vendor="" \
+desktop-file-install \
   --dir=$RPM_BUILD_ROOT%{_datadir}/applications/ \
   --delete-original \
         $RPM_BUILD_ROOT%{_datadir}/applications/qBittorrent.desktop
 
-
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-touch --no-create %{_datadir}/icons/hicolor
-if [ -x %{_bindir}/gtk-update-icon-cache ]; then
-  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
-fi
-update-mime-database %{_datadir}/mime &> /dev/null || :
-
+update-desktop-database &> /dev/null || :
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 
 %postun
-touch --no-create %{_datadir}/icons/hicolor
-if [ -x %{_bindir}/gtk-update-icon-cache ]; then
-  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+update-desktop-database &> /dev/null || :
+if [ $1 -eq 0 ] ; then
+    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 fi
-update-mime-database %{_datadir}/mime &> /dev/null || :
-
-
 
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 %files
 %defattr(-, root, root, -)
 %doc README NEWS COPYING AUTHORS TODO Changelog
 %{_mandir}/man1/qbittorrent.1*
-%{_bindir}/%{name}
+%{_bindir}/qbittorrent
 %{_datadir}/applications/qBittorrent.desktop
 %{_datadir}/icons/hicolor/*/apps/qbittorrent.png
 
-
-
 %changelog
+* Tue Jun 23 2009 Leigh Scott <leigh123linux at googlemail.com> -1.3.3-5
+- replace update-mime-database with update-desktop-database
+- update scriplets to the latest guidelines
+- clean up white space
+
 * Wed Apr 29 2009 Leigh Scott <leigh123linux at googlemail.com> -1.3.3-4
 - rebuild against the new rb_libtorrent version 0.14.3
 




More information about the fedora-extras-commits mailing list