]>
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 |
81fbad48 | 6 | %define rasterbar_ver 1:1.0.6 |
1e6f0590 | 7 | Summary: qbittorrent - Qt4-based torrent client |
dfb55a62 | 8 | Summary(hu.UTF-8): qbittorrent - Qt4-alapú torrent kliens |
1e6f0590 | 9 | Summary(pl.UTF-8): qbittorrent - graficzny klient torrenta oparty na Qt4 |
10 | Name: qbittorrent | |
81fbad48 | 11 | Version: 3.2.3 |
59afd303 | 12 | Release: 2 |
11f119c8 | 13 | License: GPL v2+ |
1e6f0590 | 14 | Group: X11/Applications |
51a66704 | 15 | Source0: http://downloads.sourceforge.net/qbittorrent/%{name}-%{version}.tar.gz |
81fbad48 | 16 | # Source0-md5: 1066ab02d28204d5183cff0111617859 |
b16a677c | 17 | Patch0: lang-hu-2.3.0.patch |
7331c99e | 18 | Patch1: qmake.patch |
fe2d4e4e | 19 | URL: http://qbittorrent.sourceforge.net/ |
db71b801 | 20 | BuildRequires: GeoIP-devel |
28db5fe7 ER |
21 | BuildRequires: QtCore-devel >= %{qtver} |
22 | BuildRequires: QtDBus-devel >= %{qtver} | |
23 | BuildRequires: QtGui-devel >= %{qtver} | |
24 | BuildRequires: QtNetwork-devel >= %{qtver} | |
6bd615fd | 25 | %{?with_qsa:BuildRequires: QtSingleApplication-devel >= 2.6-5} |
28db5fe7 ER |
26 | BuildRequires: QtSvg-devel >= %{qtver} |
27 | BuildRequires: QtXml-devel >= %{qtver} | |
4a2dbd68 | 28 | BuildRequires: boost-devel >= 1.36.0 |
28db5fe7 | 29 | BuildRequires: libnotify-devel >= 0.4.2 |
81fbad48 | 30 | BuildRequires: libtorrent-rasterbar-devel >= %{rasterbar_ver} |
60660486 | 31 | BuildRequires: pkgconfig |
28db5fe7 | 32 | BuildRequires: qt4-build >= %{qtver} |
29fa6892 | 33 | BuildRequires: qt4-linguist >= %{qtver} |
28db5fe7 | 34 | BuildRequires: qt4-qmake >= %{qtver} |
1e6f0590 | 35 | BuildRequires: rpmbuild(macros) >= 1.129 |
60660486 | 36 | BuildRequires: which |
016e2a07 | 37 | Requires: desktop-file-utils |
81fbad48 ER |
38 | Requires: gtk-update-icon-cache |
39 | Requires: hicolor-icon-theme | |
40 | Requires: libtorrent-rasterbar >= %{rasterbar_ver} | |
a0832e35 | 41 | Requires: python >= 1:2.3 |
1e6f0590 | 42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
43 | ||
44 | %description | |
45 | qTorrent - Qt4-based torrent client. | |
46 | ||
dfb55a62 ZU |
47 | %description -l hu.UTF-8 |
48 | qBittorrent - Qt4-alapú torrent kliens | |
49 | ||
1e6f0590 | 50 | %description -l pl.UTF-8 |
51 | qTorrent - graficzny klient torrenta oparty na Qt4. | |
52 | ||
53 | %prep | |
54 | %setup -q | |
b16a677c | 55 | %patch0 -p1 |
e40238de | 56 | %patch1 -p1 |
1e6f0590 | 57 | |
28db5fe7 | 58 | %if %{with qsa} |
e558db2f | 59 | #%{__rm} -r src/qtsingleapp |
28db5fe7 ER |
60 | %endif |
61 | ||
1e6f0590 | 62 | %build |
7331c99e JR |
63 | %{__aclocal} |
64 | %{__autoconf} | |
65 | %configure \ | |
bcb244cb | 66 | --verbose \ |
28db5fe7 | 67 | --prefix=%{_prefix} \ |
7331c99e | 68 | --with-boost-libdir=%{_libdir} \ |
28db5fe7 | 69 | %{?with_qsa:--with-qtsingleapplication=system} |
4e50f1e9 | 70 | |
bcb244cb ER |
71 | %{__make} \ |
72 | CXX="%{__cxx}" | |
1e6f0590 | 73 | |
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
28db5fe7 ER |
76 | %{__make} install \ |
77 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
1e6f0590 | 78 | |
79 | %clean | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
016e2a07 ER |
82 | %post |
83 | %update_desktop_database | |
81fbad48 ER |
84 | %update_icon_cache hicolor |
85 | ||
86 | %postun | |
87 | %update_desktop_database | |
88 | %update_icon_cache hicolor | |
016e2a07 | 89 | |
1e6f0590 | 90 | %files |
91 | %defattr(644,root,root,755) | |
01328696 | 92 | %doc NEWS AUTHORS TODO Changelog |
28db5fe7 | 93 | %attr(755,root,root) %{_bindir}/qbittorrent |
e558db2f | 94 | %{_datadir}/appdata/qBittorrent.appdata.xml |
28db5fe7 ER |
95 | %{_mandir}/man1/qbittorrent.1* |
96 | %{_iconsdir}/hicolor/*/apps/qbittorrent.png | |
1e6f0590 | 97 | %{_desktopdir}/qBittorrent.desktop |
28db5fe7 | 98 | %{_pixmapsdir}/qbittorrent.png |