[qbittorrent] spec file cleanup
leigh123linux
leigh123linux at fedoraproject.org
Fri Aug 12 14:25:33 UTC 2011
commit 14ee2ccb8d89585d66104a74e1706b17c507b0e3
Author: Leigh Scott <leigh123linux at googlemail.com>
Date: Fri Aug 12 15:25:19 2011 +0100
spec file cleanup
qbittorrent.spec | 24 +++++++++++-------------
1 files changed, 11 insertions(+), 13 deletions(-)
---
diff --git a/qbittorrent.spec b/qbittorrent.spec
index bfdf23a..b9ff6f3 100644
--- a/qbittorrent.spec
+++ b/qbittorrent.spec
@@ -3,7 +3,7 @@
Name: qbittorrent
Summary: A Bittorrent Client
Version: 2.8.4
-Release: 1%{?dist}
+Release: 2%{?dist}
Epoch: 1
# The source for this package was pulled from upstream's vcs. Use the
# following commands to generate the tarball:
@@ -20,7 +20,6 @@ Patch0: disable_extra_debug.patch
URL: http://sourceforge.net/projects/qbittorrent
Group: Applications/Internet
-BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
License: GPLv2+
BuildRequires: qt4-devel
BuildRequires: desktop-file-utils
@@ -51,7 +50,7 @@ It aims to be as fast as possible and to provide multi-OS, unicode support.
%prep
%setup -q
rm -rf src/qtsingleapp
-#%patch0 -p1 -b .disable_extra_debug
+#patch0 -p1 -b .disable_extra_debug
# Upstream patches
@@ -94,25 +93,22 @@ desktop-file-install \
--delete-original \
$RPM_BUILD_ROOT%{_datadir}/applications/qBittorrent.desktop
-%clean
-rm -rf $RPM_BUILD_ROOT
%post
-update-desktop-database &> /dev/null || :
-touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+/usr/bin/update-desktop-database &> /dev/null || :
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun
-update-desktop-database &> /dev/null || :
+/usr/bin/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 || :
+ /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+ /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
%posttrans
-gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+/usr/bin/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}/qbittorrent
@@ -121,13 +117,15 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_datadir}/pixmaps/qbittorrent.png
%files nox
-%defattr(-,root,root,-)
%doc qbittorrent-nox.README NEWS COPYING AUTHORS TODO Changelog
%{_bindir}/qbittorrent-nox
%{_mandir}/man1/qbittorrent-nox.1*
%changelog
+* Fri Aug 12 2011 Leigh Scott <leigh123linux at googlemail.com> - 1:2.8.4-2
+- spec file cleanup
+
* Fri Aug 12 2011 Leigh Scott <leigh123linux at googlemail.com> - 1:2.8.4-1
- update to 2.8.4
More information about the scm-commits
mailing list