[packages/geoipupdate] Up to 4.9.0

glen glen at pld-linux.org
Mon Sep 5 17:06:50 CEST 2022


commit 76688100c1d8dbb2fa7e5a189c789cbbb2eac022
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Mon Sep 5 17:54:44 2022 +0300

    Up to 4.9.0

 geoipupdate.spec | 31 +++++++++++++++++--------------
 1 file changed, 17 insertions(+), 14 deletions(-)
---
diff --git a/geoipupdate.spec b/geoipupdate.spec
index 25784c4..03c4eda 100644
--- a/geoipupdate.spec
+++ b/geoipupdate.spec
@@ -1,15 +1,16 @@
 Summary:	GeoIP Update - automatically update GeoIP2 or GeoIP Legacy binary databases
 Summary(pl.UTF-8):	GeoIP Update - automatyczna aktualizacja binarnych baz danych GeoIP2 lub GeoIP Legacy
 Name:		geoipupdate
-Version:	2.2.2
-Release:	2
-License:	GPL v2
-Group:		Libraries
+Version:	4.9.0
+Release:	1
+License:	Apache v2.0
+Group:		Applications/Networking
 #Source0Download: https://github.com/maxmind/geoipupdate/releases
-Source0:	https://github.com/maxmind/geoipupdate/releases/download/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	06284bd7bcb298d078d794eb630dae55
+Source0:	https://github.com/maxmind/geoipupdate/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	edd364519222e99b1009aec7d7edfb40
 URL:		https://github.com/maxmind/geoipupdate
 BuildRequires:	curl-devel
+BuildRequires:	golang >= 1.3.1
 BuildRequires:	zlib-devel
 Provides:	GeoIP-update = %{version}-%{release}
 Obsoletes:	GeoIP-update <= 2.2.2-2
@@ -30,23 +31,25 @@ Linuksie i innych systemach uniksowych.
 %setup -q
 
 %build
-%configure
-%{__make}
+%{__make} \
+	DATADIR=/usr/share/GeoIP \
+	CONFFILE=%{_sysconfdir}/GeoIP.conf \
+	VERSION="%{version} (PLD Linux)"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
-%{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT
-
-%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/GeoIP.conf.default
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir},%{_mandir}/man{1,5}}
+install -p build/%{name} $RPM_BUILD_ROOT%{_bindir}
+cp -p build/GeoIP.conf $RPM_BUILD_ROOT%{_sysconfdir}/GeoIP.conf
+cp -p build/geoipupdate.1 $RPM_BUILD_ROOT%{_mandir}/man1
+cp -p build/GeoIP.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog.md README.md
+%doc README.md CHANGELOG.md
 %attr(755,root,root) %{_bindir}/geoipupdate
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/GeoIP.conf
 %{_mandir}/man1/geoipupdate.1*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/geoipupdate.git/commitdiff/76688100c1d8dbb2fa7e5a189c789cbbb2eac022



More information about the pld-cvs-commit mailing list