]> git.pld-linux.org Git - packages/qbittorrent.git/blame - qbittorrent.spec
- release 2 (by relup.sh)
[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
81fbad48 6%define rasterbar_ver 1:1.0.6
1e6f0590 7Summary: qbittorrent - Qt4-based torrent client
dfb55a62 8Summary(hu.UTF-8): qbittorrent - Qt4-alapú torrent kliens
1e6f0590 9Summary(pl.UTF-8): qbittorrent - graficzny klient torrenta oparty na Qt4
10Name: qbittorrent
81fbad48 11Version: 3.2.3
59afd303 12Release: 2
11f119c8 13License: GPL v2+
1e6f0590 14Group: X11/Applications
51a66704 15Source0: http://downloads.sourceforge.net/qbittorrent/%{name}-%{version}.tar.gz
81fbad48 16# Source0-md5: 1066ab02d28204d5183cff0111617859
b16a677c 17Patch0: lang-hu-2.3.0.patch
7331c99e 18Patch1: qmake.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
81fbad48 30BuildRequires: libtorrent-rasterbar-devel >= %{rasterbar_ver}
60660486 31BuildRequires: pkgconfig
28db5fe7 32BuildRequires: qt4-build >= %{qtver}
29fa6892 33BuildRequires: qt4-linguist >= %{qtver}
28db5fe7 34BuildRequires: qt4-qmake >= %{qtver}
1e6f0590 35BuildRequires: rpmbuild(macros) >= 1.129
60660486 36BuildRequires: which
016e2a07 37Requires: desktop-file-utils
81fbad48
ER
38Requires: gtk-update-icon-cache
39Requires: hicolor-icon-theme
40Requires: libtorrent-rasterbar >= %{rasterbar_ver}
a0832e35 41Requires: python >= 1:2.3
1e6f0590 42BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44%description
45qTorrent - Qt4-based torrent client.
46
dfb55a62
ZU
47%description -l hu.UTF-8
48qBittorrent - Qt4-alapú torrent kliens
49
1e6f0590 50%description -l pl.UTF-8
51qTorrent - graficzny klient torrenta oparty na Qt4.
52
53%prep
54%setup -q
b16a677c 55%patch0 -p1
e40238de 56%patch1 -p1
1e6f0590 57
28db5fe7 58%if %{with qsa}
e558db2f 59#%{__rm} -r src/qtsingleapp
28db5fe7
ER
60%endif
61
1e6f0590 62%build
7331c99e
JR
63%{__aclocal}
64%{__autoconf}
65%configure \
bcb244cb 66 --verbose \
28db5fe7 67 --prefix=%{_prefix} \
7331c99e 68 --with-boost-libdir=%{_libdir} \
28db5fe7 69 %{?with_qsa:--with-qtsingleapplication=system}
4e50f1e9 70
bcb244cb
ER
71%{__make} \
72 CXX="%{__cxx}"
1e6f0590 73
74%install
75rm -rf $RPM_BUILD_ROOT
28db5fe7
ER
76%{__make} install \
77 INSTALL_ROOT=$RPM_BUILD_ROOT
1e6f0590 78
79%clean
80rm -rf $RPM_BUILD_ROOT
81
016e2a07
ER
82%post
83%update_desktop_database
81fbad48
ER
84%update_icon_cache hicolor
85
86%postun
87%update_desktop_database
88%update_icon_cache hicolor
016e2a07 89
1e6f0590 90%files
91%defattr(644,root,root,755)
01328696 92%doc NEWS AUTHORS TODO Changelog
28db5fe7 93%attr(755,root,root) %{_bindir}/qbittorrent
e558db2f 94%{_datadir}/appdata/qBittorrent.appdata.xml
28db5fe7
ER
95%{_mandir}/man1/qbittorrent.1*
96%{_iconsdir}/hicolor/*/apps/qbittorrent.png
1e6f0590 97%{_desktopdir}/qBittorrent.desktop
28db5fe7 98%{_pixmapsdir}/qbittorrent.png
This page took 0.043128 seconds and 4 git commands to generate.