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