]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO: ./configure --enable-plasmamule (BR: qt4-build, QtCore 4, KDE 4) | |
3 | # | |
4 | Summary: Unix port of eMule client | |
5 | Summary(pl.UTF-8): Uniksowy port klienta eMule | |
6 | Name: aMule | |
7 | Version: 2.3.2 | |
8 | Release: 21 | |
9 | License: GPL v2+ | |
10 | Group: X11/Applications | |
11 | Source0: http://downloads.sourceforge.net/amule/%{name}-%{version}.tar.bz2 | |
12 | # Source0-md5: 4516bde73327e6153c140cef59375f38 | |
13 | Patch0: %{name}-desktop.patch | |
14 | Patch1: %{name}-cas-datadir.patch | |
15 | Patch2: %{name}-ac.patch | |
16 | Patch3: %{name}-cryptopp.patch | |
17 | Patch4: binutils-2.34.patch | |
18 | Patch5: libupnp-1.14.patch | |
19 | URL: http://www.amule.org/ | |
20 | BuildRequires: GeoIP-devel | |
21 | BuildRequires: autoconf >= 2.59 | |
22 | BuildRequires: automake >= 1:1.7.3 | |
23 | BuildRequires: binutils-devel | |
24 | BuildRequires: bison | |
25 | BuildRequires: boost-devel >= 1.47 | |
26 | BuildRequires: cryptopp-devel >= 5.1 | |
27 | BuildRequires: curl-devel >= 7.9.7 | |
28 | BuildRequires: expat-devel | |
29 | BuildRequires: flex | |
30 | BuildRequires: gd-devel >= 2.0.0 | |
31 | BuildRequires: gettext-tools >= 0.11.5 | |
32 | BuildRequires: gtk+2-devel >= 2:2.2.0 | |
33 | BuildRequires: libpng-devel >= 1.2.0 | |
34 | BuildRequires: libstdc++-devel | |
35 | BuildRequires: libupnp-devel >= 1.6.6 | |
36 | BuildRequires: pkgconfig >= 1:0.9.0 | |
37 | BuildRequires: readline-devel | |
38 | BuildRequires: wxGTK2-unicode-devel >= 2.8.12 | |
39 | BuildRequires: xorg-lib-libXpm-devel | |
40 | BuildRequires: zlib-devel >= 1.1.4 | |
41 | Requires: cryptopp >= 5.1 | |
42 | Requires: gd >= 2.0.0 | |
43 | Requires: libupnp >= 1.6.6 | |
44 | Requires: wget | |
45 | Requires: zlib >= 1.1.4 | |
46 | Obsoletes: lmule | |
47 | Obsoletes: xmule | |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
49 | ||
50 | %description | |
51 | aMule is a Linux port of eMule client. | |
52 | ||
53 | %description -l pl.UTF-8 | |
54 | aMule to linuksowy port klienta eMule. | |
55 | ||
56 | %package plugin-xchat | |
57 | Summary: Xchat plugin | |
58 | Summary(pl.UTF-8): Wtyczka dla xchat | |
59 | Group: X11/Applications | |
60 | Requires: %{name} = %{version}-%{release} | |
61 | Provides: %{name}-plugin-xchat | |
62 | ||
63 | %description plugin-xchat | |
64 | Plugin for Xchat IRC client. | |
65 | ||
66 | %description plugin-xchat -l pl.UTF-8 | |
67 | Wtyczka dla klienta IRC xchat. | |
68 | ||
69 | %package alc | |
70 | Summary: Ed2k link creator for aMule | |
71 | Summary(pl.UTF-8): Kreator linków ed2k dla aMule | |
72 | Group: X11/Applications | |
73 | Requires: %{name} = %{version}-%{release} | |
74 | Provides: alc | |
75 | ||
76 | %description alc | |
77 | Tool for creating ed2k links. | |
78 | ||
79 | %description alc -l pl.UTF-8 | |
80 | Narzędzie do tworzenia linków ed2k. | |
81 | ||
82 | %package cas | |
83 | Summary: aMule online stats | |
84 | Summary(pl.UTF-8): Statystyki online aMule | |
85 | Group: X11/Applications | |
86 | Requires: %{name} = %{version}-%{release} | |
87 | Provides: cas | |
88 | ||
89 | %description cas | |
90 | Tool for generating aMule online stats. | |
91 | ||
92 | %description cas -l pl.UTF-8 | |
93 | Narzędzie do generownia statystyk aMule. | |
94 | ||
95 | %prep | |
96 | %setup -q | |
97 | %patch0 -p1 | |
98 | %patch1 -p1 | |
99 | %patch2 -p1 | |
100 | %patch3 -p1 | |
101 | %patch4 -p1 | |
102 | %patch5 -p1 | |
103 | ||
104 | %build | |
105 | %{__aclocal} -I m4 | |
106 | %{__autoconf} | |
107 | %{__autoheader} | |
108 | %{__automake} | |
109 | export CXXFLAGS="%{rpmcxxflags} -std=gnu++14" | |
110 | %configure \ | |
111 | --with-denoise-level=1 \ | |
112 | --with-libpng-config=/usr/bin/libpng-config \ | |
113 | --with-wx-config=wx-gtk2-unicode-config \ | |
114 | --enable-alc \ | |
115 | --enable-alcc \ | |
116 | --enable-amulecmd \ | |
117 | --enable-amule-daemon \ | |
118 | --enable-amule-gui \ | |
119 | --enable-cas \ | |
120 | --enable-debug%{!?debug:=no} \ | |
121 | --enable-geoip \ | |
122 | --enable-optimize%{!?debug:=no} \ | |
123 | --enable-webserver \ | |
124 | --enable-wxcas \ | |
125 | --enable-xas | |
126 | ||
127 | %{__make} | |
128 | ||
129 | %install | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
132 | %{__make} install \ | |
133 | DESTDIR=$RPM_BUILD_ROOT | |
134 | ||
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 | |
139 | %find_lang amule | |
140 | ||
141 | %clean | |
142 | rm -rf $RPM_BUILD_ROOT | |
143 | ||
144 | %files -f amule.lang | |
145 | %defattr(644,root,root,755) | |
146 | %doc docs/ABOUT-NLS docs/AUTHORS docs/Changelog docs/EC_Protocol.txt docs/README docs/TODO docs/amulesig.txt | |
147 | %attr(755,root,root) %{_bindir}/autostart-xas | |
148 | %attr(755,root,root) %{_bindir}/amule* | |
149 | %attr(755,root,root) %{_bindir}/ed2k | |
150 | %dir %{_datadir}/amule | |
151 | %{_datadir}/amule/webserver | |
152 | %{_datadir}/amule/skins | |
153 | %{_desktopdir}/amule.desktop | |
154 | %{_desktopdir}/amulegui.desktop | |
155 | %{_pixmapsdir}/amule.xpm | |
156 | %{_pixmapsdir}/amulegui.xpm | |
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* | |
177 | ||
178 | %files plugin-xchat | |
179 | %defattr(644,root,root,755) | |
180 | %{_libdir}/xchat/plugins/xas.pl | |
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* | |
191 | ||
192 | %files alc | |
193 | %defattr(644,root,root,755) | |
194 | %attr(755,root,root) %{_bindir}/alc | |
195 | %attr(755,root,root) %{_bindir}/alcc | |
196 | %{_desktopdir}/alc.desktop | |
197 | %{_pixmapsdir}/alc.xpm | |
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* | |
218 | ||
219 | %files cas | |
220 | %defattr(644,root,root,755) | |
221 | %attr(755,root,root) %{_bindir}/cas | |
222 | %attr(755,root,root) %{_bindir}/wxcas | |
223 | %{_datadir}/amule/cas | |
224 | %{_desktopdir}/wxcas.desktop | |
225 | %{_pixmapsdir}/wxcas.xpm | |
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* |