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