File geolite2legacy.spec of Package geolite2legacy.14479

# spec file for package geolite2legacy
# Copyright (c) 2019 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

Name:           geolite2legacy
Version:        0+git20200101.56d8a4f
Release:        0
Summary:        GeoLite2 (CSV) to Legacy format converter
License:        MIT
Group:          Productivity/Networking/Other
Source:         %{name}-%{version}.tar.xz
Patch0:         0001-Automatically-determine-output-file-name.patch
Patch1:         0001-Use-realpath-to-determine-fips-file-location.patch
Requires:       python3-ipaddr
BuildArch:      noarch

Script to convert the GeoLite2 CSV database to Legacy GeoIP
format. Note that GeoIP is deprecated by upstream and should be
replaced by GeoLite2.

sed -i -e 's/env python3\?/python3/' *.py


mkdir -p %{buildroot}%{_datadir}/geolite2legacy %{buildroot}%{_bindir}
install -m 755 %{buildroot}%{_datadir}/geolite2legacy
install -m 644 geoname2fips.csv %{buildroot}%{_datadir}/geolite2legacy
ln -s %{_datadir}/geolite2legacy/ %{buildroot}%{_bindir}/geolite2legacy



openSUSE Build Service is sponsored by