]>
Commit | Line | Data |
---|---|---|
28db5fe7 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with qsa # build with system QtSingleApplication (unfinished) | |
4 | ||
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 | |
8e404f2d | 10 | Version: 2.7.1 |
2262a28a | 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 |
8e404f2d | 15 | # Source0-md5: ce5c84cd0edc4c182466b207b3375423 |
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} | |
23 | %{?with_qsa:BuildRequires: QtSingleApplication-devel} | |
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 |
d7762180 | 28 | BuildRequires: libtorrent-rasterbar-devel >= 1:0.15.5 |
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 |
d7762180 | 34 | Requires: libtorrent-rasterbar >= 1:0.15.5 |
a0832e35 | 35 | Requires: python >= 1:2.3 |
1e6f0590 | 36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
39 | qTorrent - Qt4-based torrent client. | |
40 | ||
dfb55a62 ZU |
41 | %description -l hu.UTF-8 |
42 | qBittorrent - Qt4-alapú torrent kliens | |
43 | ||
1e6f0590 | 44 | %description -l pl.UTF-8 |
45 | qTorrent - graficzny klient torrenta oparty na Qt4. | |
46 | ||
47 | %prep | |
48 | %setup -q | |
b16a677c | 49 | %patch0 -p1 |
1e6f0590 | 50 | |
28db5fe7 ER |
51 | %if %{with qsa} |
52 | %{__rm} -r src/qtsingleapp | |
53 | %endif | |
54 | ||
1e6f0590 | 55 | %build |
28db5fe7 ER |
56 | # NOTE: not autoconf based configure |
57 | ./configure \ | |
58 | --prefix=%{_prefix} \ | |
59 | %{?with_qsa:--with-qtsingleapplication=system} | |
4e50f1e9 | 60 | |
1e6f0590 | 61 | %{__make} |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
28db5fe7 ER |
65 | %{__make} install \ |
66 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
1e6f0590 | 67 | |
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
28db5fe7 ER |
73 | %doc README NEWS AUTHORS TODO Changelog |
74 | %attr(755,root,root) %{_bindir}/qbittorrent | |
75 | %{_mandir}/man1/qbittorrent.1* | |
76 | %{_iconsdir}/hicolor/*/apps/qbittorrent.png | |
1e6f0590 | 77 | %{_desktopdir}/qBittorrent.desktop |
28db5fe7 | 78 | %{_pixmapsdir}/qbittorrent.png |