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