pghmcfc pushed to GeoIP (el5). "Add %check, update databases (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Apr 14 07:40:04 UTC 2015


>From d70253ef2c5213a4541c6f7470287f3ed8943d1c Mon Sep 17 00:00:00 2001
From: Paul Howarth <paul at city-fan.org>
Date: Tue, 25 Feb 2014 14:03:08 +0000
Subject: Add %check, update databases

- Add %check, so we can run tests by building using --with tests
- Update databases from upstream

diff --git a/GeoIP.spec b/GeoIP.spec
index 9526f42..c994cb2 100644
--- a/GeoIP.spec
+++ b/GeoIP.spec
@@ -1,9 +1,12 @@
+# Tests require network access so fail in koji; build using --with tests to run them yourself
+%bcond_with tests
+
 # Noarch subpackages available from Fedora 10, RHEL 6
 %global noarch_subpkgs 0%{?fedora} > 9 || 0%{?rhel} > 5
 
 Name:		GeoIP
 Version:	1.5.1
-Release:	3%{?dist}
+Release:	4%{?dist}
 Summary:	Library for country/city/organization to IP address or hostname mapping
 Group:		Development/Libraries
 License:	LGPLv2+ and GPLv2+ and CC-BY-SA
@@ -158,6 +161,10 @@ ln -sf GeoIPASNumv6.dat %{buildroot}%{_datadir}/GeoIP/GeoLiteASNumv6.dat
 install -D -m 755 geoipupdate.cron %{buildroot}%{_sysconfdir}/cron.weekly/geoipupdate
 install -D -m 755 geoipupdate6.cron %{buildroot}%{_sysconfdir}/cron.weekly/geoipupdate6
 
+%check
+# Tests require network access so fail in koji; build using --with tests to run them yourself
+%{?with_tests:LD_LIBRARY_PATH=%{buildroot}%{_libdir} make check}
+
 %clean
 rm -rf %{buildroot}
 
@@ -215,6 +222,10 @@ rm -rf %{buildroot}
 %{_libdir}/libGeoIPUpdate.so
 
 %changelog
+* Tue Feb 25 2014 Paul Howarth <paul at city-fan.org> - 1.5.1-4
+- Add %%check, so we can run tests by building using --with tests
+- Update databases from upstream
+
 * Fri Aug 02 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.5.1-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
diff --git a/sources b/sources
index 09d0af2..6c22e78 100644
--- a/sources
+++ b/sources
@@ -1,7 +1,7 @@
 36b82f3558e6e2ebdd11a56c5db21dbc  GeoIP-1.5.1.tar.gz
-36bc18ee8b6a42c1ce189a403dcac5cc  GeoIP.dat.gz
-2fa7bf79ea07cd53275d3003c32ce072  GeoIPASNum.dat.gz
+a551a8f2044c3e6e364c1aa82fe183b3  GeoIP.dat.gz
+07e7c99c305c0607cf71f68019aa5a59  GeoIPASNum.dat.gz
 55af75660db5db2f94effcbdc1b7fed9  GeoIPASNumv6.dat.gz
-2768c932480d6c068a951f7f76fd014f  GeoIPv6.dat.gz
-d90484c4eddf964be29ce4222513b48d  GeoLiteCity.dat.gz
-94e89cb4ef255375c5ad89bc33e008a7  GeoLiteCityv6.dat.gz
+c635ff5a0ec3afb83b7c291b17323174  GeoIPv6.dat.gz
+5a595f80ce459527a73a2aa61aa5221f  GeoLiteCity.dat.gz
+61dfc4c65e6433a2402b25e43347594e  GeoLiteCityv6.dat.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/GeoIP.git/commit/?h=el5&id=d70253ef2c5213a4541c6f7470287f3ed8943d1c


More information about the scm-commits mailing list