Blame SPECS/ipcalc.spec

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