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