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