|
|
03d06c |
Name: ipcalc
|
|
|
03d06c |
Version: 0.2.4
|
|
|
03d06c |
Release: 3%{?dist}
|
|
|
03d06c |
Summary: IP network address calculator
|
|
|
03d06c |
|
|
|
03d06c |
# This is an updated version of ipcalc originally found
|
|
|
03d06c |
# in Fedora's initscripts at:
|
|
|
03d06c |
# https://fedorahosted.org/releases/i/n/initscripts/
|
|
|
03d06c |
|
|
|
03d06c |
License: GPLv2+
|
|
|
03d06c |
URL: https://gitlab.com/ipcalc/ipcalc
|
|
|
03d06c |
Source0: https://gitlab.com/ipcalc/ipcalc/-/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
03d06c |
|
|
|
03d06c |
BuildRequires: gcc, git, libmaxminddb-devel
|
|
|
03d06c |
Recommends: libmaxminddb, geolite2-city, geolite2-country
|
|
|
03d06c |
|
|
|
03d06c |
# Explicitly conflict with older initscript packages that ship ipcalc
|
|
|
03d06c |
Conflicts: initscripts < 9.63
|
|
|
03d06c |
# Obsolete ipcalculator
|
|
|
03d06c |
Obsoletes: ipcalculator < 0.41-20
|
|
|
03d06c |
|
|
|
03d06c |
Patch1: 0001-fix-segfault-in-env-without-libmaxmind.so.patch
|
|
|
03d06c |
|
|
|
03d06c |
%description
|
|
|
03d06c |
ipcalc provides a simple way to calculate IP information for a host
|
|
|
03d06c |
or network. Depending on the options specified, it may be used to provide
|
|
|
03d06c |
IP network information in human readable format, in a format suitable for
|
|
|
03d06c |
parsing in scripts, generate random private addresses, resolve an IP address,
|
|
|
03d06c |
or check the validity of an address.
|
|
|
03d06c |
|
|
|
03d06c |
%prep
|
|
|
03d06c |
%autosetup -S git
|
|
|
03d06c |
|
|
|
03d06c |
%build
|
|
|
03d06c |
CFLAGS="${CFLAGS:-%optflags} $RPM_LD_FLAGS" \
|
|
|
03d06c |
USE_RUNTIME_LINKING=yes USE_GEOIP=no USE_MAXMIND=yes LIBPATH=%{_libdir} make %{?_smp_mflags}
|
|
|
03d06c |
|
|
|
03d06c |
%install
|
|
|
03d06c |
mkdir -p %{buildroot}%{_bindir}
|
|
|
03d06c |
install -p -m 755 ipcalc %{buildroot}%{_bindir}/
|
|
|
03d06c |
mkdir -p -m 755 %{buildroot}%{_mandir}/man1
|
|
|
03d06c |
install -p -m 644 ipcalc.1 %{buildroot}%{_mandir}/man1
|
|
|
03d06c |
|
|
|
03d06c |
%check
|
|
|
03d06c |
make check
|
|
|
03d06c |
|
|
|
03d06c |
%files
|
|
|
03d06c |
|
|
|
03d06c |
%{_bindir}/ipcalc
|
|
|
03d06c |
%license COPYING
|
|
|
03d06c |
%doc README.md
|
|
|
03d06c |
%{_mandir}/man1/ipcalc.1*
|
|
|
03d06c |
|
|
|
03d06c |
%changelog
|
|
|
03d06c |
* Fri Aug 03 2018 Martin Sehnoutka <msehnout@redhat.com> - 0.2.4-3
|
|
|
03d06c |
- Fix segfault in the container environment
|
|
|
03d06c |
|
|
|
03d06c |
* Thu Aug 02 2018 Martin Sehnoutka <msehnout@redhat.com> - 0.2.4-2
|
|
|
03d06c |
- Recommend databases
|
|
|
03d06c |
|
|
|
03d06c |
* Tue Jul 24 2018 Martin Sehnoutka <msehnout@redhat.com> - 0.2.4-1
|
|
|
03d06c |
- Resolves: #1601400 with rebase to 0.2.4
|
|
|
03d06c |
|
|
|
03d06c |
* Fri Feb 9 2018 Florian Weimer <fweimer@redhat.com> - 0.2.2-4
|
|
|
03d06c |
- Another attempt at injecting LDFLAGS
|
|
|
03d06c |
|
|
|
03d06c |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-3
|
|
|
03d06c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
03d06c |
|
|
|
03d06c |
* Thu Feb 1 2018 Florian Weimer <fweimer@redhat.com> - 0.2.2-2
|
|
|
03d06c |
- Build with linker flags from redhat-rpm-config
|
|
|
03d06c |
|
|
|
03d06c |
* Tue Jan 02 2018 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.2.2-1
|
|
|
03d06c |
- New upstream release
|
|
|
03d06c |
|
|
|
03d06c |
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-3
|
|
|
03d06c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
03d06c |
|
|
|
03d06c |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-2
|
|
|
03d06c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
03d06c |
|
|
|
03d06c |
* Mon May 15 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.2.0-1
|
|
|
03d06c |
- New upstream release
|
|
|
03d06c |
|
|
|
03d06c |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.8-2
|
|
|
03d06c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
03d06c |
|
|
|
03d06c |
* Wed Jun 15 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.1.8-1
|
|
|
03d06c |
- New upstream release
|
|
|
03d06c |
|
|
|
03d06c |
* Fri Apr 1 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.1.7-1
|
|
|
03d06c |
- New upstream release
|
|
|
03d06c |
|
|
|
03d06c |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-2
|
|
|
03d06c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
03d06c |
|
|
|
03d06c |
* Tue Dec 8 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.1.6-1
|
|
|
03d06c |
- New upstream release
|
|
|
03d06c |
|
|
|
03d06c |
* Wed Oct 14 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.1.4-2
|
|
|
03d06c |
- Corrected issue on --all-info
|
|
|
03d06c |
|
|
|
03d06c |
* Wed Oct 14 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.1.4-1
|
|
|
03d06c |
- New upstream release
|
|
|
03d06c |
|
|
|
03d06c |
* Tue Oct 6 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.1.3-1
|
|
|
03d06c |
- New upstream release
|
|
|
03d06c |
- Prints GeoIP information on generic info
|
|
|
03d06c |
|
|
|
03d06c |
* Mon Sep 21 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.1.2-3
|
|
|
03d06c |
- This package obsoletes ipcalculator
|
|
|
03d06c |
|
|
|
03d06c |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-2
|
|
|
03d06c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
03d06c |
|
|
|
03d06c |
* Tue Jun 9 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.1.2-1
|
|
|
03d06c |
- New upstream release
|
|
|
03d06c |
|
|
|
03d06c |
* Tue May 19 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.1.1-1
|
|
|
03d06c |
- Compatibility fixes (allow a mask of 0)
|
|
|
03d06c |
|
|
|
03d06c |
* Mon May 18 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.1.0-1
|
|
|
03d06c |
- First independent release outside initscripts
|