|
|
@ -1,17 +1,12 @@
|
|
|
|
Name: ipcalc
|
|
|
|
Name: ipcalc
|
|
|
|
Version: 0.2.4
|
|
|
|
Version: 1.0.0
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Summary: IP network address calculator
|
|
|
|
Summary: IP network address calculator
|
|
|
|
|
|
|
|
|
|
|
|
# This is an updated version of ipcalc originally found
|
|
|
|
|
|
|
|
# in Fedora's initscripts at:
|
|
|
|
|
|
|
|
# https://fedorahosted.org/releases/i/n/initscripts/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
License: GPLv2+
|
|
|
|
License: GPLv2+
|
|
|
|
URL: https://gitlab.com/ipcalc/ipcalc
|
|
|
|
URL: https://gitlab.com/ipcalc/ipcalc
|
|
|
|
Source0: https://gitlab.com/ipcalc/ipcalc/-/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source0: https://gitlab.com/ipcalc/ipcalc/-/archive/%{version}/ipcalc-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc, git, libmaxminddb-devel
|
|
|
|
BuildRequires: gcc, libmaxminddb-devel, meson, rubygem-ronn-ng
|
|
|
|
Recommends: libmaxminddb, geolite2-city, geolite2-country
|
|
|
|
Recommends: libmaxminddb, geolite2-city, geolite2-country
|
|
|
|
|
|
|
|
|
|
|
|
# Explicitly conflict with older initscript packages that ship ipcalc
|
|
|
|
# Explicitly conflict with older initscript packages that ship ipcalc
|
|
|
@ -19,8 +14,6 @@ Conflicts: initscripts < 9.63
|
|
|
|
# Obsolete ipcalculator
|
|
|
|
# Obsolete ipcalculator
|
|
|
|
Obsoletes: ipcalculator < 0.41-20
|
|
|
|
Obsoletes: ipcalculator < 0.41-20
|
|
|
|
|
|
|
|
|
|
|
|
Patch1: 0001-fix-segfault-in-env-without-libmaxmind.so.patch
|
|
|
|
|
|
|
|
Patch2: 0002-add-support-for-RFC3021.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
ipcalc provides a simple way to calculate IP information for a host
|
|
|
|
ipcalc provides a simple way to calculate IP information for a host
|
|
|
@ -30,20 +23,17 @@ parsing in scripts, generate random private addresses, resolve an IP address,
|
|
|
|
or check the validity of an address.
|
|
|
|
or check the validity of an address.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -S git
|
|
|
|
%autosetup
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
CFLAGS="${CFLAGS:-%optflags} $RPM_LD_FLAGS" \
|
|
|
|
%meson -Duse_maxminddb=enabled -Duse_runtime_linking=enabled
|
|
|
|
USE_RUNTIME_LINKING=yes USE_GEOIP=no USE_MAXMIND=yes LIBPATH=%{_libdir} make %{?_smp_mflags}
|
|
|
|
%meson_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
%meson_install
|
|
|
|
install -p -m 755 ipcalc %{buildroot}%{_bindir}/
|
|
|
|
|
|
|
|
mkdir -p -m 755 %{buildroot}%{_mandir}/man1
|
|
|
|
|
|
|
|
install -p -m 644 ipcalc.1 %{buildroot}%{_mandir}/man1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
make check
|
|
|
|
%meson_test
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
|
|
|
|
|
|
|
@ -53,20 +43,60 @@ make check
|
|
|
|
%{_mandir}/man1/ipcalc.1*
|
|
|
|
%{_mandir}/man1/ipcalc.1*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 0.2.4-4
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.0-5
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.0-4
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Nov 23 2020 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.0.0-2
|
|
|
|
|
|
|
|
- Rebuilt for ronn successor
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Oct 03 2020 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.0.0-1
|
|
|
|
|
|
|
|
- Updated to 1.0.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 24 2020 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.4.1-1
|
|
|
|
|
|
|
|
- Updated to 0.4.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 10 2019 Martin Osvald <mosvald@redhat.com> - 0.2.4-4
|
|
|
|
* Sat Dec 28 2019 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.4.0-1
|
|
|
|
- Add support for RFC3021 (#1638834)
|
|
|
|
- Updated to 0.4.0
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Aug 03 2018 Martin Sehnoutka <msehnout@redhat.com> - 0.2.4-3
|
|
|
|
* Sat Nov 23 2019 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.3.0-1
|
|
|
|
- Fix segfault in the container environment
|
|
|
|
- Updated to 0.3.0
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 02 2018 Martin Sehnoutka <msehnout@redhat.com> - 0.2.4-2
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-3
|
|
|
|
- Recommend databases
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 24 2018 Martin Sehnoutka <msehnout@redhat.com> - 0.2.4-1
|
|
|
|
* Tue Feb 19 2019 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.2.5-2
|
|
|
|
- Resolves: #1601400 with rebase to 0.2.4
|
|
|
|
- Re-added the geolite2-city, geolite2-country dependencies
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Feb 18 2019 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.2.5-1
|
|
|
|
|
|
|
|
- Updated to 0.2.5
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 09 2018 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.2.4-2
|
|
|
|
|
|
|
|
- Fix crash when -g option is used
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 23 2018 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.2.4-1
|
|
|
|
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu May 31 2018 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.2.3-1
|
|
|
|
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 9 2018 Florian Weimer <fweimer@redhat.com> - 0.2.2-4
|
|
|
|
* Fri Feb 9 2018 Florian Weimer <fweimer@redhat.com> - 0.2.2-4
|
|
|
|
- Another attempt at injecting LDFLAGS
|
|
|
|
- Another attempt at injecting LDFLAGS
|
|
|
|