]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO: ./configure --enable-plasmamule | |
3 | # | |
4 | Summary: Unix port of eMule client | |
5 | Summary(pl.UTF-8): Uniksowy port klienta eMule | |
6 | Name: aMule | |
7 | Version: 2.3.1 | |
8 | Release: 23 | |
9 | License: GPL | |
10 | Group: X11/Applications | |
11 | Source0: http://downloads.sourceforge.net/amule/%{name}-%{version}.tar.bz2 | |
12 | # Source0-md5: 31724290a440943f5b05d4dca413fe02 | |
13 | Patch0: %{name}-desktop.patch | |
14 | Patch1: %{name}-cas-datadir.patch | |
15 | Patch2: %{name}-ac.patch | |
16 | Patch3: %{name}-cxx.patch | |
17 | Patch4: wxWidgets3.patch | |
18 | Patch5: build.patch | |
19 | URL: http://www.amule.org/ | |
20 | BuildRequires: GeoIP-devel | |
21 | BuildRequires: autoconf | |
22 | BuildRequires: automake >= 1:1.7.3 | |
23 | BuildRequires: binutils-devel | |
24 | BuildRequires: bison | |
25 | BuildRequires: cryptopp-devel >= 5.1 | |
26 | BuildRequires: curl-devel >= 7.9.7 | |
27 | BuildRequires: expat-devel | |
28 | BuildRequires: gd-devel | |
29 | BuildRequires: gettext-autopoint | |
30 | BuildRequires: gettext-tools >= 0.11.5 | |
31 | BuildRequires: gtk+2-devel >= 2:2.2.0 | |
32 | BuildRequires: libpng-devel >= 1.2.0 | |
33 | BuildRequires: libstdc++-devel | |
34 | BuildRequires: pkgconfig | |
35 | BuildRequires: wxGTK2-unicode-devel >= 2.8.12 | |
36 | BuildRequires: xorg-lib-libXpm-devel | |
37 | Requires: wget | |
38 | Obsoletes: lmule | |
39 | Obsoletes: xmule | |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
41 | ||
42 | %description | |
43 | aMule is a Linux port of eMule client. | |
44 | ||
45 | %description -l pl.UTF-8 | |
46 | aMule to linuksowy port klienta eMule. | |
47 | ||
48 | %package plugin-xchat | |
49 | Summary: Xchat plugin | |
50 | Summary(pl.UTF-8): Wtyczka dla xchat | |
51 | Group: X11/Applications | |
52 | Requires: %{name} = %{version}-%{release} | |
53 | Provides: %{name}-plugin-xchat | |
54 | ||
55 | %description plugin-xchat | |
56 | Plugin for Xchat IRC client. | |
57 | ||
58 | %description plugin-xchat -l pl.UTF-8 | |
59 | Wtczka dla klienta IRC xchat. | |
60 | ||
61 | %package alc | |
62 | Summary: Ed2k link creator for aMule | |
63 | Summary(pl.UTF-8): Kreator linków ed2k dla aMule | |
64 | Group: X11/Applications | |
65 | Requires: %{name} = %{version}-%{release} | |
66 | Provides: alc | |
67 | ||
68 | %description alc | |
69 | Tool for creating ed2k links. | |
70 | ||
71 | %description alc -l pl.UTF-8 | |
72 | Narzędzie do tworzenia linków ed2k. | |
73 | ||
74 | %package cas | |
75 | Summary: aMule online stats | |
76 | Summary(pl.UTF-8): Statystyki online aMule | |
77 | Group: X11/Applications | |
78 | Requires: %{name} = %{version}-%{release} | |
79 | Provides: cas | |
80 | ||
81 | %description cas | |
82 | Tool for generating aMule online stats. | |
83 | ||
84 | %description cas -l pl.UTF-8 | |
85 | Narzędzie do generownia statystyk aMule. | |
86 | ||
87 | %prep | |
88 | %setup -q | |
89 | %patch0 -p1 | |
90 | %patch1 -p1 | |
91 | %patch2 -p1 | |
92 | %patch3 -p1 | |
93 | %patch4 -p1 | |
94 | %patch5 -p1 | |
95 | ||
96 | %build | |
97 | %{__aclocal} -I m4 | |
98 | %{__autoconf} | |
99 | %{__autoheader} | |
100 | %{__automake} | |
101 | %configure \ | |
102 | --with-wx-config=wx-gtk2-unicode-config \ | |
103 | --with-libpng-config=/usr/bin/libpng-config \ | |
104 | --%{?debug:en}%{!?debug:dis}able-debug \ | |
105 | --%{?debug:dis}%{!?debug:en}able-optimize \ | |
106 | --enable-amule-daemon \ | |
107 | --enable-amule-gui \ | |
108 | --enable-amulecmd \ | |
109 | --enable-webserver \ | |
110 | --enable-cas \ | |
111 | --enable-wxcas \ | |
112 | --enable-alc \ | |
113 | --enable-alcc \ | |
114 | --enable-geoip \ | |
115 | --enable-xas \ | |
116 | --enable-optimize | |
117 | ||
118 | %{__make} | |
119 | ||
120 | %install | |
121 | rm -rf $RPM_BUILD_ROOT | |
122 | ||
123 | %{__make} install \ | |
124 | DESTDIR=$RPM_BUILD_ROOT | |
125 | ||
126 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/et{_EE,} | |
127 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/ko{_KR,} | |
128 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/pt{_PT,} | |
129 | rm -fr $RPM_BUILD_ROOT%{_docdir}/amule | |
130 | rm -fr $RPM_BUILD_ROOT%{_mandir}/eu | |
131 | %find_lang amule | |
132 | ||
133 | %clean | |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
136 | %files -f amule.lang | |
137 | %defattr(644,root,root,755) | |
138 | %doc docs/ABOUT-NLS docs/AUTHORS docs/Changelog docs/EC_Protocol.txt docs/README docs/TODO docs/amulesig.txt | |
139 | %attr(755,root,root) %{_bindir}/autostart-xas | |
140 | %attr(755,root,root) %{_bindir}/amule* | |
141 | %attr(755,root,root) %{_bindir}/ed2k | |
142 | %dir %{_datadir}/amule | |
143 | %{_datadir}/amule/webserver | |
144 | %{_datadir}/amule/skins | |
145 | %{_desktopdir}/amule.desktop | |
146 | %{_desktopdir}/amulegui.desktop | |
147 | %{_pixmapsdir}/amule.xpm | |
148 | %{_pixmapsdir}/amulegui.xpm | |
149 | %{_mandir}/man1/amule* | |
150 | %{_mandir}/man1/ed2k* | |
151 | %lang(de) %{_mandir}/de/man1/amule* | |
152 | %lang(de) %{_mandir}/de/man1/ed2k* | |
153 | %lang(es) %{_mandir}/es/man1/amule* | |
154 | %lang(es) %{_mandir}/es/man1/ed2k* | |
155 | %lang(fr) %{_mandir}/fr/man1/amule* | |
156 | %lang(fr) %{_mandir}/fr/man1/ed2k* | |
157 | %lang(hu) %{_mandir}/hu/man1/amule* | |
158 | %lang(hu) %{_mandir}/hu/man1/ed2k* | |
159 | %lang(it) %{_mandir}/it/man1/amule* | |
160 | %lang(it) %{_mandir}/it/man1/ed2k* | |
161 | %lang(ru) %{_mandir}/ru/man1/amule* | |
162 | %lang(ru) %{_mandir}/ru/man1/ed2k* | |
163 | %lang(tr) %{_mandir}/tr/man1/amule* | |
164 | %lang(tr) %{_mandir}/tr/man1/ed2k* | |
165 | ||
166 | %files plugin-xchat | |
167 | %defattr(644,root,root,755) | |
168 | %{_libdir}/xchat/plugins/xas.pl | |
169 | %{_mandir}/man1/xas* | |
170 | %lang(de) %{_mandir}/de/man1/xas* | |
171 | %lang(es) %{_mandir}/es/man1/xas* | |
172 | %lang(fr) %{_mandir}/fr/man1/xas* | |
173 | %lang(hu) %{_mandir}/hu/man1/xas* | |
174 | %lang(it) %{_mandir}/it/man1/xas* | |
175 | %lang(ru) %{_mandir}/ru/man1/xas* | |
176 | %lang(tr) %{_mandir}/tr/man1/xas* | |
177 | ||
178 | %files alc | |
179 | %defattr(644,root,root,755) | |
180 | %attr(755,root,root) %{_bindir}/alc* | |
181 | %{_desktopdir}/alc.desktop | |
182 | %{_pixmapsdir}/alc.xpm | |
183 | %{_mandir}/man1/alc* | |
184 | %lang(de) %{_mandir}/de/man1/alc* | |
185 | %lang(es) %{_mandir}/es/man1/alc* | |
186 | %lang(fr) %{_mandir}/fr/man1/alc* | |
187 | %lang(hu) %{_mandir}/hu/man1/alc* | |
188 | %lang(it) %{_mandir}/it/man1/alc* | |
189 | %lang(ru) %{_mandir}/ru/man1/alc* | |
190 | %lang(tr) %{_mandir}/tr/man1/alc* | |
191 | ||
192 | %files cas | |
193 | %defattr(644,root,root,755) | |
194 | %attr(755,root,root) %{_bindir}/*cas | |
195 | %{_datadir}/amule/cas | |
196 | %{_desktopdir}/*cas.desktop | |
197 | %{_pixmapsdir}/wxcas.xpm | |
198 | %{_mandir}/man1/*cas* | |
199 | %lang(de) %{_mandir}/de/man1/*cas* | |
200 | %lang(es) %{_mandir}/es/man1/*cas* | |
201 | %lang(fr) %{_mandir}/fr/man1/*cas* | |
202 | %lang(hu) %{_mandir}/hu/man1/*cas* | |
203 | %lang(it) %{_mandir}/it/man1/*cas* | |
204 | %lang(ru) %{_mandir}/ru/man1/*cas* | |
205 | %lang(tr) %{_mandir}/tr/man1/*cas* |