File iMule.spec of Package iMule

96
 
1
#
2
# spec file for package iMule
3
#
4
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
5
#
6
# All modifications and additions to the file contributed by third parties
7
# remain the property of their copyright owners, unless otherwise agreed
8
# upon. The license for this file, and modifications and additions to the
9
# file, is the same license as for the pristine package itself (unless the
10
# license for the pristine package is not an Open Source License, in which
11
# case the license is the MIT License). An "Open Source License" is a
12
# license that conforms to the Open Source Definition (Version 1.9)
13
# published by the Open Source Initiative.
14
15
# Please submit bugfixes or comments via https://bugs.opensuse.org/
16
#
17
18
Name:           iMule
19
Version:        2.3.3.3
20
Release:        0
21
Summary:        I2P aware version of aMule
22
License:        GPL-2.0-or-later
23
Group:          Productivity/Networking/File-Sharing
24
URL:            http://imule.i2p/
25
Source:         http://www.imule.i2p/files/download.php?Fichier=iMule-%{version}-src.tbz
26
Patch0:         new_cryptopp.patch
27
Patch1:         name_fix.patch
28
BuildRequires:  bison
29
BuildRequires:  fdupes
30
BuildRequires:  flex
31
BuildRequires:  gcc-c++
32
BuildRequires:  man
33
BuildRequires:  pkgconfig(cryptopp)
34
BuildRequires:  pkgconfig(gdlib)
35
BuildRequires:  pkgconfig(libpng)
36
%if %{suse_version} <= 1500
37
# This is probably a missed dependency of wxWidgets
38
BuildRequires:  pkgconfig(xpm)
39
%endif
40
BuildRequires:  pkgconfig(zlib)
41
BuildRequires:  update-desktop-files
42
BuildRequires:  wxGTK2-devel
43
44
%description
45
iMule is a peer to peer file sharing client, based on the well known eMule.
46
Starting with 2.0.0 iMule works on Linux, Mac, *BSD and Windows, which makes it
47
the first multi-platform edonkey network client.
48
49
%prep
50
%setup -q -n iMule-%{version}-src
51
%patch0 -p1
52
%patch1 -p1
53
54
%build
55
export CCACHE_COMPILERCHECK="string:$(rpm -q -f $(realpath /usr/bin/c++))"
56
%configure \
57
    --disable-debug \
58
    --disable-gmp \
59
    --disable-rpath \
60
    --disable-upnp \
61
    --enable-alc \
62
    --enable-alcc \
63
    --enable-cas \
64
    --enable-imulecmd \
65
    --enable-imule-daemon \
66
    --enable-imule-gui \
67
    --enable-mmap \
68
    --enable-optimize \
69
    --enable-webserver \
70
    --enable-wxcas \
71
    --with-denoise-level=0 \
72
    --with-zlib
73
make %{?_smp_mflags}
74
75
%install
76
%make_install
77
rm %{buildroot}%{_datadir}/doc/imule/INSTALL
78
%fdupes -s %{buildroot}%{_datadir}/imule/webserver/
79
%find_lang imule
80
%suse_update_desktop_file imule Network P2P
81
82
%files -f imule.lang
83
%{_bindir}/*
84
%{_datadir}/applications/*
85
%{_datadir}/pixmaps/*
86
%{_mandir}/man1/*
87
%{_mandir}/*/man1/*
88
%dir %{_mandir}/tr
89
%dir %{_mandir}/tr/man1
90
%docdir %{_datadir}/doc/*
91
%{_datadir}/doc/*
92
%{_datadir}/casdata
93
%{_datadir}/imule
94
95
%changelog
96