]> git.pld-linux.org Git - SPECS.git/blob - xmule.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / xmule.spec
1 # TODO: it hanges after few minutes, hgw why.
2 Summary:        Unix port of eMule client
3 Summary(pl.UTF-8):      Uniksowy port klienta eMule
4 Name:           xmule
5 Version:        1.12.2
6 Release:        0.2
7 License:        GPL
8 Group:          X11/Applications
9 Source0:        http://dl.sourceforge.net/xmule/%{name}-%{version}.tar.bz2
10 # Source0-md5:  372c02793f8282312a1370443420fda7
11 Patch0:         %{name}-pl_typos.patch
12 Patch1:         %{name}-desktop.patch
13 Patch2:         %{name}-locale_names.patch
14 Patch3:         %{name}-configure.patch
15 Patch4:         %{name}-wx-config.patch
16 Patch5:         %{name}-libcrypto.patch
17 URL:            http://www.xmule.ws/
18 BuildRequires:  autoconf
19 BuildRequires:  automake >= 1:1.7.3
20 BuildRequires:  bison
21 BuildRequires:  cryptopp-devel
22 BuildRequires:  expat-devel
23 BuildRequires:  gettext-tools >= 0.14.5
24 BuildRequires:  gtk+2-devel >= 2.0.3
25 BuildRequires:  libstdc++-devel
26 BuildRequires:  pkgconfig
27 BuildRequires:  wxGTK2-devel >= 2.6.2
28 Requires:       wget
29 Obsoletes:      aMule
30 Obsoletes:      lmule
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 xMule is a Linux port of eMule client.
35
36 %description -l pl.UTF-8
37 xMule to linuksowy port klienta eMule.
38
39 %prep
40 %setup -q
41 %patch0 -p1
42 %patch1 -p1
43 %patch2 -p1
44 %patch3 -p1
45 %patch4 -p1
46 %patch5 -p1
47
48 mv -f po/{ee,et}.po
49
50 %build
51 # Regenerate POTFILES.in because it wasn't actualized since 2004
52 for i in src/*.cpp; do echo $i; done > po/POTFILES.in
53 cp -f /usr/share/automake/config.sub .
54 %{__gettextize}
55 %{__aclocal}
56 %{__autoconf}
57 %{__autoheader}
58 %configure \
59         --prefix=$RPM_BUILD_ROOT \
60         --disable-debug-syms \
61         --with-wx-config=/usr/bin/wx-gtk2-ansi-config 
62 %{__make}
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_pixmapsdir}}
67 install {ed2k.xmule-2.0,xmule} $RPM_BUILD_ROOT%{_bindir}
68 ln -sf %{_bindir}/ed2k.xmule-2.0 $RPM_BUILD_ROOT%{_bindir}/ed2k
69 install xmule.desktop $RPM_BUILD_ROOT%{_desktopdir}/xmule.desktop
70 install xmule.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/xmule.xpm
71 cd po
72 %{__make} install \
73         DESTDIR=$RPM_BUILD_ROOT
74 %{__make} install-data \
75         DESTDIR=$RPM_BUILD_ROOT
76 cd ..
77
78 %find_lang xMule
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %files -f xMule.lang
84 %defattr(644,root,root,755)
85 %doc ChangeLog ChangeLog-UNSTABLE docs/{AUTHORS,ED2K-Links.HOWTO,README,TODO}
86 %attr(755,root,root) %{_bindir}/*
87 %{_pixmapsdir}/*
88 %{_desktopdir}/%{name}.desktop
This page took 0.254658 seconds and 3 git commands to generate.