public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Paul Howarth <paul@city-fan.org>
To: git-commits@fedoraproject.org
Subject: [rpms/geoipupdate] epel9: Revise obsoletes/provides
Date: Wed, 25 Nov 2026 19:39:51 GMT	[thread overview]
Message-ID: <179563559121.1.8917263471265480627.rpms-geoipupdate-ca6c41f85ee1@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/geoipupdate
            Branch : epel9
            Commit : ca6c41f85ee1dc68af91b32e1aec66340fd927ba
            Author : Paul Howarth <paul@city-fan.org>
            Date   : 2015-02-06T19:56:47+00:00
            Stats  : +57/-21 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/geoipupdate/c/ca6c41f85ee1dc68af91b32e1aec66340fd927ba?branch=epel9

            Log:
            Revise obsoletes/provides

- Revise obsoletes/provides
- Add cron6 subpackage, equivalent to old GeoIP-update6 package

---
diff --git a/geoipupdate.spec b/geoipupdate.spec
index 4a97776..c8fd442 100644
--- a/geoipupdate.spec
+++ b/geoipupdate.spec
@@ -5,59 +5,70 @@
 
 Name:		geoipupdate
 Version:	2.1.0
-Release:	2%{?dist}
+Release:	3%{?dist}
 Summary:	Update GeoIP2 and GeoIP Legacy binary databases from MaxMind
-
 Group:		Development/Tools
 License:	GPLv2
 URL:		http://dev.maxmind.com/geoip/geoipupdate/
 Source0:	http://github.com/maxmind/geoipupdate/releases/download/v%{version}/geoipupdate-%{version}.tar.gz
 Source1:	geoipupdate.cron
-
-BuildRequires:	zlib-devel, libcurl-devel
+Source2:	geoipupdate6.cron
+BuildRequires:	libcurl-devel
+BuildRequires:	zlib-devel
 
 %description
 The GeoIP Update program performs automatic updates of GeoIP2 and GeoIP
 Legacy binary databases.
 
-
 %package cron
 Summary:	Cron job to do weekly updates of GeoIP databases
 Group:		Development/Tools
 %if %{noarch_subpkgs}
 BuildArch:	noarch
 %endif
-Requires:	%{name} = %{version}-%{release}, crontabs
-Provides:	GeoIP-cron = 1.6.0
-Obsoletes:	GeoIP-cron < 1.6.0
+Requires:	%{name} = %{version}-%{release}
+Requires:	crontabs
+Obsoletes:	GeoIP-update < 1.6.0
+Provides:	GeoIP-update = 1.6.0
 
 %description cron
 Cron job for weekly updates to GeoIP2 and GeoIP Legacy database from MaxMind.
 
+%package cron6
+Summary:	Cron job to do weekly updates of GeoIP IPv6 databases
+Group:		Development/Tools
+%if %{noarch_subpkgs}
+BuildArch:	noarch
+%endif
+Requires:	%{name} = %{version}-%{release}
+Requires:	crontabs
+Requires:	wget
+Obsoletes:	GeoIP-update6 < 1.6.0
+Provides:	GeoIP-update6 = 1.6.0
+
+%description cron6
+Cron job for weekly updates to GeoIP2 and GeoIP IPv6 Legacy database from
+MaxMind.
+
 %prep
 %setup -q
 
-
 %build
 %configure --disable-static --disable-dependency-tracking
 make %{?_smp_mflags}
 
-
 %install
-rm -rf %{buildroot}
-%make_install
-
-%{__mkdir_p} %{buildroot}%{_docdir}/%{name}
+make install DESTDIR=%{buildroot}
 
 # fix up the config file to have geoipupdate fetch the free products by default
-%{__sed} -i \
+sed -i \
 	-e 's/YOUR_USER_ID_HERE$/999999/' \
 	-e 's/YOUR_LICENSE_KEY_HERE$/000000000000/' \
 	-e 's/^\(ProductIds\) .*$/\1 506 517 533/' \
 	%{buildroot}%{_sysconfdir}/GeoIP.conf
 
 install -D -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/cron.weekly/geoipupdate
-
+install -D -m 755 %{SOURCE2} %{buildroot}%{_sysconfdir}/cron.weekly/geoipupdate6
 
 # LICENSE file is being omitted from release tarball. As soon as this issue:
 #   https://github.com/maxmind/geoipupdate/issues/25
@@ -70,17 +81,22 @@ install -D -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/cron.weekly/geoipupdate
 %config(noreplace) %{_sysconfdir}/GeoIP.conf
 %exclude %{_sysconfdir}/GeoIP.conf.default
 %{_bindir}/geoipupdate
-%{_mandir}/man1/geoipupdate.1.*
-%{_mandir}/man5/GeoIP.conf.5.*
+%{_mandir}/man1/geoipupdate.1*
+%{_mandir}/man5/GeoIP.conf.5*
 
 %files cron
 %config(noreplace) %{_sysconfdir}/cron.weekly/geoipupdate
 
+%files cron6
+%config(noreplace) %{_sysconfdir}/cron.weekly/geoipupdate6
 
 %changelog
+* Fri Feb  6 2015 Paul Howarth <paul@city-fan.org> - 2.1.0-3
+- Add cron6 subpackage, equivalent to old GeoIP-update6 package
+- Revise obsoletes/provides
+
 * Sun Feb  1 2015 Philip A. Prindeville <philipp@fedoraproject.org> - 2.1.0-2
-- Remove architecture-specific dependency in noarch subpackage.
+- Remove architecture-specific dependency in noarch subpackage
 
 * Mon Jan 26 2015 Philip A. Prindeville <philipp@fedoraproject.org> - 2.1.0-1
-- Initial review package (generated by rpmdev-newspec).
-
+- Initial review package (generated by rpmdev-newspec)

diff --git a/geoipupdate6.cron b/geoipupdate6.cron
new file mode 100644
index 0000000..4273968
--- /dev/null
+++ b/geoipupdate6.cron
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+# Update IPv6 free databases
+
+# It would be much better if we could use geoipupdate for this as it only
+# downloads the data if it has changed and checks it after download
+
+DB_LOC=http://geolite.maxmind.com/download/geoip/database
+ASDB_LOC=http://download.maxmind.com/download/geoip/database/asnum
+
+cd /usr/share/GeoIP
+
+# IPv6 Country database
+wget --quiet $DB_LOC/GeoIPv6.dat.gz && mv -f GeoIPv6.dat GeoIPv6.dat.old && gunzip GeoIPv6.dat
+
+# IPv6 City database
+wget --quiet $DB_LOC/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz && mv -f GeoLiteCityv6.dat GeoLiteCityv6.dat.old && gunzip GeoLiteCityv6.dat
+
+# IPv6 AS Number database
+wget --quiet $ASDB_LOC/GeoIPASNumv6.dat.gz && mv -f GeoIPASNumv6.dat GeoIPASNumv6.dat.old && gunzip GeoIPASNumv6.dat

                 reply	other threads:[~2026-11-25 19:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179563559121.1.8917263471265480627.rpms-geoipupdate-ca6c41f85ee1@fedoraproject.org \
    --to=paul@city-fan.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox