]>
Commit | Line | Data |
---|---|---|
0b0404d0 | 1 | # |
eda33d09 | 2 | # TODO: ./configure --enable-plasmamule (BR: qt4-build, QtCore 4, KDE 4) |
0b0404d0 | 3 | # |
fce15251 | 4 | Summary: Unix port of eMule client |
2271ee3f | 5 | Summary(pl.UTF-8): Uniksowy port klienta eMule |
fce15251 | 6 | Name: aMule |
eda33d09 | 7 | Version: 2.3.2 |
4e0bdfed | 8 | Release: 21 |
eda33d09 | 9 | License: GPL v2+ |
fce15251 | 10 | Group: X11/Applications |
d8cfca4b | 11 | Source0: http://downloads.sourceforge.net/amule/%{name}-%{version}.tar.bz2 |
eda33d09 | 12 | # Source0-md5: 4516bde73327e6153c140cef59375f38 |
803b9a93 | 13 | Patch0: %{name}-desktop.patch |
14 | Patch1: %{name}-cas-datadir.patch | |
62caab2a | 15 | Patch2: %{name}-ac.patch |
a870549c | 16 | Patch3: %{name}-cryptopp.patch |
feb31138 | 17 | Patch4: binutils-2.34.patch |
f8a0733d | 18 | Patch5: libupnp-1.14.patch |
fad345eb | 19 | URL: http://www.amule.org/ |
803b9a93 | 20 | BuildRequires: GeoIP-devel |
eda33d09 | 21 | BuildRequires: autoconf >= 2.59 |
9667e5a4 | 22 | BuildRequires: automake >= 1:1.7.3 |
7a479686 | 23 | BuildRequires: binutils-devel |
fce15251 | 24 | BuildRequires: bison |
eda33d09 | 25 | BuildRequires: boost-devel >= 1.47 |
803b9a93 | 26 | BuildRequires: cryptopp-devel >= 5.1 |
f46f2e7c | 27 | BuildRequires: curl-devel >= 7.9.7 |
fce15251 | 28 | BuildRequires: expat-devel |
eda33d09 JB |
29 | BuildRequires: flex |
30 | BuildRequires: gd-devel >= 2.0.0 | |
caf71ed3 | 31 | BuildRequires: gettext-tools >= 0.11.5 |
04cb85df | 32 | BuildRequires: gtk+2-devel >= 2:2.2.0 |
d8cfca4b | 33 | BuildRequires: libpng-devel >= 1.2.0 |
fce15251 | 34 | BuildRequires: libstdc++-devel |
f8a0733d | 35 | BuildRequires: libupnp-devel >= 1.6.6 |
eda33d09 JB |
36 | BuildRequires: pkgconfig >= 1:0.9.0 |
37 | BuildRequires: readline-devel | |
c6e299b2 | 38 | BuildRequires: wxGTK2-unicode-devel >= 2.8.12 |
8528c3bf | 39 | BuildRequires: xorg-lib-libXpm-devel |
eda33d09 JB |
40 | BuildRequires: zlib-devel >= 1.1.4 |
41 | Requires: cryptopp >= 5.1 | |
42 | Requires: gd >= 2.0.0 | |
f8a0733d | 43 | Requires: libupnp >= 1.6.6 |
fce15251 | 44 | Requires: wget |
eda33d09 | 45 | Requires: zlib >= 1.1.4 |
3be09a77 | 46 | Obsoletes: lmule |
e3a76a47 | 47 | Obsoletes: xmule |
fce15251 | 48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
49 | ||
50 | %description | |
06a2ef63 | 51 | aMule is a Linux port of eMule client. |
fce15251 | 52 | |
85204cb1 | 53 | %description -l pl.UTF-8 |
06a2ef63 | 54 | aMule to linuksowy port klienta eMule. |
fce15251 | 55 | |
0e64ca48 RK |
56 | %package plugin-xchat |
57 | Summary: Xchat plugin | |
2271ee3f | 58 | Summary(pl.UTF-8): Wtyczka dla xchat |
0e64ca48 | 59 | Group: X11/Applications |
dc60aead | 60 | Requires: %{name} = %{version}-%{release} |
0e64ca48 RK |
61 | Provides: %{name}-plugin-xchat |
62 | ||
63 | %description plugin-xchat | |
64 | Plugin for Xchat IRC client. | |
65 | ||
85204cb1 | 66 | %description plugin-xchat -l pl.UTF-8 |
eda33d09 | 67 | Wtyczka dla klienta IRC xchat. |
0e64ca48 RK |
68 | |
69 | %package alc | |
70 | Summary: Ed2k link creator for aMule | |
2271ee3f | 71 | Summary(pl.UTF-8): Kreator linków ed2k dla aMule |
0e64ca48 | 72 | Group: X11/Applications |
dc60aead | 73 | Requires: %{name} = %{version}-%{release} |
0e64ca48 RK |
74 | Provides: alc |
75 | ||
76 | %description alc | |
77 | Tool for creating ed2k links. | |
78 | ||
85204cb1 JR |
79 | %description alc -l pl.UTF-8 |
80 | Narzędzie do tworzenia linków ed2k. | |
0e64ca48 RK |
81 | |
82 | %package cas | |
83 | Summary: aMule online stats | |
2271ee3f | 84 | Summary(pl.UTF-8): Statystyki online aMule |
0e64ca48 | 85 | Group: X11/Applications |
dc60aead | 86 | Requires: %{name} = %{version}-%{release} |
0e64ca48 RK |
87 | Provides: cas |
88 | ||
89 | %description cas | |
90 | Tool for generating aMule online stats. | |
91 | ||
85204cb1 JR |
92 | %description cas -l pl.UTF-8 |
93 | Narzędzie do generownia statystyk aMule. | |
0e64ca48 | 94 | |
fce15251 | 95 | %prep |
ea408d75 | 96 | %setup -q |
6180003f | 97 | %patch0 -p1 |
e3a76a47 | 98 | %patch1 -p1 |
62caab2a | 99 | %patch2 -p1 |
a870549c | 100 | %patch3 -p1 |
feb31138 | 101 | %patch4 -p1 |
f8a0733d | 102 | %patch5 -p1 |
fce15251 | 103 | |
104 | %build | |
df08d9a2 | 105 | %{__aclocal} -I m4 |
6180003f AA |
106 | %{__autoconf} |
107 | %{__autoheader} | |
108 | %{__automake} | |
3139fc16 | 109 | export CXXFLAGS="%{rpmcxxflags} -std=gnu++14" |
fce15251 | 110 | %configure \ |
eda33d09 | 111 | --with-denoise-level=1 \ |
d8cfca4b | 112 | --with-libpng-config=/usr/bin/libpng-config \ |
eda33d09 JB |
113 | --with-wx-config=wx-gtk2-unicode-config \ |
114 | --enable-alc \ | |
115 | --enable-alcc \ | |
116 | --enable-amulecmd \ | |
817b67c8 | 117 | --enable-amule-daemon \ |
b418bd65 | 118 | --enable-amule-gui \ |
817b67c8 | 119 | --enable-cas \ |
eda33d09 | 120 | --enable-debug%{!?debug:=no} \ |
d8cfca4b | 121 | --enable-geoip \ |
eda33d09 JB |
122 | --enable-optimize%{!?debug:=no} \ |
123 | --enable-webserver \ | |
124 | --enable-wxcas \ | |
125 | --enable-xas | |
d8cfca4b | 126 | |
fce15251 | 127 | %{__make} |
128 | ||
129 | %install | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
132 | %{__make} install \ | |
133 | DESTDIR=$RPM_BUILD_ROOT | |
488ce0ff | 134 | |
0dce3bf5 JB |
135 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/et{_EE,} |
136 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/ko{_KR,} | |
137 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/pt{_PT,} | |
138 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/amule | |
6180003f | 139 | %find_lang amule |
2ef37d7f | 140 | |
fce15251 | 141 | %clean |
142 | rm -rf $RPM_BUILD_ROOT | |
143 | ||
6180003f | 144 | %files -f amule.lang |
fce15251 | 145 | %defattr(644,root,root,755) |
d8cfca4b | 146 | %doc docs/ABOUT-NLS docs/AUTHORS docs/Changelog docs/EC_Protocol.txt docs/README docs/TODO docs/amulesig.txt |
7cad848b | 147 | %attr(755,root,root) %{_bindir}/autostart-xas |
0e64ca48 | 148 | %attr(755,root,root) %{_bindir}/amule* |
b05c9f73 | 149 | %attr(755,root,root) %{_bindir}/ed2k |
cf8e3572 | 150 | %dir %{_datadir}/amule |
cf8e3572 | 151 | %{_datadir}/amule/webserver |
803b9a93 | 152 | %{_datadir}/amule/skins |
0e64ca48 | 153 | %{_desktopdir}/amule.desktop |
803b9a93 | 154 | %{_desktopdir}/amulegui.desktop |
0e64ca48 | 155 | %{_pixmapsdir}/amule.xpm |
803b9a93 | 156 | %{_pixmapsdir}/amulegui.xpm |
eda33d09 JB |
157 | %{_mandir}/man1/amule*.1* |
158 | %{_mandir}/man1/ed2k.1* | |
159 | %lang(de) %{_mandir}/de/man1/amule*.1* | |
160 | %lang(de) %{_mandir}/de/man1/ed2k.1* | |
161 | %lang(es) %{_mandir}/es/man1/amule*.1* | |
162 | %lang(es) %{_mandir}/es/man1/ed2k.1* | |
163 | %lang(fr) %{_mandir}/fr/man1/amule*.1* | |
164 | %lang(fr) %{_mandir}/fr/man1/ed2k.1* | |
165 | %lang(hu) %{_mandir}/hu/man1/amule*.1* | |
166 | %lang(hu) %{_mandir}/hu/man1/ed2k.1* | |
167 | %lang(it) %{_mandir}/it/man1/amule*.1* | |
168 | %lang(it) %{_mandir}/it/man1/ed2k.1* | |
169 | %lang(ro) %{_mandir}/ro/man1/amule*.1* | |
170 | %lang(ro) %{_mandir}/ro/man1/ed2k.1* | |
171 | %lang(ru) %{_mandir}/ru/man1/amule*.1* | |
172 | %lang(ru) %{_mandir}/ru/man1/ed2k.1* | |
173 | %lang(tr) %{_mandir}/tr/man1/amule*.1* | |
174 | %lang(tr) %{_mandir}/tr/man1/ed2k.1* | |
175 | %lang(zh_TW) %{_mandir}/zh_TW/man1/amule*.1* | |
176 | %lang(zh_TW) %{_mandir}/zh_TW/man1/ed2k.1* | |
0e64ca48 RK |
177 | |
178 | %files plugin-xchat | |
357aceee | 179 | %defattr(644,root,root,755) |
0e64ca48 | 180 | %{_libdir}/xchat/plugins/xas.pl |
eda33d09 JB |
181 | %{_mandir}/man1/xas.1* |
182 | %lang(de) %{_mandir}/de/man1/xas.1* | |
183 | %lang(es) %{_mandir}/es/man1/xas.1* | |
184 | %lang(fr) %{_mandir}/fr/man1/xas.1* | |
185 | %lang(hu) %{_mandir}/hu/man1/xas.1* | |
186 | %lang(it) %{_mandir}/it/man1/xas.1* | |
187 | %lang(ro) %{_mandir}/ro/man1/xas.1* | |
188 | %lang(ru) %{_mandir}/ru/man1/xas.1* | |
189 | %lang(tr) %{_mandir}/tr/man1/xas.1* | |
190 | %lang(zh_TW) %{_mandir}/zh_TW/man1/xas.1* | |
0e64ca48 RK |
191 | |
192 | %files alc | |
357aceee | 193 | %defattr(644,root,root,755) |
eda33d09 JB |
194 | %attr(755,root,root) %{_bindir}/alc |
195 | %attr(755,root,root) %{_bindir}/alcc | |
0e64ca48 RK |
196 | %{_desktopdir}/alc.desktop |
197 | %{_pixmapsdir}/alc.xpm | |
eda33d09 JB |
198 | %{_mandir}/man1/alc.1* |
199 | %{_mandir}/man1/alcc.1* | |
200 | %lang(de) %{_mandir}/de/man1/alc.1* | |
201 | %lang(de) %{_mandir}/de/man1/alcc.1* | |
202 | %lang(es) %{_mandir}/es/man1/alc.1* | |
203 | %lang(es) %{_mandir}/es/man1/alcc.1* | |
204 | %lang(fr) %{_mandir}/fr/man1/alc.1* | |
205 | %lang(fr) %{_mandir}/fr/man1/alcc.1* | |
206 | %lang(hu) %{_mandir}/hu/man1/alc.1* | |
207 | %lang(hu) %{_mandir}/hu/man1/alcc.1* | |
208 | %lang(it) %{_mandir}/it/man1/alc.1* | |
209 | %lang(it) %{_mandir}/it/man1/alcc.1* | |
210 | %lang(ro) %{_mandir}/ro/man1/alc.1* | |
211 | %lang(ro) %{_mandir}/ro/man1/alcc.1* | |
212 | %lang(ru) %{_mandir}/ru/man1/alc.1* | |
213 | %lang(ru) %{_mandir}/ru/man1/alcc.1* | |
214 | %lang(tr) %{_mandir}/tr/man1/alc.1* | |
215 | %lang(tr) %{_mandir}/tr/man1/alcc.1* | |
216 | %lang(zh_TW) %{_mandir}/zh_TW/man1/alc.1* | |
217 | %lang(zh_TW) %{_mandir}/zh_TW/man1/alcc.1* | |
0e64ca48 | 218 | |
0e64ca48 | 219 | %files cas |
357aceee | 220 | %defattr(644,root,root,755) |
eda33d09 JB |
221 | %attr(755,root,root) %{_bindir}/cas |
222 | %attr(755,root,root) %{_bindir}/wxcas | |
0e64ca48 | 223 | %{_datadir}/amule/cas |
eda33d09 | 224 | %{_desktopdir}/wxcas.desktop |
0e64ca48 | 225 | %{_pixmapsdir}/wxcas.xpm |
eda33d09 JB |
226 | %{_mandir}/man1/cas.1* |
227 | %{_mandir}/man1/wxcas.1* | |
228 | %lang(de) %{_mandir}/de/man1/cas.1* | |
229 | %lang(de) %{_mandir}/de/man1/wx*cas.1* | |
230 | %lang(es) %{_mandir}/es/man1/cas.1* | |
231 | %lang(es) %{_mandir}/es/man1/wxcas.1* | |
232 | %lang(fr) %{_mandir}/fr/man1/cas.1* | |
233 | %lang(fr) %{_mandir}/fr/man1/wxcas.1* | |
234 | %lang(hu) %{_mandir}/hu/man1/cas.1* | |
235 | %lang(hu) %{_mandir}/hu/man1/wxcas.1* | |
236 | %lang(it) %{_mandir}/it/man1/cas.1* | |
237 | %lang(it) %{_mandir}/it/man1/wxcas.1* | |
238 | %lang(ro) %{_mandir}/ro/man1/cas.1* | |
239 | %lang(ro) %{_mandir}/ro/man1/wxcas.1* | |
240 | %lang(ru) %{_mandir}/ru/man1/cas.1* | |
241 | %lang(ru) %{_mandir}/ru/man1/wxcas.1* | |
242 | %lang(tr) %{_mandir}/tr/man1/cas.1* | |
243 | %lang(tr) %{_mandir}/tr/man1/wxcas.1* | |
244 | %lang(zh_TW) %{_mandir}/zh_TW/man1/cas.1* | |
245 | %lang(zh_TW) %{_mandir}/zh_TW/man1/wxcas.1* |