Package init

This commit is contained in:
overweight 2019-09-30 10:53:17 -04:00
commit cbe5467773
2 changed files with 49 additions and 0 deletions

BIN
ipcalc-0.2.5.tar.gz Normal file

Binary file not shown.

49
ipcalc.spec Normal file
View File

@ -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 <buildteam@openeuler.org> - 0.2.5-1
- Package init