rpms/qbittorrent/F-12 qbittorrent.spec,1.50,1.51
Leigh Scott
leigh123linux at fedoraproject.org
Mon Jan 18 19:17:59 UTC 2010
Author: leigh123linux
Update of /cvs/pkgs/rpms/qbittorrent/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv3295
Modified Files:
qbittorrent.spec
Log Message:
* Mon Jan 18 2010 Leigh Scott <leigh123linux at googlemail.com> - 2.1.0-2
- add nox package
Index: qbittorrent.spec
===================================================================
RCS file: /cvs/pkgs/rpms/qbittorrent/F-12/qbittorrent.spec,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -p -r1.50 -r1.51
--- qbittorrent.spec 18 Jan 2010 18:58:37 -0000 1.50
+++ qbittorrent.spec 18 Jan 2010 19:17:59 -0000 1.51
@@ -3,7 +3,7 @@
Name: qbittorrent
Summary: A Bittorrent Client
Version: 2.1.0
-Release: 1%{?dist}
+Release: 2%{?dist}
# The source for this package was pulled from upstream's vcs. Use the
# following commands to generate the tarball:
# svn checkout -r %{svn_rev} https://qbittorrent.svn.sourceforge.net/svnroot/qbittorrent/trunk qbittorrent
@@ -30,17 +30,37 @@ BuildRequires: libnotify-devel
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.
+%package nox
+Summary: A Headless Bittorrent Client
+Group: Applications/Internet
+
+%description nox
+A Headless Bittorrent client using rb_libtorrent.
+It aims to be as fast as possible and to provide multi-OS, unicode support.
+
%prep
%setup -q
%patch1 -p1 -b .gcc
%build
# use ./configure instead of %%configure as it doesn't work
+# configure and make headless first
+./configure --prefix=%{_prefix} \
+ --disable-gui
+make %{?_smp_mflags}
+make clean
+# configure and make gui version
./configure --prefix=%{_prefix}
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
+# install headless version
+mkdir -p $RPM_BUILD_ROOT%{_bindir}
+mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
+install -m 755 -p src/qbittorrent-nox $RPM_BUILD_ROOT%{_bindir}
+install -m 644 -p doc/qbittorrent-nox.1 $RPM_BUILD_ROOT%{_mandir}/man1
+# install gui version
make INSTALL_ROOT=$RPM_BUILD_ROOT install
desktop-file-install \
@@ -73,7 +93,16 @@ gtk-update-icon-cache %{_datadir}/icons/
%{_datadir}/applications/qBittorrent.desktop
%{_datadir}/icons/hicolor/*/apps/qbittorrent.png
+%files nox
+%defattr(-,root,root,-)
+%{_bindir}/qbittorrent-nox
+%{_mandir}/man1/qbittorrent-nox.1*
+
+
%changelog
+* Mon Jan 18 2010 Leigh Scott <leigh123linux at googlemail.com> - 2.1.0-2
+- add nox package
+
* Mon Jan 18 2010 Leigh Scott <leigh123linux at googlemail.com> - 2.1.0-1
- update to 2.1.0
More information about the scm-commits
mailing list