diff --git a/README.md b/README.md index 2a77648..e09f89a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # mldonkey +Cross-platform multi-network p2p daemon. + diff --git a/mldonkey.spec b/mldonkey.spec new file mode 100644 index 0000000..bdb6820 --- /dev/null +++ b/mldonkey.spec @@ -0,0 +1,73 @@ +Name: mldonkey +Version: 3.1.6 +Release: 1mamba +Summary: Cross-platform multi-network p2p daemon +Group: Graphical Desktop/Applications/Internet +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://mldonkey.sourceforge.net/ +## GITSOURCE https://github.com/ygrek/mldonkey.git release-3-1-6 +Source: https://github.com/ygrek/mldonkey.git/release-%{version}/mldonkey-%{version}.tar.bz2 +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libX11-devel +BuildRequires: libXpm-devel +BuildRequires: libbzip2-devel +BuildRequires: libfontconfig-devel +BuildRequires: libfreetype-devel +BuildRequires: libgcc +BuildRequires: libgd-devel +BuildRequires: libjpeg-devel +BuildRequires: libmagic-devel +BuildRequires: libpng-devel +BuildRequires: libstdc++6-devel +BuildRequires: libtiff-devel +BuildRequires: libwebp-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Cross-platform multi-network p2p daemon. + +%debug_package + +%prep +%setup -q + +%build +%configure \ + --enable-upnp-natpmp + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +install -D -m0644 distrib/mldonkey.desktop %{buildroot}%{_datadir}/applications/mldonkey.desktop + +for f in 16 32 48; do +install -D -m0644 packages/rpm/mldonkey-icon-${f}.png %{buildroot}%{_datadir}/icons/hicolor/${f}x${f}/mldonkey.png +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/mlbt +%{_bindir}/mldc +%{_bindir}/mldonkey +%{_bindir}/mlgnut +%{_bindir}/mlnet +%{_bindir}/mlslsk +%{_datadir}/applications/mldonkey.desktop +%{_datadir}/icons/hicolor/*/mldonkey.png +%doc Copying.txt + +%changelog +* Sat Apr 20 2019 Silvan Calarco 3.1.6-1mamba +- package created using the webbuild interface