]>
Commit | Line | Data |
---|---|---|
0f16bf9a | 1 | Summary: A versatile and multi-platform BitTorrent client |
f2dfe381 | 2 | Summary(hu.UTF-8): Egy sokoldalú és multiplatformos BitTorrent kliens |
bb59eb4f | 3 | Summary(pl.UTF-8): Wszechstronny i wieloplatformowy klient BitTorrenta |
905dacdd | 4 | Name: transmission |
5b010a19 ZU |
5 | Version: 1.74 |
6 | Release: 1 | |
0f16bf9a PZ |
7 | License: MIT |
8 | Group: Applications/Communications | |
f2dfe381 | 9 | Source0: http://download.m0k.org/transmission/files/%{name}-%{version}.tar.bz2 |
5b010a19 | 10 | # Source0-md5: 6b1080800c62308179cfc7a691c82d63 |
9232dd57 PG |
11 | Source1: %{name}.sysconfig |
12 | Source2: %{name}.init | |
147f3fba | 13 | Patch0: %{name}-ckb_po.patch |
071083d3 | 14 | Patch1: %{name}-qtr_details.patch |
ec12ede2 | 15 | URL: http://transmissionbt.com/ |
2b837bd5 KK |
16 | BuildRequires: QtGui-devel |
17 | BuildRequires: QtNetwork-devel | |
e9d3e015 KK |
18 | BuildRequires: autoconf |
19 | BuildRequires: automake | |
071083d3 | 20 | BuildRequires: curl-devel >= 7.16.3 |
7ad95f16 | 21 | BuildRequires: dbus-glib-devel >= 0.70 |
f237c99d | 22 | BuildRequires: gettext-devel |
7ad95f16 | 23 | BuildRequires: glib2-devel >= 1:2.16.0 |
0f16bf9a PZ |
24 | BuildRequires: gtk+2-devel >= 2:2.6.0 |
25 | BuildRequires: intltool >= 0.35.5 | |
071083d3 | 26 | BuildRequires: libevent-devel >= 1.4.5 |
7ad95f16 | 27 | BuildRequires: libnotify-devel >= 0.4.4 |
f237c99d | 28 | BuildRequires: libstdc++-devel |
e9d3e015 | 29 | BuildRequires: libtool |
7ad95f16 | 30 | BuildRequires: openssl-devel >= 0.9.4 |
0f16bf9a PZ |
31 | BuildRequires: pkgconfig |
32 | BuildRequires: rpmbuild(macros) >= 1.357 | |
2b837bd5 | 33 | BuildRequires: qt4-build |
820ff2df | 34 | BuildRequires: qt4-qmake |
071083d3 | 35 | BuildRequires: xfsprogs-devel |
f237c99d | 36 | Obsoletes: Transmission <= 1.05 |
b4dc7e64 | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
0f16bf9a | 38 | |
c6dfa0bb | 39 | %define _appdir %{_datadir}/%{name}/web |
40 | ||
0f16bf9a PZ |
41 | %description |
42 | Transmission has been built from the ground up to be a lightweight, | |
43 | yet powerful BitTorrent client. Its simple, intuitive interface is | |
44 | designed to integrate tightly with whatever computing environment you | |
45 | choose to use. Transmission strikes a balance between providing useful | |
46 | functionality without feature bloat. | |
47 | ||
f2dfe381 | 48 | %description -l hu.UTF-8 |
647a449c | 49 | Transmission egy könnyűsúlyú, de mégis egy erőteljes BitTorrent kliens. |
f2dfe381 ZU |
50 | Egyszerű, intuitív felülete szorosan illeszkedik bármilyen |
51 | számítógépes környezetbe, amit csak választasz. A Transmission célja | |
52 | megtalálni a használható funkcionalitást lehetőségek áradata nélkül. | |
53 | ||
bb59eb4f JB |
54 | %description -l pl.UTF-8 |
55 | Transmission został stworzony od podstaw, aby być lekkim lecz mającym | |
56 | duże możliwości klientem BitTorrenta. Jego prosty, intuicyjny | |
57 | interfejs jest zaprojektowany spójnie z dowolnym środowiskiem wybranym | |
58 | przez użytkownika. Transmission stawia na równowagę zapewnienia | |
59 | przydatnej funkcjonalności bez nadmiaru opcji. | |
60 | ||
9232dd57 PG |
61 | %package init |
62 | Summary: daemon package for BitTorrent client | |
63 | Group: Daemon | |
64 | Requires: %{name} = %{version}-%{release} | |
65 | ||
66 | %description init | |
67 | Transmission has been built from the ground up to be a lightweight, | |
68 | yet powerful BitTorrent client. Its simple, intuitive interface is | |
69 | designed to integrate tightly with whatever computing environment you | |
70 | choose to use. Transmission strikes a balance between providing useful | |
71 | functionality without feature bloat. | |
72 | ||
f237c99d KK |
73 | %package gui |
74 | Summary: A versatile and multi-platform BitTorrent client | |
75 | Summary(pl.UTF-8): Wszechstronny i wieloplatformowy klient BitTorrenta | |
76 | Group: X11/Applications/Communications | |
77 | Requires(post,postun): hicolor-icon-theme | |
78 | Requires(post,postun): gtk+2 | |
30875bc9 | 79 | Requires: %{name} = %{version}-%{release} |
f237c99d | 80 | Requires: gtk+2 >= 2:2.6.0 |
f237c99d KK |
81 | |
82 | %description gui | |
83 | Transmission has been built from the ground up to be a lightweight, | |
84 | yet powerful BitTorrent client. Its simple, intuitive interface is | |
85 | designed to integrate tightly with whatever computing environment you | |
86 | choose to use. Transmission strikes a balance between providing useful | |
87 | functionality without feature bloat. | |
88 | ||
89 | %description gui -l hu.UTF-8 | |
90 | Transmission egy könnyűsúlyú de mégis egy erőteljes BitTorrent kliens. | |
91 | Egyszerű, intuitív felülete szorosan illeszkedik bármilyen | |
92 | számítógépes környezetbe, amit csak választasz. A Transmission célja | |
93 | megtalálni a használható funkcionalitást lehetőségek áradata nélkül. | |
94 | ||
95 | %description gui -l pl.UTF-8 | |
96 | Transmission został stworzony od podstaw, aby być lekkim lecz mającym | |
97 | duże możliwości klientem BitTorrenta. Jego prosty, intuicyjny | |
98 | interfejs jest zaprojektowany spójnie z dowolnym środowiskiem wybranym | |
99 | przez użytkownika. Transmission stawia na równowagę zapewnienia | |
100 | przydatnej funkcjonalności bez nadmiaru opcji. | |
101 | ||
820ff2df ZU |
102 | %package gui-qt |
103 | Summary: A GUI to Transmission based on Qt4 | |
104 | Group: X11/Applications/Communications | |
071083d3 | 105 | # doesn't require base |
820ff2df ZU |
106 | |
107 | %description gui-qt | |
108 | A GUI to Transmission based on Qt4. | |
109 | ||
0f16bf9a | 110 | %prep |
0fc49842 | 111 | %setup -q -c -n transmission-%{version} |
bac64279 | 112 | mv transmission-%{version}/* . |
147f3fba | 113 | %patch0 -p1 |
071083d3 | 114 | %patch1 -p1 |
ec12ede2 | 115 | %{__rm} po/ckb.po |
0f16bf9a PZ |
116 | |
117 | %build | |
e9d3e015 KK |
118 | %{__libtoolize} |
119 | %{__aclocal} -I m4 | |
120 | %{__autoconf} | |
121 | %{__automake} | |
0f16bf9a PZ |
122 | %configure |
123 | %{__make} | |
124 | ||
820ff2df | 125 | cd qt |
2b837bd5 | 126 | %{__sed} -i 's/CONFIG += qt thread debug/CONFIG += qt thread/' qtr.pro |
820ff2df | 127 | qmake-qt4 |
820ff2df | 128 | %{__make} |
2b837bd5 | 129 | cd - |
820ff2df | 130 | |
0f16bf9a PZ |
131 | %install |
132 | rm -rf $RPM_BUILD_ROOT | |
9232dd57 PG |
133 | install -d $RPM_BUILD_ROOT/etc/{%{name},sysconfig,rc.d/init.d} \ |
134 | $RPM_BUILD_ROOT/var/lib/%{name} | |
0f16bf9a PZ |
135 | |
136 | %{__make} install \ | |
137 | DESTDIR=$RPM_BUILD_ROOT | |
138 | ||
9232dd57 | 139 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/%{name} |
61330340 | 140 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
9232dd57 | 141 | |
ec12ede2 | 142 | # unsupported |
65730317 ZU |
143 | %{__rm} -rf $RPM_BUILD_ROOT%{_localedir}/eu |
144 | ||
145 | %find_lang %{name} --all-name --with-gnome | |
ec12ede2 | 146 | |
820ff2df ZU |
147 | install qt/qtr $RPM_BUILD_ROOT%{_bindir} |
148 | ||
ec12ede2 | 149 | # copy of GPLv2 not needed |
150 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/transmission/web/LICENSE | |
151 | ||
0f16bf9a PZ |
152 | %clean |
153 | rm -rf $RPM_BUILD_ROOT | |
154 | ||
9232dd57 PG |
155 | %post init |
156 | /sbin/chkconfig --add transmission | |
157 | %service transmission restart | |
158 | ||
159 | %preun init | |
160 | if [ "$1" = "0" ]; then | |
161 | %service transmission stop | |
162 | /sbin/chkconfig --del transmission | |
163 | fi | |
164 | ||
f237c99d | 165 | %post gui |
0f16bf9a | 166 | %update_desktop_database_post |
e65cafbb | 167 | %update_icon_cache hicolor |
0f16bf9a | 168 | |
f237c99d | 169 | %postun gui |
0f16bf9a | 170 | %update_desktop_database_postun |
e65cafbb | 171 | %update_icon_cache hicolor |
0f16bf9a PZ |
172 | |
173 | %files -f %{name}.lang | |
174 | %defattr(644,root,root,755) | |
175 | %doc AUTHORS NEWS README | |
95c51d91 | 176 | %attr(755,root,root) %{_bindir}/transmissioncli |
09c73228 | 177 | %attr(755,root,root) %{_bindir}/transmission-daemon |
09c73228 | 178 | %attr(755,root,root) %{_bindir}/transmission-remote |
5de6d863 ZU |
179 | %{_mandir}/man1/transmissioncli.1* |
180 | %{_mandir}/man1/transmission-daemon.1* | |
181 | %{_mandir}/man1/transmission-remote.1* | |
147f3fba | 182 | %dir %{_datadir}/%{name} |
c4a49d1e | 183 | %dir %{_appdir} |
c6dfa0bb | 184 | %{_appdir}/images |
185 | %{_appdir}/javascript | |
186 | %{_appdir}/stylesheets | |
187 | %{_appdir}/index.html | |
f237c99d | 188 | |
9232dd57 PG |
189 | %files init |
190 | %defattr(644,root,root,755) | |
191 | %attr(751,root,daemon) %dir /etc/%{name} | |
61330340 | 192 | #%attr(640,root,daemon) %config(noreplace) %verify(not md5 mtime size) /etc/%{name}/* |
9232dd57 | 193 | %attr(640,root,daemon) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} |
61330340 | 194 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
9232dd57 PG |
195 | %attr(750,daemon,root) %dir /var/lib/%{name} |
196 | ||
f237c99d | 197 | %files gui |
c1ca1d17 | 198 | %defattr(644,root,root,755) |
f237c99d | 199 | %attr(755,root,root) %{_bindir}/transmission |
5de6d863 | 200 | %{_mandir}/man1/transmission.1* |
f237c99d KK |
201 | %{_desktopdir}/transmission.desktop |
202 | %{_pixmapsdir}/transmission.png | |
203 | %{_iconsdir}/hicolor/*/apps/transmission.png | |
204 | %{_iconsdir}/hicolor/*/apps/transmission.svg | |
820ff2df ZU |
205 | |
206 | %files gui-qt | |
207 | %defattr(644,root,root,755) | |
208 | %attr(755,root,root) %{_bindir}/qtr |