]> git.pld-linux.org Git - packages/qbittorrent.git/blame - qbittorrent.spec
- updated to 4.2.5 (now ready for libtorrent-rasterbar 1.2.x)
[packages/qbittorrent.git] / qbittorrent.spec
CommitLineData
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
7Summary: qbittorrent - Qt-based torrent client
8Summary(hu.UTF-8): qbittorrent - Qt-alapú torrent kliens
9Summary(pl.UTF-8): qbittorrent - graficzny klient torrenta oparty na Qt
1e6f0590 10Name: qbittorrent
c5f0c073 11Version: 4.2.5
43422266 12Release: 1
11f119c8 13License: GPL v2+
1e6f0590 14Group: X11/Applications
43422266 15Source0: http://downloads.sourceforge.net/qbittorrent/%{name}-%{version}.tar.xz
c5f0c073 16# Source0-md5: e272971ed6f1a82d05e0240d48d08f88
fe2d4e4e 17URL: http://qbittorrent.sourceforge.net/
db71b801 18BuildRequires: GeoIP-devel
302f661e 19BuildRequires: Qt5Concurrent-devel >= %{qtver}
43422266
JR
20BuildRequires: Qt5Core-devel >= %{qtver}
21BuildRequires: Qt5DBus-devel >= %{qtver}
22BuildRequires: Qt5Gui-devel >= %{qtver}
23BuildRequires: Qt5Network-devel >= %{qtver}
3de1bdb8 24%{?with_qsa:BuildRequires: Qt5SingleApplication-devel >= 2.6.1-4}
43422266
JR
25BuildRequires: Qt5Svg-devel >= %{qtver}
26BuildRequires: Qt5Xml-devel >= %{qtver}
c5f0c073 27BuildRequires: boost-devel >= 1.40
28db5fe7 28BuildRequires: libnotify-devel >= 0.4.2
c5f0c073 29BuildRequires: libstdc++-devel >= 6:5
81fbad48 30BuildRequires: libtorrent-rasterbar-devel >= %{rasterbar_ver}
077042a3 31# not ready yet
c5f0c073
JB
32BuildRequires: libtorrent-rasterbar-devel < 2:1.3.0
33BuildRequires: openssl-devel >= 1.0
077042a3 34BuildRequires: pkgconfig >= 1:0.23
43422266
JR
35BuildRequires: qt5-build >= %{qtver}
36BuildRequires: qt5-linguist >= %{qtver}
37BuildRequires: qt5-qmake >= %{qtver}
1e6f0590 38BuildRequires: rpmbuild(macros) >= 1.129
60660486 39BuildRequires: which
077042a3 40BuildRequires: zlib >= 1.2.5.2
016e2a07 41Requires: desktop-file-utils
81fbad48
ER
42Requires: gtk-update-icon-cache
43Requires: hicolor-icon-theme
44Requires: libtorrent-rasterbar >= %{rasterbar_ver}
a0832e35 45Requires: python >= 1:2.3
1e6f0590 46BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48%description
43422266 49qTorrent - Qt-based torrent client.
1e6f0590 50
dfb55a62 51%description -l hu.UTF-8
43422266 52qBittorrent - Qt-alapú torrent kliens
dfb55a62 53
1e6f0590 54%description -l pl.UTF-8
43422266 55qTorrent - 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
77rm -rf $RPM_BUILD_ROOT
28db5fe7
ER
78%{__make} install \
79 INSTALL_ROOT=$RPM_BUILD_ROOT
1e6f0590 80
81%clean
82rm -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
This page took 0.043061 seconds and 4 git commands to generate.