]>
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 |
2e12f7e7 | 6 | Version: 1.60 |
7 | Release: 1 | |
0f16bf9a PZ |
8 | License: MIT |
9 | Group: Applications/Communications | |
f2dfe381 | 10 | Source0: http://download.m0k.org/transmission/files/%{name}-%{version}.tar.bz2 |
2e12f7e7 | 11 | # Source0-md5: 8b30cf189240f0c50ccd11c618a6906a |
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 | |
30875bc9 | 57 | Requires: %{name} = %{version}-%{release} |
f237c99d | 58 | Requires: gtk+2 >= 2:2.6.0 |
f237c99d KK |
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 | ||
ec12ede2 | 96 | # unsupported |
65730317 ZU |
97 | %{__rm} -rf $RPM_BUILD_ROOT%{_localedir}/eu |
98 | ||
99 | %find_lang %{name} --all-name --with-gnome | |
ec12ede2 | 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 |
5de6d863 ZU |
121 | %{_mandir}/man1/transmissioncli.1* |
122 | %{_mandir}/man1/transmission-daemon.1* | |
123 | %{_mandir}/man1/transmission-remote.1* | |
147f3fba | 124 | %dir %{_datadir}/%{name} |
c4a49d1e | 125 | %dir %{_appdir} |
c6dfa0bb | 126 | %{_appdir}/images |
127 | %{_appdir}/javascript | |
128 | %{_appdir}/stylesheets | |
129 | %{_appdir}/index.html | |
f237c99d KK |
130 | |
131 | %files gui | |
c1ca1d17 | 132 | %defattr(644,root,root,755) |
f237c99d | 133 | %attr(755,root,root) %{_bindir}/transmission |
5de6d863 | 134 | %{_mandir}/man1/transmission.1* |
f237c99d KK |
135 | %{_desktopdir}/transmission.desktop |
136 | %{_pixmapsdir}/transmission.png | |
137 | %{_iconsdir}/hicolor/*/apps/transmission.png | |
138 | %{_iconsdir}/hicolor/*/apps/transmission.svg |