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