mldonkey/mldonkey.spec

74 lines
1.9 KiB
RPMSpec

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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 3.1.6-1mamba
- package created using the webbuild interface