]>
Commit | Line | Data |
---|---|---|
28db5fe7 ER |
1 | # |
2 | # Conditional build: | |
6bd615fd | 3 | %bcond_without qsa # build with bundled QtSingleApplication |
016e2a07 | 4 | |
28db5fe7 | 5 | %define qtver 4.5 |
1e6f0590 | 6 | Summary: qbittorrent - Qt4-based torrent client |
dfb55a62 | 7 | Summary(hu.UTF-8): qbittorrent - Qt4-alapú torrent kliens |
1e6f0590 | 8 | Summary(pl.UTF-8): qbittorrent - graficzny klient torrenta oparty na Qt4 |
9 | Name: qbittorrent | |
f8a7f078 ER |
10 | Version: 2.9.8 |
11 | Release: 1 | |
11f119c8 | 12 | License: GPL v2+ |
1e6f0590 | 13 | Group: X11/Applications |
51a66704 | 14 | Source0: http://downloads.sourceforge.net/qbittorrent/%{name}-%{version}.tar.gz |
f8a7f078 | 15 | # Source0-md5: a93065938fadf29a531ba5ea0fd4f204 |
b16a677c | 16 | Patch0: lang-hu-2.3.0.patch |
fe2d4e4e | 17 | URL: http://qbittorrent.sourceforge.net/ |
db71b801 | 18 | BuildRequires: GeoIP-devel |
28db5fe7 ER |
19 | BuildRequires: QtCore-devel >= %{qtver} |
20 | BuildRequires: QtDBus-devel >= %{qtver} | |
21 | BuildRequires: QtGui-devel >= %{qtver} | |
22 | BuildRequires: QtNetwork-devel >= %{qtver} | |
6bd615fd | 23 | %{?with_qsa:BuildRequires: QtSingleApplication-devel >= 2.6-5} |
28db5fe7 ER |
24 | BuildRequires: QtSvg-devel >= %{qtver} |
25 | BuildRequires: QtXml-devel >= %{qtver} | |
4a2dbd68 | 26 | BuildRequires: boost-devel >= 1.36.0 |
28db5fe7 | 27 | BuildRequires: libnotify-devel >= 0.4.2 |
a46b4730 | 28 | BuildRequires: libtorrent-rasterbar-devel >= 1:0.15.9 |
60660486 | 29 | BuildRequires: pkgconfig |
28db5fe7 ER |
30 | BuildRequires: qt4-build >= %{qtver} |
31 | BuildRequires: qt4-qmake >= %{qtver} | |
1e6f0590 | 32 | BuildRequires: rpmbuild(macros) >= 1.129 |
60660486 | 33 | BuildRequires: which |
016e2a07 | 34 | Requires: desktop-file-utils |
a46b4730 | 35 | Requires: libtorrent-rasterbar >= 1:0.15.9 |
a0832e35 | 36 | Requires: python >= 1:2.3 |
1e6f0590 | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %description | |
40 | qTorrent - Qt4-based torrent client. | |
41 | ||
dfb55a62 ZU |
42 | %description -l hu.UTF-8 |
43 | qBittorrent - Qt4-alapú torrent kliens | |
44 | ||
1e6f0590 | 45 | %description -l pl.UTF-8 |
46 | qTorrent - graficzny klient torrenta oparty na Qt4. | |
47 | ||
48 | %prep | |
49 | %setup -q | |
b16a677c | 50 | %patch0 -p1 |
1e6f0590 | 51 | |
28db5fe7 ER |
52 | %if %{with qsa} |
53 | %{__rm} -r src/qtsingleapp | |
54 | %endif | |
55 | ||
1e6f0590 | 56 | %build |
28db5fe7 ER |
57 | # NOTE: not autoconf based configure |
58 | ./configure \ | |
59 | --prefix=%{_prefix} \ | |
60 | %{?with_qsa:--with-qtsingleapplication=system} | |
4e50f1e9 | 61 | |
1e6f0590 | 62 | %{__make} |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
28db5fe7 ER |
66 | %{__make} install \ |
67 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
1e6f0590 | 68 | |
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
016e2a07 ER |
72 | %post |
73 | %update_desktop_database | |
74 | ||
1e6f0590 | 75 | %files |
76 | %defattr(644,root,root,755) | |
28db5fe7 ER |
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 | |
1e6f0590 | 81 | %{_desktopdir}/qBittorrent.desktop |
28db5fe7 | 82 | %{_pixmapsdir}/qbittorrent.png |