]>
Commit | Line | Data |
---|---|---|
7ad95f16 | 1 | # TODO: use system libevent |
0f16bf9a | 2 | Summary: A versatile and multi-platform BitTorrent client |
f2dfe381 | 3 | Summary(hu.UTF-8): Egy sokoldalú és multiplatformos BitTorrent kliens |
bb59eb4f | 4 | Summary(pl.UTF-8): Wszechstronny i wieloplatformowy klient BitTorrenta |
905dacdd | 5 | Name: transmission |
cae0b25b | 6 | Version: 1.51 |
f237c99d | 7 | Release: 2 |
0f16bf9a PZ |
8 | License: MIT |
9 | Group: Applications/Communications | |
f2dfe381 | 10 | Source0: http://download.m0k.org/transmission/files/%{name}-%{version}.tar.bz2 |
cae0b25b | 11 | # Source0-md5: fb0e3893eb565eeb7ca32a63e4c73032 |
147f3fba | 12 | Patch0: %{name}-ckb_po.patch |
ec12ede2 | 13 | URL: http://transmissionbt.com/ |
7ad95f16 JB |
14 | BuildRequires: curl-devel >= 7.15.0 |
15 | BuildRequires: dbus-glib-devel >= 0.70 | |
f237c99d | 16 | BuildRequires: gettext-devel |
7ad95f16 | 17 | BuildRequires: glib2-devel >= 1:2.16.0 |
0f16bf9a PZ |
18 | BuildRequires: gtk+2-devel >= 2:2.6.0 |
19 | BuildRequires: intltool >= 0.35.5 | |
7ad95f16 JB |
20 | #BuildRequires: libevent-devel |
21 | BuildRequires: libnotify-devel >= 0.4.4 | |
f237c99d | 22 | BuildRequires: libstdc++-devel |
7ad95f16 | 23 | BuildRequires: openssl-devel >= 0.9.4 |
0f16bf9a PZ |
24 | BuildRequires: pkgconfig |
25 | BuildRequires: rpmbuild(macros) >= 1.357 | |
f237c99d | 26 | Obsoletes: Transmission <= 1.05 |
b4dc7e64 | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
0f16bf9a | 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 | ||
f2dfe381 ZU |
38 | %description -l hu.UTF-8 |
39 | Transmission egy könnyűsúlyú de mégis egy erőteljes BitTorrent kliens. | |
40 | Egyszerű, intuitív felülete szorosan illeszkedik bármilyen | |
41 | számítógépes környezetbe, amit csak választasz. A Transmission célja | |
42 | megtalálni a használható funkcionalitást lehetőségek áradata nélkül. | |
43 | ||
bb59eb4f JB |
44 | %description -l pl.UTF-8 |
45 | Transmission został stworzony od podstaw, aby być lekkim lecz mającym | |
46 | duże możliwości klientem BitTorrenta. Jego prosty, intuicyjny | |
47 | interfejs jest zaprojektowany spójnie z dowolnym środowiskiem wybranym | |
48 | przez użytkownika. Transmission stawia na równowagę zapewnienia | |
49 | przydatnej funkcjonalności bez nadmiaru opcji. | |
50 | ||
f237c99d KK |
51 | %package gui |
52 | Summary: A versatile and multi-platform BitTorrent client | |
53 | Summary(pl.UTF-8): Wszechstronny i wieloplatformowy klient BitTorrenta | |
54 | Group: X11/Applications/Communications | |
55 | Requires(post,postun): hicolor-icon-theme | |
56 | Requires(post,postun): gtk+2 | |
57 | Requires: gtk+2 >= 2:2.6.0 | |
58 | Requires: %{name}-%{version}-%{release} | |
59 | ||
60 | %description gui | |
61 | Transmission has been built from the ground up to be a lightweight, | |
62 | yet powerful BitTorrent client. Its simple, intuitive interface is | |
63 | designed to integrate tightly with whatever computing environment you | |
64 | choose to use. Transmission strikes a balance between providing useful | |
65 | functionality without feature bloat. | |
66 | ||
67 | %description gui -l hu.UTF-8 | |
68 | Transmission egy könnyűsúlyú de mégis egy erőteljes BitTorrent kliens. | |
69 | Egyszerű, intuitív felülete szorosan illeszkedik bármilyen | |
70 | számítógépes környezetbe, amit csak választasz. A Transmission célja | |
71 | megtalálni a használható funkcionalitást lehetőségek áradata nélkül. | |
72 | ||
73 | %description gui -l pl.UTF-8 | |
74 | Transmission został stworzony od podstaw, aby być lekkim lecz mającym | |
75 | duże możliwości klientem BitTorrenta. Jego prosty, intuicyjny | |
76 | interfejs jest zaprojektowany spójnie z dowolnym środowiskiem wybranym | |
77 | przez użytkownika. Transmission stawia na równowagę zapewnienia | |
78 | przydatnej funkcjonalności bez nadmiaru opcji. | |
79 | ||
0f16bf9a | 80 | %prep |
0fc49842 | 81 | %setup -q -c -n transmission-%{version} |
bac64279 | 82 | mv transmission-%{version}/* . |
147f3fba | 83 | %patch0 -p1 |
ec12ede2 | 84 | %{__rm} po/ckb.po |
0f16bf9a PZ |
85 | |
86 | %build | |
87 | %configure | |
88 | %{__make} | |
89 | ||
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %{__make} install \ | |
94 | DESTDIR=$RPM_BUILD_ROOT | |
95 | ||
96 | %find_lang %{name} --all-name --with-gnome | |
97 | ||
ec12ede2 | 98 | # unsupported |
99 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/eu | |
100 | ||
101 | # copy of GPLv2 not needed | |
102 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/transmission/web/LICENSE | |
103 | ||
0f16bf9a PZ |
104 | %clean |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
f237c99d | 107 | %post gui |
0f16bf9a | 108 | %update_desktop_database_post |
e65cafbb | 109 | %update_icon_cache hicolor |
0f16bf9a | 110 | |
f237c99d | 111 | %postun gui |
0f16bf9a | 112 | %update_desktop_database_postun |
e65cafbb | 113 | %update_icon_cache hicolor |
0f16bf9a PZ |
114 | |
115 | %files -f %{name}.lang | |
116 | %defattr(644,root,root,755) | |
117 | %doc AUTHORS NEWS README | |
95c51d91 | 118 | %attr(755,root,root) %{_bindir}/transmissioncli |
09c73228 | 119 | %attr(755,root,root) %{_bindir}/transmission-daemon |
09c73228 | 120 | %attr(755,root,root) %{_bindir}/transmission-remote |
67e4f493 | 121 | %{_mandir}/man1/*.1* |
147f3fba | 122 | %dir %{_datadir}/%{name} |
c4a49d1e | 123 | %dir %{_appdir} |
c6dfa0bb | 124 | %{_appdir}/images |
125 | %{_appdir}/javascript | |
126 | %{_appdir}/stylesheets | |
127 | %{_appdir}/index.html | |
f237c99d KK |
128 | |
129 | %files gui | |
130 | %attr(755,root,root) %{_bindir}/transmission | |
131 | %{_desktopdir}/transmission.desktop | |
132 | %{_pixmapsdir}/transmission.png | |
133 | %{_iconsdir}/hicolor/*/apps/transmission.png | |
134 | %{_iconsdir}/hicolor/*/apps/transmission.svg |