]> git.pld-linux.org Git - packages/qbittorrent.git/blame - qbittorrent.spec
- up to 3.1.11
[packages/qbittorrent.git] / qbittorrent.spec
CommitLineData
28db5fe7
ER
1#
2# Conditional build:
6bd615fd 3%bcond_without qsa # build with bundled QtSingleApplication
016e2a07 4
28db5fe7 5%define qtver 4.5
1e6f0590 6Summary: qbittorrent - Qt4-based torrent client
dfb55a62 7Summary(hu.UTF-8): qbittorrent - Qt4-alapú torrent kliens
1e6f0590 8Summary(pl.UTF-8): qbittorrent - graficzny klient torrenta oparty na Qt4
9Name: qbittorrent
01328696
AZ
10Version: 3.1.11
11Release: 1
11f119c8 12License: GPL v2+
1e6f0590 13Group: X11/Applications
51a66704 14Source0: http://downloads.sourceforge.net/qbittorrent/%{name}-%{version}.tar.gz
01328696 15# Source0-md5: fcdcb9c0d42d040ead66d1a9cf33cd28
b16a677c 16Patch0: lang-hu-2.3.0.patch
e40238de 17Patch1: cxx.patch
fe2d4e4e 18URL: http://qbittorrent.sourceforge.net/
db71b801 19BuildRequires: GeoIP-devel
28db5fe7
ER
20BuildRequires: QtCore-devel >= %{qtver}
21BuildRequires: QtDBus-devel >= %{qtver}
22BuildRequires: QtGui-devel >= %{qtver}
23BuildRequires: QtNetwork-devel >= %{qtver}
6bd615fd 24%{?with_qsa:BuildRequires: QtSingleApplication-devel >= 2.6-5}
28db5fe7
ER
25BuildRequires: QtSvg-devel >= %{qtver}
26BuildRequires: QtXml-devel >= %{qtver}
4a2dbd68 27BuildRequires: boost-devel >= 1.36.0
28db5fe7 28BuildRequires: libnotify-devel >= 0.4.2
a46b4730 29BuildRequires: libtorrent-rasterbar-devel >= 1:0.15.9
01328696 30BuildRequires: libtorrent-rasterbar-devel <= 1:0.16.17
60660486 31BuildRequires: pkgconfig
28db5fe7
ER
32BuildRequires: qt4-build >= %{qtver}
33BuildRequires: qt4-qmake >= %{qtver}
1e6f0590 34BuildRequires: rpmbuild(macros) >= 1.129
60660486 35BuildRequires: which
016e2a07 36Requires: desktop-file-utils
a46b4730 37Requires: libtorrent-rasterbar >= 1:0.15.9
a0832e35 38Requires: python >= 1:2.3
1e6f0590 39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41%description
42qTorrent - Qt4-based torrent client.
43
dfb55a62
ZU
44%description -l hu.UTF-8
45qBittorrent - Qt4-alapú torrent kliens
46
1e6f0590 47%description -l pl.UTF-8
48qTorrent - graficzny klient torrenta oparty na Qt4.
49
50%prep
51%setup -q
b16a677c 52%patch0 -p1
e40238de 53%patch1 -p1
1e6f0590 54
28db5fe7
ER
55%if %{with qsa}
56%{__rm} -r src/qtsingleapp
57%endif
58
1e6f0590 59%build
28db5fe7
ER
60# NOTE: not autoconf based configure
61./configure \
bcb244cb 62 --verbose \
28db5fe7
ER
63 --prefix=%{_prefix} \
64 %{?with_qsa:--with-qtsingleapplication=system}
4e50f1e9 65
bcb244cb
ER
66%{__make} \
67 CXX="%{__cxx}"
1e6f0590 68
69%install
70rm -rf $RPM_BUILD_ROOT
28db5fe7
ER
71%{__make} install \
72 INSTALL_ROOT=$RPM_BUILD_ROOT
1e6f0590 73
74%clean
75rm -rf $RPM_BUILD_ROOT
76
016e2a07
ER
77%post
78%update_desktop_database
79
1e6f0590 80%files
81%defattr(644,root,root,755)
01328696 82%doc NEWS AUTHORS TODO Changelog
28db5fe7
ER
83%attr(755,root,root) %{_bindir}/qbittorrent
84%{_mandir}/man1/qbittorrent.1*
85%{_iconsdir}/hicolor/*/apps/qbittorrent.png
1e6f0590 86%{_desktopdir}/qBittorrent.desktop
28db5fe7 87%{_pixmapsdir}/qbittorrent.png
This page took 0.036775 seconds and 4 git commands to generate.