commit cbe546777318f2add7a43e873981edc8281ff9c8 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:53:17 2019 -0400 Package init diff --git a/ipcalc-0.2.5.tar.gz b/ipcalc-0.2.5.tar.gz new file mode 100644 index 0000000..e84db5c Binary files /dev/null and b/ipcalc-0.2.5.tar.gz differ diff --git a/ipcalc.spec b/ipcalc.spec new file mode 100644 index 0000000..5e4f7fa --- /dev/null +++ b/ipcalc.spec @@ -0,0 +1,49 @@ +Name: ipcalc +Version: 0.2.5 +Release: 1 +Summary: IP network address calculator + +License: GPLv2+ +URL: https://gitlab.com/ipcalc/%{name} +Source0: %{url}/-/archive/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: gcc libmaxminddb-devel + +%description +ipcalc provides a simple way to calculate IP information for a host. +The various options specify what information ipcalc should display on standard out. +Multiple options may be specified. An IP address to operate on must always +be specified. Most operations also require a netmask or a CIDR prefix as well. + +%package_help + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +CFLAGS="${CFLAGS:-%optflags} $RPM_LD_FLAGS" \ + USE_RUNTIME_LINKING=yes USE_GEOIP=no USE_MAXMIND=yes LIBPATH=%{_libdir} +%make_build + +%install +install -d %{buildroot}%{_bindir} +install -p -m 0755 ipcalc %{buildroot}%{_bindir}/ +install -d -m 0755 %{buildroot}%{_mandir}/man1 +install -p -m 0644 ipcalc.1 %{buildroot}%{_mandir}/man1 + +%check +make check + +%files +%defattr(-,root,root) +%license COPYING +%{_bindir}/* + +%files help +%defattr(-,root,root) +%doc README.md +%{_mandir}/man1/* + +%changelog +* Fri Aug 30 2019 openEuler Buildteam - 0.2.5-1 +- Package init