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