diff --git a/ipcalc-1.0.1.tar.gz b/ipcalc-1.0.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..92b74a22369ad0e7c2325c1b5a16391d268f231c Binary files /dev/null and b/ipcalc-1.0.1.tar.gz differ diff --git a/ipcalc.spec b/ipcalc.spec new file mode 100644 index 0000000000000000000000000000000000000000..2d0eb36577cd2dca876e027d4d9ddb7ba9dc59f4 --- /dev/null +++ b/ipcalc.spec @@ -0,0 +1,50 @@ +%define anolis_release 1 + +Name: ipcalc +Version: 1.0.1 +Release: %{anolis_release}%{?dist} +Summary: IP network address calculator + +License: GPLv2+ +URL: https://gitlab.com/ipcalc/ipcalc +Source0: https://gitlab.com/ipcalc/ipcalc/-/archive/%{version}/ipcalc-%{version}.tar.gz + +BuildRequires: gcc +BuildRequires: meson +BuildRequires: libmaxminddb-devel +BuildRequires: rubygem-ronn-ng +Recommends: libmaxminddb +Recommends: geolite2-city +Recommends: geolite2-country + +%description +ipcalc is a modern tool to assist in network address calculations for +IPv4 and IPv6. It acts both as a tool to output human readable +information about a network or address, as well as a tool suitable to be +used by scripts or other programs. It supports printing a summary about +the provided network address, multiple command line options per +information to be printed, transparent IPv6 support, and in addition it +will use libGeoIP if available to provide geographic information. + +%prep +%autosetup + +%build +%meson -Duse_maxminddb=enabled -Duse_runtime_linking=enabled +%meson_build + +%install +%meson_install + +%check +%meson_test + +%files +%doc README.md +%license COPYING +%{_bindir}/ipcalc +%{_mandir}/man1/ipcalc.1* + +%changelog +* Fri Mar 04 2022 Su Lifan - 1.0.1-1 +- Initial packaging for Anolis 23