Sync from SUSE:SLFO:Main geolite2legacy revision 486c2434523deb1d7e1b6a3e7355c97a

This commit is contained in:
Adrian Schröter 2024-10-01 08:37:39 +02:00
commit d70fb5cf12
6 changed files with 136 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

14
_service Normal file
View File

@ -0,0 +1,14 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="version">0</param>
<param name="versionformat">0+git%cd.%h</param>
<param name="url">https://github.com/sherpya/geolite2legacy.git</param>
<param name="scm">git</param>
<param name="changesgenerate">enable</param>
</service>
<service name="recompress" mode="disabled">
<param name="compression">xz</param>
<param name="file">*.tar</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/sherpya/geolite2legacy.git</param>
<param name="changesrevision">05733c435f0faa3e375bfa1c386695216e1b9e6a</param></service></servicedata>

BIN
geolite2legacy-0+git20210326.05733c4.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

40
geolite2legacy.changes Normal file
View File

@ -0,0 +1,40 @@
-------------------------------------------------------------------
Mon Aug 22 14:29:24 UTC 2022 - valentin.lefebvre@suse.com
- Update to version 0+git20210326.05733c4:
* cleanup
* conditional ipaddr only for python < 3.3
* Use correct docker image name on README
* fix ASN
* add python3 compatibility using built-in module ipaddress
* use custom comment in country file
* geolite2legacy: pep8
* geoname2fips: added tipical filenames to help
* geoname2fips: some country names changed after 20200505
* geoname2fips: fixed Vlaams-Brabant spelling
* Dockerfile to run the converter inside Docker container
* Use realpath to determine fips file location
* Automatically determine output file name
- remove patches fixed in upstream
* 0001-Automatically-determine-output-file-name.patch
* 0001-Use-realpath-to-determine-fips-file-location.patch
-------------------------------------------------------------------
Mon Mar 16 13:36:11 UTC 2020 - pgajdos@suse.com
- require python3-ipaddr
-------------------------------------------------------------------
Fri Jan 03 09:38:56 UTC 2020 - lnussel@suse.de
- Update to version 0+git20200101.56d8a4f:
* silence pycharm warning
* add version in comment using dirname inside zip
* use geoname2fips.csv in script dir if not specified
* remap country code from AS to AP (GH-6)
* correct city v6 database version
-------------------------------------------------------------------
Mon Dec 30 12:48:37 UTC 2019 - Ludwig Nussel <lnussel@suse.de>
- initial package

52
geolite2legacy.spec Normal file
View File

@ -0,0 +1,52 @@
#
# spec file for package geolite2legacy
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: geolite2legacy
Version: 0+git20210326.05733c4
Release: 0
Summary: GeoLite2 (CSV) to Legacy format converter
License: MIT
URL: https://github.com/sherpya/geolite2legacy
Source: %{name}-%{version}.tar.xz
Requires: python3-ipaddr
BuildArch: noarch
%description
Script to convert the GeoLite2 CSV database to Legacy GeoIP
format. Note that GeoIP is deprecated by upstream and should be
replaced by GeoLite2.
%prep
%autosetup
sed -i -e 's/env python3\?/python3/' *.py
%build
%install
mkdir -p %{buildroot}%{_datadir}/geolite2legacy %{buildroot}%{_bindir}
install -m 755 geolite2legacy.py geoname2fips.py %{buildroot}%{_datadir}/geolite2legacy
install -m 644 geoname2fips.csv pygeoip_const.py %{buildroot}%{_datadir}/geolite2legacy
ln -s %{_datadir}/geolite2legacy/geolite2legacy.py %{buildroot}%{_bindir}/geolite2legacy
%files
%license LICENSE
%doc README.md
%{_bindir}/geolite2legacy
%{_datadir}/geolite2legacy
%changelog