]> git.pld-linux.org Git - packages/qbittorrent.git/blob - qbittorrent.spec
- builds with libtorrent-rasterbar-devel >= 1:0.14.4
[packages/qbittorrent.git] / qbittorrent.spec
1 Summary:        qbittorrent - Qt4-based torrent client
2 Summary(hu.UTF-8):      qbittorrent - Qt4-alapĂș torrent kliens
3 Summary(pl.UTF-8):      qbittorrent - graficzny klient torrenta oparty na Qt4
4 Name:           qbittorrent
5 Version:        2.4.3
6 Release:        1
7 License:        GPL v2+
8 Group:          X11/Applications
9 Source0:        http://downloads.sourceforge.net/qbittorrent/%{name}-%{version}.tar.gz
10 # Source0-md5:  5b2bfd84a48aa4ed682dc90c733840c9
11 URL:            http://qbittorrent.sourceforge.net/
12 Patch0:         lang-hu-2.3.0.patch
13 BuildRequires:  QtCore-devel
14 BuildRequires:  QtDBus-devel
15 BuildRequires:  QtGui-devel
16 BuildRequires:  QtNetwork-devel
17 BuildRequires:  QtXml-devel
18 BuildRequires:  boost-devel >= 1.36.0
19 BuildRequires:  libtorrent-rasterbar-devel >= 1:0.14.4
20 BuildRequires:  pkgconfig
21 BuildRequires:  qt4-build
22 BuildRequires:  qt4-qmake
23 BuildRequires:  rpmbuild(macros) >= 1.129
24 BuildRequires:  which
25 Requires:       libtorrent-rasterbar
26 Requires:       python >= 1:2.3
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 qTorrent - Qt4-based torrent client.
31
32 %description -l hu.UTF-8
33 qBittorrent - Qt4-alapĂș torrent kliens
34
35 %description -l pl.UTF-8
36 qTorrent - graficzny klient torrenta oparty na Qt4.
37
38 %prep
39 %setup -q
40 %patch0 -p1
41
42 %build
43 qmake-qt4 \
44         QMAKE_CXX="%{__cxx}" \
45         QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}"
46
47 %{__make}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_desktopdir}}
53 install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{128x128/apps,16x16/apps,192x192/apps,22x22/apps,24x24/apps,32x32/apps,36x36/apps,48x48/apps,64x64/apps,72x72/apps,96x96/apps}
54
55 install src/qbittorrent                 $RPM_BUILD_ROOT%{_bindir}
56 install doc/*                           $RPM_BUILD_ROOT%{_mandir}/man1
57 install src/Icons/qBittorrent.desktop   $RPM_BUILD_ROOT%{_desktopdir}
58 install src/menuicons/16x16/apps/*      $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps
59 install src/menuicons/22x22/apps/*      $RPM_BUILD_ROOT%{_iconsdir}/hicolor/22x22/apps
60 install src/menuicons/24x24/apps/*      $RPM_BUILD_ROOT%{_iconsdir}/hicolor/24x24/apps
61 install src/menuicons/32x32/apps/*      $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps
62 install src/menuicons/36x36/apps/*      $RPM_BUILD_ROOT%{_iconsdir}/hicolor/36x36/apps
63 install src/menuicons/48x48/apps/*      $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps
64 install src/menuicons/64x64/apps/*      $RPM_BUILD_ROOT%{_iconsdir}/hicolor/64x64/apps
65 install src/menuicons/72x72/apps/*      $RPM_BUILD_ROOT%{_iconsdir}/hicolor/72x72/apps
66 install src/menuicons/96x96/apps/*      $RPM_BUILD_ROOT%{_iconsdir}/hicolor/96x96/apps
67 install src/menuicons/128x128/apps/*    $RPM_BUILD_ROOT%{_iconsdir}/hicolor/128x128/apps
68 install src/menuicons/192x192/apps/*    $RPM_BUILD_ROOT%{_iconsdir}/hicolor/192x192/apps
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %files
74 %defattr(644,root,root,755)
75 %doc AUTHORS Changelog README
76 %attr(755,root,root) %{_bindir}/%{name}
77 %{_mandir}/man1/*.1*
78 %{_iconsdir}/hicolor/*/apps/*
79 %{_desktopdir}/qBittorrent.desktop
This page took 0.171137 seconds and 4 git commands to generate.