#define headtag .rc4.head.20150221.115120 Summary: IPv6 address format change and calculation utility Name: ipv6calc Version: 0.98.0%{?headtag} Release: 8%{?dist} Group: Applications/Text URL: http://www.deepspace6.net/projects/%{name}.html License: GPLv2 Source: ftp://ftp.bieringer.de/pub/linux/IPv6/ipv6calc/%{name}-%{version}.tar.gz BuildRequires: openssl-devel BuildRequires: perl(Digest::MD5), perl(Digest::SHA1), perl(URI::Escape) BuildRequires: perl(strict), perl(warnings) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # database support (deselectable) %if "%{?_without_ip2location:0}%{?!_without_ip2location:1}" == "1" %define enable_ip2location 1 %endif %if "%{?_without_geoip:0}%{?!_without_geoip:1}" == "1" %define enable_geoip 1 %endif %if "%{?_without_dbip:0}%{?!_without_dbip:1}" == "1" %define enable_dbip 1 %endif %if "%{?_without_external:0}%{?!_without_external:1}" == "1" %define enable_external 1 %endif %if "%{?_without_shared:0}%{?!_without_shared:1}" == "1" %define enable_shared 1 %endif # database locations %define ip2location_db %{_datadir}/IP2Location %define geoip_db %{_datadir}/GeoIP %define dbip_db %{_datadir}/DBIP %define external_db %{_datadir}/%{name}/db # Berkeley DB selector %define require_db4 %(echo "%{dist}" | egrep -q '^\.el(5|6)$' && echo 1 || echo 0) %if %{require_db4} BuildRequires: db4-devel %else BuildRequires: libdb-devel %endif %description ipv6calc is a small utility which formats and calculates IPv4/IPv6 addresses in different ways. Install this package, if you want to retrieve information about a particular IPv4/IPv6/MAC address (-i ADDRESS) or make life easier in adding entries to reverse IPv6 DNS zones (e.g. -a 2001:db8:1234::1/48). In addition many format and type conversions are supported, see online help and/or given URL for more. Also this package contains additional programs - ipv6loganon: anonymize Apache web server logs - ipv6logconv: special Apache web server log converter (examples included for use with analog) - ipv6logstats: create statistics from list of IPv4/IPv6 addresses (examples included for use with gnu-plot) Support for following databases - IP2Location %{?enable_ip2location:ENABLED}%{?!enable_ip2location:DISABLED} default directory for downloaded db files: %{ip2location_db} (requires also external library on system) - GeoIP %{?enable_geoip:ENABLED}%{?!enable_geoip:DISABLED} default directory for downloaded db files: %{geoip_db} (requires also external library on system) - db-ip.com %{?enable_dbip:ENABLED}%{?!enable_dbip:DISABLED} (once generated database files are found on system) default directory for generated db files: %{dbip_db} - External %{?enable_external:ENABLED}%{?!enable_external:DISABLED} default directory for generated db files: %{external_db} Built %{?enable_shared:WITH}%{?!enable_shared:WITHOUT} shared-library Available rpmbuild rebuild options: --without ip2location --without geoip --without dbip --without external --without shared %package ipv6calcweb Summary: IP address information web utility Group: Applications/Internet Requires: ipv6calc httpd Requires: perl(URI) perl(Digest::SHA1) perl(Digest::MD5) perl(HTML::Entities) BuildRequires: perl(URI) perl(Digest::SHA1) perl(Digest::MD5) perl(HTML::Entities) %description ipv6calcweb ipv6calcweb contains a CGI program and a configuration file for displaying information of IP addresses on a web page using ipv6calc. Check/addjust %{_sysconfdir}/httpd/conf.d/ipv6calcweb.conf Default restricts access to localhost %prep %setup -q %configure \ %{?enable_ip2location:--enable-ip2location} \ %{?enable_ip2location:--with-ip2location-dynamic --with-ip2location-headers-fallback} \ --with-ip2location-db=%{ip2location_db} \ %{?enable_geoip:--enable-geoip} \ %{?enable_geoip:--with-geoip-dynamic --with-geoip-headers-fallback} \ --with-geoip-db=%{geoip_db} \ %{?enable_dbip:--enable-dbip} \ --with-dbip-db=%{dbip_db} \ %{?enable_external:--enable-external} \ --with-external-db=%{external_db} \ %{?enable_shared:--enable-shared} %build make clean make %{?_smp_mflags} COPTS="$RPM_OPT_FLAGS" %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} ## Install examples and helper files install -d -p %{buildroot}%{_docdir}/%{name}-%{version}/ # tools install -d %{buildroot}%{_datadir}/%{name}/tools cat < - 0.98.0-8 - new release 0.98.0 * Wed Feb 18 2015 Peter Bieringer - add support for conditional builds * Sat Oct 25 2014 Peter Bieringer - add /usr/share/ipv6calc/db directory * Sat Oct 11 2014 Peter Bieringer - add additional requirements for ipv6calc-ipv6calcweb - enable db-ip.com & external database support * Thu Aug 28 2014 Jitka Plesnikova - 0.97.4-7 - Perl 5.20 rebuild * Tue Aug 19 2014 Peter Bieringer - 0.97.4-7 - new package for EPEL6/EPEL7 * Sun Aug 17 2014 Peter Bieringer - add missing requirement for ipv6calc-ipv6calcweb * Sat Aug 16 2014 Fedora Release Engineering - 0.97.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Aug 02 2014 Peter Bieringer - 0.97.4-5 - new release 0.97.4 * Thu Jul 31 2014 Peter Bieringer - include also tools into main package - remove UTF-8 conversion, fixed in upstream now * Tue Jul 29 2014 Peter Bieringer - introduce subpackage ipv6calcweb (align with upstream) - enable fallback option for IP2Location - build with dynamic load of GeoIP and IP2Location support * Thu Jul 17 2014 Peter Bieringer - replace DESTDIR=$RPM_BUILD_ROOT with macro, define BuildRoot * Wed Jul 16 2014 Peter Bieringer - change requirements from krb5-libs/devel to openssl(-libs)/-devel * Tue Jul 15 2014 Peter Bieringer - 0.97.3-3 - align package description with upstream * Mon Jul 14 2014 Peter Bieringer - 0.97.3-2 - new release 0.97.3 * Sat Jun 07 2014 Fedora Release Engineering - 0.97.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon May 26 2014 Marcela Mašláňová - 0.97.2-2 - new release 0.97.2 * Wed May 21 2014 Marcela Mašláňová - 0.97.1-1 - new release 0.97.1 * Mon May 19 2014 Marcela Mašláňová - 0.97.0-1 - new release 0.97 * Fri Feb 14 2014 Marcela Mašláňová - 0.96.0-1 - new release 0.96 * Mon Dec 2 2013 Marcela Mašláňová - 0.95.0-1 - new release #1033041 * Sat Aug 03 2013 Fedora Release Engineering - 0.94.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sun Jul 21 2013 Petr Pisar - 0.94.1-2 - Perl 5.18 rebuild * Tue May 14 2013 Marcela Mašláňová - 0.94.1-1 - update to 0.94.1 * Mon Feb 18 2013 Marcela Mašláňová - 0.93.1-6 - fix days in changelog * Thu Feb 14 2013 Fedora Release Engineering - 0.93.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Aug 2 2012 Marcela Mašláňová - 0.93.1-4 - 804317 on ppc64 tests never fully worked, conditionalized * Thu Jul 19 2012 Fedora Release Engineering - 0.93.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Jun 11 2012 Petr Pisar - 0.93.1-2 - Perl 5.16 rebuild * Mon Feb 6 2012 Marcela Mašláňová - 0.93.1-1 - minor update * Sun Jan 22 2012 Marcela Mašláňová - 0.93.0-1 - update to 0.93 release - add Perl requirements for cgi * Fri Jan 13 2012 Fedora Release Engineering - 0.92.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Oct 10 2011 Marcela Mašláňová - 0.92.0-1 - update to 0.92 release * Fri May 27 2011 Marcela Mašláňová - 0.90.0-1 - update to 0.90 release * Fri May 6 2011 Marcela Mašláňová - 0.82.1-1 - update to 0.82.1 release * Wed Mar 30 2011 Marcela Mašláňová - 0.82.0-1 - update to 0.82.0 release * Mon Feb 28 2011 Marcela Mašláňová - 0.81.0-1 - update to the new upstream version * Wed Feb 09 2011 Fedora Release Engineering - 0.80.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Jan 4 2011 Marcela Mašláňová - 0.80.0-1 - update to the latest version * Mon Mar 01 2010 Marcela Mašláňová - 0.73.0-1 - update to the latest version * Fri Jul 24 2009 Fedora Release Engineering - 0.72.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Jun 01 2009 Marcela Mašláňová - 0.72.1-1 - update to the latest version - change installonly to standart DESTDIR * Wed Feb 25 2009 Fedora Release Engineering - 0.71.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Jul 31 2008 Tom "spot" Callaway - 0.71.0-3 - fix license tag * Tue Feb 19 2008 Fedora Release Engineering - 0.71.0-2 - Autorebuild for GCC 4.3 * Mon Aug 20 2007 Marcela Maslanova - 0.71.0-1 - new version from upstream * Tue Feb 27 2007 Marcela Maslanova - 0.61-2 - package merge review - rhbz#225910 * Fri Sep 01 2006 Marcela Maslanova - 0.61-1 - upgrade to 0.61-1 - from upstream * Wed Jul 12 2006 Jesse Keating - 0.60.1-1.1 - rebuild * Tue Jul 11 2006 Radek Vokál 0.60.1-1 - upgrade to 0.60.1 - fix for big endian archs * Sun Jun 25 2006 Radek Vokál 0.60.0-1 - upgrade to 0.60.0 * Wed Feb 22 2006 Radek Vokál 0.51-1 - upgrade to 0.51 * Fri Feb 10 2006 Jesse Keating - 0.50-1.2.1 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 0.50-1.2 - rebuilt for new gcc4.1 snapshot and glibc changes * Fri Dec 09 2005 Jesse Keating - rebuilt * Fri Sep 16 2005 Radek Vokal 0.50-1 - due to several other off-by-one bugs upgrade to 0.50 * Thu Sep 15 2005 Radek Vokal 0.49-2 - smash stack fix in ipv6calc_copy - increase len of tmpstr * Thu Sep 15 2005 Radek Vokal 0.49-1 - upgrade to 0.49 * Tue Apr 19 2005 Radek Vokal 0.48-5 - using CVS tarball, patch clean-up * Sun Apr 17 2005 Robert Scheck - lots of spec file cleanups (#155164) * Wed Apr 13 2005 Florian La Roche - remove empty scripts * Fri Mar 04 2005 Radek Vokal 0.48-3 - gcc4 rebuilt * Mon Nov 1 2004 Radek Vokal 0.48-2 - spec file cleanup - md5 patch for makefile * Sat Oct 30 2004 Peter Bieringer - remove openssl(-devel) from requirements, no longer needed * Tue Oct 26 2004 Radek Vokal 0.47-4 - spec file cleanup, typo patch * Mon Oct 18 2004 Radek Vokal 0.47-3 - initial build for Fedora Core * Sat Nov 22 2003 Peter Bieringer - adjustments * Fri Nov 21 2003 Peter Bieringer - add ipv6logstats - add man pages - add configure options * Mon Nov 11 2002 Peter Bieringer - change IPv6 address in description * Sat Apr 20 2002 Peter Bieringer - Change URL * Sun Apr 07 2002 Peter Bieringer - add more analog example files * Fri Apr 05 2002 Peter Bieringer - remove BuildRequires extension, not needed for normal build * Sun Mar 24 2002 Peter Bieringer - extend BuildRequires for perl /usr/bin/aggregate wget * Mon Mar 18 2002 Peter Bieringer - add ipv6calcweb.cgi * Sat Mar 16 2002 Peter Bieringer - add ipv6logconv, analog examples * Mon Mar 11 2002 Peter Bieringer - Add perl to buildrequire and openssl to require * Mon Jan 21 2002 Peter Bieringer - Add LICENSE + COPYING file * Thu Dec 27 2001 Peter Bieringer - Add comment header - Add call to configure on build * Tue Dec 18 2001 Peter Bieringer - Replace hardwired version number with autoconf/configure variable * Wed Apr 25 2001 Peter Bieringer - Fix permissions of doc files * Thu Mar 15 2001 Peter Bieringer - Add doc directory also to files to make sure the directory will be removed on update or deinstall - change install permissions for entries in doc directory - change "make install" to "make installonly" (make test should be only executed once" * Wed Mar 14 2001 Peter Bieringer - Add "make clean" and "make test" on build * Tue Mar 13 2001 Peter Bieringer - add CREDITS and TODO for install * Sat Mar 10 2001 Peter Bieringer - enable "URL" * Sun Mar 04 2001 Peter Bieringer - change install location to /bin * Tue Feb 27 2001 Peter Bieringer - review for new release, now named "ipv6calc" - review install section for RedHat 7.0.91 * Sun Feb 25 2001 Peter Bieringer - initial build