]>
Commit | Line | Data |
---|---|---|
28db5fe7 ER |
1 | # |
2 | # Conditional build: | |
077042a3 | 3 | %bcond_with qsa # system QtSingleApplication |
016e2a07 | 4 | |
3de1bdb8 | 5 | %define qtver 5.7 |
077042a3 | 6 | %define rasterbar_ver 2:1.1.10 |
43422266 JR |
7 | Summary: qbittorrent - Qt-based torrent client |
8 | Summary(hu.UTF-8): qbittorrent - Qt-alapú torrent kliens | |
9 | Summary(pl.UTF-8): qbittorrent - graficzny klient torrenta oparty na Qt | |
1e6f0590 | 10 | Name: qbittorrent |
c5f0c073 | 11 | Version: 4.2.5 |
43422266 | 12 | Release: 1 |
11f119c8 | 13 | License: GPL v2+ |
1e6f0590 | 14 | Group: X11/Applications |
43422266 | 15 | Source0: http://downloads.sourceforge.net/qbittorrent/%{name}-%{version}.tar.xz |
c5f0c073 | 16 | # Source0-md5: e272971ed6f1a82d05e0240d48d08f88 |
fe2d4e4e | 17 | URL: http://qbittorrent.sourceforge.net/ |
db71b801 | 18 | BuildRequires: GeoIP-devel |
302f661e | 19 | BuildRequires: Qt5Concurrent-devel >= %{qtver} |
43422266 JR |
20 | BuildRequires: Qt5Core-devel >= %{qtver} |
21 | BuildRequires: Qt5DBus-devel >= %{qtver} | |
22 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
23 | BuildRequires: Qt5Network-devel >= %{qtver} | |
3de1bdb8 | 24 | %{?with_qsa:BuildRequires: Qt5SingleApplication-devel >= 2.6.1-4} |
43422266 JR |
25 | BuildRequires: Qt5Svg-devel >= %{qtver} |
26 | BuildRequires: Qt5Xml-devel >= %{qtver} | |
c5f0c073 | 27 | BuildRequires: boost-devel >= 1.40 |
28db5fe7 | 28 | BuildRequires: libnotify-devel >= 0.4.2 |
c5f0c073 | 29 | BuildRequires: libstdc++-devel >= 6:5 |
81fbad48 | 30 | BuildRequires: libtorrent-rasterbar-devel >= %{rasterbar_ver} |
077042a3 | 31 | # not ready yet |
c5f0c073 JB |
32 | BuildRequires: libtorrent-rasterbar-devel < 2:1.3.0 |
33 | BuildRequires: openssl-devel >= 1.0 | |
077042a3 | 34 | BuildRequires: pkgconfig >= 1:0.23 |
43422266 JR |
35 | BuildRequires: qt5-build >= %{qtver} |
36 | BuildRequires: qt5-linguist >= %{qtver} | |
37 | BuildRequires: qt5-qmake >= %{qtver} | |
1e6f0590 | 38 | BuildRequires: rpmbuild(macros) >= 1.129 |
60660486 | 39 | BuildRequires: which |
077042a3 | 40 | BuildRequires: zlib >= 1.2.5.2 |
016e2a07 | 41 | Requires: desktop-file-utils |
81fbad48 ER |
42 | Requires: gtk-update-icon-cache |
43 | Requires: hicolor-icon-theme | |
44 | Requires: libtorrent-rasterbar >= %{rasterbar_ver} | |
a0832e35 | 45 | Requires: python >= 1:2.3 |
1e6f0590 | 46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
48 | %description | |
43422266 | 49 | qTorrent - Qt-based torrent client. |
1e6f0590 | 50 | |
dfb55a62 | 51 | %description -l hu.UTF-8 |
43422266 | 52 | qBittorrent - Qt-alapú torrent kliens |
dfb55a62 | 53 | |
1e6f0590 | 54 | %description -l pl.UTF-8 |
43422266 | 55 | qTorrent - graficzny klient torrenta oparty na Qt. |
1e6f0590 | 56 | |
57 | %prep | |
58 | %setup -q | |
1e6f0590 | 59 | |
28db5fe7 | 60 | %if %{with qsa} |
077042a3 | 61 | %{__rm} -r src/app/qtsingleapplication |
28db5fe7 ER |
62 | %endif |
63 | ||
1e6f0590 | 64 | %build |
7331c99e JR |
65 | %{__aclocal} |
66 | %{__autoconf} | |
67 | %configure \ | |
bcb244cb | 68 | --verbose \ |
28db5fe7 | 69 | --prefix=%{_prefix} \ |
7331c99e | 70 | --with-boost-libdir=%{_libdir} \ |
28db5fe7 | 71 | %{?with_qsa:--with-qtsingleapplication=system} |
4e50f1e9 | 72 | |
bcb244cb ER |
73 | %{__make} \ |
74 | CXX="%{__cxx}" | |
1e6f0590 | 75 | |
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
28db5fe7 ER |
78 | %{__make} install \ |
79 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
1e6f0590 | 80 | |
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
016e2a07 ER |
84 | %post |
85 | %update_desktop_database | |
81fbad48 ER |
86 | %update_icon_cache hicolor |
87 | ||
88 | %postun | |
89 | %update_desktop_database | |
90 | %update_icon_cache hicolor | |
016e2a07 | 91 | |
1e6f0590 | 92 | %files |
93 | %defattr(644,root,root,755) | |
01328696 | 94 | %doc NEWS AUTHORS TODO Changelog |
28db5fe7 | 95 | %attr(755,root,root) %{_bindir}/qbittorrent |
c5f0c073 | 96 | %{_datadir}/metainfo/org.qbittorrent.qBittorrent.appdata.xml |
28db5fe7 | 97 | %{_mandir}/man1/qbittorrent.1* |
c5f0c073 | 98 | %{_desktopdir}/org.qbittorrent.qBittorrent.desktop |
077042a3 | 99 | %{_iconsdir}/hicolor/*x*/apps/qbittorrent.png |
f3da5c2b | 100 | %{_iconsdir}/hicolor/*x*/status/qbittorrent-tray.png |
077042a3 | 101 | %{_iconsdir}/hicolor/scalable/status/qbittorrent-tray*.svg |
28db5fe7 | 102 | %{_pixmapsdir}/qbittorrent.png |