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