File aMule.spec of Package aMule (Revision 11)

Currently displaying revision 11 , Show latest

90
 
1
Name:       aMule
2
Summary:    Another eMule file-sharing program
3
Version:    2.3.1
4
Release:    2
5
License:    GPL-2.0+
6
Group:      Productivity/Networking/Other
7
URL:        http://www.amule.org
8
Source0:    http://downloads.sourceforge.net/project/amule/aMule/%{version}/aMule-%{version}.tar.bz2
9
BuildRequires:  gcc-c++ gd-devel libpng-devel fdupes
10
BuildRequires:  libupnp-devel libcryptopp-devel libGeoIP-devel update-desktop-files
11
%if 0%{?suse_version} < 1210
12
BuildRequires:  wxWidgets-ansi-devel
13
%else
14
BuildRequires:  wxWidgets-wxcontainer-devel >= 2.8.12
15
%endif
16
%define _use_internal_dependency_generator 0
17
%define __find_requires %wx_requires
18
Requires:   GeoIP
19
20
%description
21
aMule stand for another eMule file-sharing program, it is also
22
another fork of the xMule (former lMule) project. It connects 
23
to eDonkey2000 network, supports Linux, *BSD platforms, and has
24
a new vision of the GUI.
25
26
###
27
# Think about splitting up the packages: amulegui, amuled...
28
###
29
30
31
32
%prep
33
%setup -q
34
35
%build
36
export CXXFLAGS='%{optflags} -fpermissive'
37
%configure \
38
  --enable-optimize \
39
  --disable-debug \
40
  --enable-amulecmd \
41
  --enable-amule-gui \
42
  --enable-amule-daemon \
43
  --enable-webserver \
44
  --enable-webservergui \
45
  --enable-cas \
46
  --enable-wxcas \
47
  --enable-alc \
48
  --enable-alcc \
49
  --enable-geoip \
50
  --enable-xas \
51
  --disable-silent-rules \
52
  --with-denoise-level=0
53
54
make %{?_smp_mflags}
55
56
%install
57
%make_install docdir=%{_defaultdocdir}/aMule
58
59
%suse_update_desktop_file -G "P2P Client" -i amule Network P2P
60
%suse_update_desktop_file  %buildroot/%_datadir/applications/alc.desktop
61
%suse_update_desktop_file  %buildroot/%_datadir/applications/amulegui.desktop
62
%suse_update_desktop_file  %buildroot/%_datadir/applications/wxcas.desktop
63
64
#tar -xf %{SOURCE1} -C %{buildroot}%{_datadir}/amule/
65
#mv %{buildroot}%{_datadir}/amule/amule__icon.png %{buildroot}%{_datadir}/pixmaps/amule.png
66
67
%find_lang amule
68
69
%fdupes -s %buildroot
70
71
%files -f amule.lang
72
%defattr(-,root,root)
73
%doc docs/AUTHORS docs/Changelog docs/README docs/license.txt
74
%doc %{_mandir}/*/*
75
%{_bindir}/*
76
%{_libdir}/xchat/plugins/xas.pl
77
%{_datadir}/amule/*
78
%{_datadir}/cas/*
79
%{_datadir}/locale/*/LC_MESSAGES/*
80
%{_datadir}/applications/*
81
%{_datadir}/pixmaps/*
82
%dir %{_libdir}/xchat
83
%dir %{_libdir}/xchat/plugins
84
%dir %{_datadir}/amule
85
%dir %{_datadir}/cas
86
%dir %{_mandir}/tr
87
%dir %{_mandir}/hu
88
89
%changelog
90