pghmcfc pushed to GeoIP (el5). "Move crontab to its own subpackage."

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Apr 14 07:38:33 UTC 2015


>From 60c47c451ffde56630cf0e1900ae006873bf82d6 Mon Sep 17 00:00:00 2001
From: Philip Prindeville <philipp at redfish-solutions.com>
Date: Wed, 10 Apr 2013 16:43:24 -0600
Subject: Move crontab to its own subpackage.


diff --git a/GeoIP.spec b/GeoIP.spec
index 6f7f407..4b40f27 100644
--- a/GeoIP.spec
+++ b/GeoIP.spec
@@ -24,6 +24,16 @@ accurate as of February 2009. This database simply contains IP blocks as keys,
 and countries as values. This database should be more complete and accurate
 than using reverse DNS lookups.
 
+%package cron
+Summary:	Crontab entry to facilitate automatic updates of databases
+Group:		Applications/Databases
+Requires:	crontabs
+Provides:	geoip-cron = %{version}-%{release}
+Obsoletes:	geoip-cron < %{version}-%{release}
+
+%description cron
+Crontab entry to provide weekly updates of the GeoIP free databases.
+
 %package devel
 Summary:	Development headers and libraries for GeoIP
 Group:		Development/Libraries
@@ -94,7 +104,6 @@ geoipupdate
 %doc AUTHORS COPYING ChangeLog README TODO LICENSE* fetch-*
 %config(noreplace) %{_sysconfdir}/GeoIP.conf.default
 %config(noreplace) %{_sysconfdir}/GeoIP.conf
-%{_sysconfdir}/cron.weekly/geoipupdate
 %{_bindir}/geoiplookup6
 %{_bindir}/geoiplookup
 %{_datadir}/GeoIP/
@@ -108,6 +117,9 @@ geoipupdate
 %{_libdir}/libGeoIPUpdate.so.0.*
 %{_mandir}/man1/geoipupdate.1*
 
+%files cron
+%{_sysconfdir}/cron.weekly/geoipupdate
+
 %files devel
 # LGPLv2+
 %{_includedir}/GeoIP.h
@@ -119,8 +131,13 @@ geoipupdate
 %{_libdir}/libGeoIPUpdate.so
 
 %changelog
-* Mon Apr 02 2013 Philip Prindeville <philipp at fedoraproject.org> - 1.5.0-1
+* Wed Apr 10 2013 Philip Prindeville <philipp at fedoraproject.org> - 1.5.0-1
 - Version bump to 1.5.0
+- Change config as per Boris' instructions to use 'lite' databases which are
+  regularly updated.
+- Add pkgconfig (.pc) file into devel subpackage
+- Add cron support for refreshing the lite databases and make a separate
+  subpackage.
 
 * Sun Mar 24 2013 Paul Howarth <paul at city-fan.org> - 1.4.8-6
 - Fix config.guess and config.sub to add aarch64 support (#925403)
-- 
cgit v0.10.2


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


More information about the scm-commits mailing list