]> git.pld-linux.org Git - packages/qbittorrent.git/blame - qbittorrent.spec
- system QtSingleApplication build possible
[packages/qbittorrent.git] / qbittorrent.spec
CommitLineData
28db5fe7
ER
1#
2# Conditional build:
3%bcond_with qsa # build with system QtSingleApplication (unfinished)
4
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
8e404f2d 10Version: 2.7.1
2262a28a 11Release: 1
11f119c8 12License: GPL v2+
1e6f0590 13Group: X11/Applications
51a66704 14Source0: http://downloads.sourceforge.net/qbittorrent/%{name}-%{version}.tar.gz
8e404f2d 15# Source0-md5: ce5c84cd0edc4c182466b207b3375423
b16a677c 16Patch0: lang-hu-2.3.0.patch
fe2d4e4e 17URL: http://qbittorrent.sourceforge.net/
db71b801 18BuildRequires: GeoIP-devel
28db5fe7
ER
19BuildRequires: QtCore-devel >= %{qtver}
20BuildRequires: QtDBus-devel >= %{qtver}
21BuildRequires: QtGui-devel >= %{qtver}
22BuildRequires: QtNetwork-devel >= %{qtver}
23%{?with_qsa:BuildRequires: QtSingleApplication-devel}
24BuildRequires: QtSvg-devel >= %{qtver}
25BuildRequires: QtXml-devel >= %{qtver}
4a2dbd68 26BuildRequires: boost-devel >= 1.36.0
28db5fe7 27BuildRequires: libnotify-devel >= 0.4.2
d7762180 28BuildRequires: libtorrent-rasterbar-devel >= 1:0.15.5
60660486 29BuildRequires: pkgconfig
28db5fe7
ER
30BuildRequires: qt4-build >= %{qtver}
31BuildRequires: qt4-qmake >= %{qtver}
1e6f0590 32BuildRequires: rpmbuild(macros) >= 1.129
60660486 33BuildRequires: which
d7762180 34Requires: libtorrent-rasterbar >= 1:0.15.5
a0832e35 35Requires: python >= 1:2.3
1e6f0590 36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38%description
39qTorrent - Qt4-based torrent client.
40
dfb55a62
ZU
41%description -l hu.UTF-8
42qBittorrent - Qt4-alapú torrent kliens
43
1e6f0590 44%description -l pl.UTF-8
45qTorrent - 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
64rm -rf $RPM_BUILD_ROOT
28db5fe7
ER
65%{__make} install \
66 INSTALL_ROOT=$RPM_BUILD_ROOT
1e6f0590 67
68%clean
69rm -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
This page took 0.084035 seconds and 4 git commands to generate.