diff --git a/ipcalc-0.1.4-all-info.patch b/ipcalc-0.1.4-all-info.patch new file mode 100644 index 0000000..f22414c --- /dev/null +++ b/ipcalc-0.1.4-all-info.patch @@ -0,0 +1,13 @@ +diff --git a/ipcalc.c b/ipcalc.c +index 0fa9c24..1e503c3 100644 +--- a/ipcalc.c ++++ b/ipcalc.c +@@ -1110,7 +1110,7 @@ int main(int argc, const char **argv) + if (hostname) + flags |= FLAG_RESOLVE_IP; + +- if (geo_setup() == 0 && (flags & FLAG_SHOW_ALL_INFO)) ++ if (geo_setup() == 0 && ((flags & FLAG_SHOW_ALL_INFO) == FLAG_SHOW_ALL_INFO)) + flags |= FLAG_GET_GEOIP; + + if (hostname && randomStr) { diff --git a/ipcalc.spec b/ipcalc.spec index 3d2d4a4..c5849d5 100644 --- a/ipcalc.spec +++ b/ipcalc.spec @@ -1,6 +1,6 @@ Name: ipcalc Version: 0.1.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: IP network address calculator # This is an updated version of ipcalc originally found @@ -10,6 +10,7 @@ Summary: IP network address calculator License: GPLv2+ URL: https://github.com/nmav/ipcalc Source0: https://github.com/nmav/ipcalc/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +Patch0: ipcalc-0.1.4-all-info.patch BuildRequires: GeoIP-devel BuildRequires: popt-devel @@ -31,6 +32,8 @@ or check the validity of an address. %prep %setup -q +%patch0 -p1 -b .all-info + %build CFLAGS="${CFLAGS:-%optflags}" LIBPATH=%{_libdir} make %{?_smp_mflags} @@ -51,6 +54,9 @@ make check %{_mandir}/man1/ipcalc.1* %changelog +* Wed Oct 14 2015 Nikos Mavrogiannopoulos - 0.1.4-2 +- Corrected issue on --all-info + * Wed Oct 14 2015 Nikos Mavrogiannopoulos - 0.1.4-1 - New upstream release