]>
Commit | Line | Data |
---|---|---|
1e6f0590 | 1 | Summary: qbittorrent - Qt4-based torrent client |
2 | Summary(pl.UTF-8): qbittorrent - graficzny klient torrenta oparty na Qt4 | |
3 | Name: qbittorrent | |
11f119c8 | 4 | Version: 0.9.3 |
1e6f0590 | 5 | Release: 0.1 |
11f119c8 | 6 | License: GPL v2+ |
1e6f0590 | 7 | Group: X11/Applications |
a0832e35 | 8 | Source0: http://dl.sourceforge.net/qbittorrent/%{name}-%{version}.tar.gz |
11f119c8 | 9 | # Source0-md5: b1f12106dd8b33c5280df5e02f0e9abf |
1e6f0590 | 10 | Patch0: %{name}-desktop.patch |
11 | URL: http://qbittorrent.sourceforge.net/ | |
12 | BuildRequires: QtCore-devel | |
13 | BuildRequires: QtGui-devel | |
11f119c8 | 14 | BuildRequires: QtNetwork-devel |
a0832e35 JB |
15 | BuildRequires: boost-date_time-devel |
16 | BuildRequires: boost-devel | |
17 | BuildRequires: boost-filesystem-devel | |
18 | BuildRequires: curl-devel | |
1e6f0590 | 19 | BuildRequires: qt4-build |
20 | BuildRequires: qt4-qmake | |
a0832e35 | 21 | BuildRequires: rb_libtorrent-devel >= 0.12 |
1e6f0590 | 22 | BuildRequires: rpmbuild(macros) >= 1.129 |
a0832e35 | 23 | Requires: python >= 1:2.3 |
1e6f0590 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | qTorrent - Qt4-based torrent client. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | qTorrent - graficzny klient torrenta oparty na Qt4. | |
31 | ||
32 | %prep | |
33 | %setup -q | |
11f119c8 | 34 | %patch0 -p1 |
1e6f0590 | 35 | |
36 | %build | |
a0832e35 JB |
37 | ./configure \ |
38 | --prefix=/usr | |
1e6f0590 | 39 | %{__make} |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_desktopdir}} | |
a0832e35 | 45 | 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} |
1e6f0590 | 46 | |
47 | install src/qbittorrent $RPM_BUILD_ROOT%{_bindir} | |
48 | install doc/* $RPM_BUILD_ROOT%{_mandir}/man1 | |
49 | install src/Icons/qBittorrent.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
a0832e35 JB |
50 | install src/menuicons/16x16/apps/* $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps |
51 | install src/menuicons/22x22/apps/* $RPM_BUILD_ROOT%{_iconsdir}/hicolor/22x22/apps | |
52 | install src/menuicons/24x24/apps/* $RPM_BUILD_ROOT%{_iconsdir}/hicolor/24x24/apps | |
53 | install src/menuicons/32x32/apps/* $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps | |
54 | install src/menuicons/36x36/apps/* $RPM_BUILD_ROOT%{_iconsdir}/hicolor/36x36/apps | |
55 | install src/menuicons/48x48/apps/* $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps | |
56 | install src/menuicons/64x64/apps/* $RPM_BUILD_ROOT%{_iconsdir}/hicolor/64x64/apps | |
57 | install src/menuicons/72x72/apps/* $RPM_BUILD_ROOT%{_iconsdir}/hicolor/72x72/apps | |
58 | install src/menuicons/96x96/apps/* $RPM_BUILD_ROOT%{_iconsdir}/hicolor/96x96/apps | |
59 | install src/menuicons/128x128/apps/* $RPM_BUILD_ROOT%{_iconsdir}/hicolor/128x128/apps | |
60 | install src/menuicons/192x192/apps/* $RPM_BUILD_ROOT%{_iconsdir}/hicolor/192x192/apps | |
1e6f0590 | 61 | |
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
67 | %doc AUTHORS Changelog README | |
68 | %attr(755,root,root) %{_bindir}/%{name} | |
69 | %{_mandir}/man1/* | |
a0832e35 | 70 | %{_iconsdir}/hicolor/*/apps/* |
1e6f0590 | 71 | %{_desktopdir}/qBittorrent.desktop |