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