]>
Commit | Line | Data |
---|---|---|
7ad95f16 | 1 | # TODO: use system libevent |
0f16bf9a | 2 | Summary: A versatile and multi-platform BitTorrent client |
bb59eb4f | 3 | Summary(pl.UTF-8): Wszechstronny i wieloplatformowy klient BitTorrenta |
905dacdd | 4 | Name: transmission |
cae0b25b | 5 | Version: 1.51 |
f893a37c | 6 | Release: 1 |
0f16bf9a PZ |
7 | License: MIT |
8 | Group: Applications/Communications | |
bac64279 | 9 | Source0: http://download.m0k.org/transmission/files/transmission-%{version}.tar.bz2 |
cae0b25b | 10 | # Source0-md5: fb0e3893eb565eeb7ca32a63e4c73032 |
147f3fba | 11 | Patch0: %{name}-ckb_po.patch |
ec12ede2 | 12 | URL: http://transmissionbt.com/ |
7ad95f16 JB |
13 | BuildRequires: curl-devel >= 7.15.0 |
14 | BuildRequires: dbus-glib-devel >= 0.70 | |
15 | BuildRequires: glib2-devel >= 1:2.16.0 | |
0f16bf9a PZ |
16 | BuildRequires: gtk+2-devel >= 2:2.6.0 |
17 | BuildRequires: intltool >= 0.35.5 | |
7ad95f16 JB |
18 | #BuildRequires: libevent-devel |
19 | BuildRequires: libnotify-devel >= 0.4.4 | |
20 | BuildRequires: openssl-devel >= 0.9.4 | |
0f16bf9a PZ |
21 | BuildRequires: pkgconfig |
22 | BuildRequires: rpmbuild(macros) >= 1.357 | |
e65cafbb | 23 | Requires(post,postun): hicolor-icon-theme |
0f16bf9a PZ |
24 | Requires(post,postun): gtk+2 |
25 | Requires: gtk+2 >= 2:2.6.0 | |
fa0bbffb | 26 | Obsoletes: Transmission <= 1.05 |
0f16bf9a PZ |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
c6dfa0bb | 29 | %define _appdir %{_datadir}/%{name}/web |
30 | ||
0f16bf9a PZ |
31 | %description |
32 | Transmission has been built from the ground up to be a lightweight, | |
33 | yet powerful BitTorrent client. Its simple, intuitive interface is | |
34 | designed to integrate tightly with whatever computing environment you | |
35 | choose to use. Transmission strikes a balance between providing useful | |
36 | functionality without feature bloat. | |
37 | ||
bb59eb4f JB |
38 | %description -l pl.UTF-8 |
39 | Transmission został stworzony od podstaw, aby być lekkim lecz mającym | |
40 | duże możliwości klientem BitTorrenta. Jego prosty, intuicyjny | |
41 | interfejs jest zaprojektowany spójnie z dowolnym środowiskiem wybranym | |
42 | przez użytkownika. Transmission stawia na równowagę zapewnienia | |
43 | przydatnej funkcjonalności bez nadmiaru opcji. | |
44 | ||
0f16bf9a | 45 | %prep |
0fc49842 | 46 | %setup -q -c -n transmission-%{version} |
bac64279 | 47 | mv transmission-%{version}/* . |
147f3fba | 48 | %patch0 -p1 |
ec12ede2 | 49 | %{__rm} po/ckb.po |
0f16bf9a PZ |
50 | |
51 | %build | |
52 | %configure | |
53 | %{__make} | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %{__make} install \ | |
59 | DESTDIR=$RPM_BUILD_ROOT | |
60 | ||
61 | %find_lang %{name} --all-name --with-gnome | |
62 | ||
ec12ede2 | 63 | # unsupported |
64 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/eu | |
65 | ||
66 | # copy of GPLv2 not needed | |
67 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/transmission/web/LICENSE | |
68 | ||
0f16bf9a PZ |
69 | %clean |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %post | |
73 | %update_desktop_database_post | |
e65cafbb | 74 | %update_icon_cache hicolor |
0f16bf9a PZ |
75 | |
76 | %postun | |
77 | %update_desktop_database_postun | |
e65cafbb | 78 | %update_icon_cache hicolor |
0f16bf9a PZ |
79 | |
80 | %files -f %{name}.lang | |
81 | %defattr(644,root,root,755) | |
82 | %doc AUTHORS NEWS README | |
bac64279 | 83 | %attr(755,root,root) %{_bindir}/transmission |
95c51d91 | 84 | %attr(755,root,root) %{_bindir}/transmissioncli |
09c73228 | 85 | %attr(755,root,root) %{_bindir}/transmission-daemon |
09c73228 | 86 | %attr(755,root,root) %{_bindir}/transmission-remote |
67e4f493 | 87 | %{_mandir}/man1/*.1* |
bac64279 | 88 | %{_desktopdir}/transmission.desktop |
0f16bf9a | 89 | %{_pixmapsdir}/transmission.png |
e65cafbb PZ |
90 | %{_iconsdir}/hicolor/*/apps/transmission.png |
91 | %{_iconsdir}/hicolor/*/apps/transmission.svg | |
147f3fba | 92 | %dir %{_datadir}/%{name} |
c4a49d1e | 93 | %dir %{_appdir} |
c6dfa0bb | 94 | %{_appdir}/images |
95 | %{_appdir}/javascript | |
96 | %{_appdir}/stylesheets | |
97 | %{_appdir}/index.html |