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