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