3 %bcond_without qsa # build with bundled QtSingleApplication
6 Summary: qbittorrent - Qt4-based torrent client
7 Summary(hu.UTF-8): qbittorrent - Qt4-alapĂș torrent kliens
8 Summary(pl.UTF-8): qbittorrent - graficzny klient torrenta oparty na Qt4
13 Group: X11/Applications
14 Source0: http://downloads.sourceforge.net/qbittorrent/%{name}-%{version}.tar.gz
15 # Source0-md5: ac10aa62966589619cebd54b1c12d4e9
16 Patch0: lang-hu-2.3.0.patch
17 URL: http://qbittorrent.sourceforge.net/
18 BuildRequires: GeoIP-devel
19 BuildRequires: QtCore-devel >= %{qtver}
20 BuildRequires: QtDBus-devel >= %{qtver}
21 BuildRequires: QtGui-devel >= %{qtver}
22 BuildRequires: QtNetwork-devel >= %{qtver}
23 %{?with_qsa:BuildRequires: QtSingleApplication-devel >= 2.6-5}
24 BuildRequires: QtSvg-devel >= %{qtver}
25 BuildRequires: QtXml-devel >= %{qtver}
26 BuildRequires: boost-devel >= 1.36.0
27 BuildRequires: libnotify-devel >= 0.4.2
28 BuildRequires: libtorrent-rasterbar-devel >= 1:0.15.9
29 BuildRequires: pkgconfig
30 BuildRequires: qt4-build >= %{qtver}
31 BuildRequires: qt4-qmake >= %{qtver}
32 BuildRequires: rpmbuild(macros) >= 1.129
34 Requires: desktop-file-utils
35 Requires: libtorrent-rasterbar >= 1:0.15.9
36 Requires: python >= 1:2.3
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 qTorrent - Qt4-based torrent client.
42 %description -l hu.UTF-8
43 qBittorrent - Qt4-alapĂș torrent kliens
45 %description -l pl.UTF-8
46 qTorrent - graficzny klient torrenta oparty na Qt4.
53 %{__rm} -r src/qtsingleapp
57 # NOTE: not autoconf based configure
60 %{?with_qsa:--with-qtsingleapplication=system}
65 rm -rf $RPM_BUILD_ROOT
67 INSTALL_ROOT=$RPM_BUILD_ROOT
70 rm -rf $RPM_BUILD_ROOT
73 %update_desktop_database
76 %defattr(644,root,root,755)
77 %doc README NEWS AUTHORS TODO Changelog
78 %attr(755,root,root) %{_bindir}/qbittorrent
79 %{_mandir}/man1/qbittorrent.1*
80 %{_iconsdir}/hicolor/*/apps/qbittorrent.png
81 %{_desktopdir}/qBittorrent.desktop
82 %{_pixmapsdir}/qbittorrent.png