2015-01-12 12:54:42 +01:00
|
|
|
#
|
|
|
|
# spec file for package libmaxminddb
|
|
|
|
#
|
2024-01-26 10:40:09 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2023-11-09 10:20:06 +01:00
|
|
|
# Copyright (c) 2023 Andreas Stieger <Andreas.Stieger@gmx.de>
|
2015-01-12 12:54:42 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-11-03 19:13:21 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-01-12 12:54:42 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2015-01-12 12:58:38 +01:00
|
|
|
%define lname libmaxminddb0
|
2018-05-18 11:01:09 +02:00
|
|
|
Name: libmaxminddb
|
2024-01-26 10:40:09 +01:00
|
|
|
Version: 1.9.1
|
2015-01-12 12:54:42 +01:00
|
|
|
Release: 0
|
2015-01-12 12:58:38 +01:00
|
|
|
Summary: C library for the MaxMind DB file format
|
|
|
|
License: Apache-2.0
|
2018-05-18 11:01:09 +02:00
|
|
|
URL: https://dev.maxmind.com/
|
2015-01-12 12:54:42 +01:00
|
|
|
Source: https://github.com/maxmind/libmaxminddb/releases/download/%{version}/%{name}-%{version}.tar.gz
|
2019-11-21 15:12:48 +01:00
|
|
|
Source99: baselibs.conf
|
2015-01-12 12:54:42 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
2018-05-18 11:01:09 +02:00
|
|
|
BuildRequires: pkgconfig
|
2015-01-12 12:54:42 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The libmaxminddb library provides a C library for reading MaxMind DB
|
|
|
|
files, including the GeoIP2 databases from MaxMind. This is a
|
|
|
|
custom binary format designed to facilitate fast lookups of IP
|
|
|
|
addresses while allowing for great flexibility in the type of
|
|
|
|
data associated with an address.
|
|
|
|
|
2018-05-18 11:01:09 +02:00
|
|
|
%package -n %{lname}
|
2015-01-12 12:54:42 +01:00
|
|
|
Summary: C library for the MaxMind DB file format
|
|
|
|
|
2018-05-18 11:01:09 +02:00
|
|
|
%description -n %{lname}
|
2015-01-12 12:54:42 +01:00
|
|
|
The libmaxminddb library provides a C library for reading MaxMind DB
|
|
|
|
files, including the GeoIP2 databases from MaxMind. This is a
|
|
|
|
custom binary format designed to facilitate fast lookups of IP
|
|
|
|
addresses while allowing for great flexibility in the type of
|
|
|
|
data associated with an address.
|
|
|
|
|
|
|
|
%package -n mmdblookup
|
|
|
|
Summary: An utility to look up an IP address in a MaxMind DB file
|
|
|
|
|
|
|
|
%description -n mmdblookup
|
|
|
|
The libmaxminddb library provides a C library for reading MaxMind DB
|
|
|
|
files, including the GeoIP2 databases from MaxMind. This is a
|
|
|
|
custom binary format designed to facilitate fast lookups of IP
|
|
|
|
addresses while allowing for great flexibility in the type of
|
|
|
|
data associated with an address.
|
|
|
|
|
|
|
|
This package contains the mmdblookup binary.
|
|
|
|
|
|
|
|
%package devel
|
2015-01-12 12:58:38 +01:00
|
|
|
Summary: Development files for the MaxMind DB file format library
|
2018-05-18 11:01:09 +02:00
|
|
|
Requires: %{lname} = %{version}
|
2015-01-12 12:54:42 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The libmaxminddb library provides a C library for reading MaxMind DB
|
|
|
|
files, including the GeoIP2 databases from MaxMind. This is a
|
|
|
|
custom binary format designed to facilitate fast lookups of IP
|
|
|
|
addresses while allowing for great flexibility in the type of
|
|
|
|
data associated with an address.
|
|
|
|
|
|
|
|
This package contains the development files for %{name}.
|
|
|
|
|
|
|
|
%prep
|
2023-11-09 10:20:06 +01:00
|
|
|
%autosetup -p1
|
2015-01-12 12:54:42 +01:00
|
|
|
|
|
|
|
%build
|
2015-01-12 12:58:38 +01:00
|
|
|
%configure --disable-static
|
2021-05-01 20:31:18 +02:00
|
|
|
%make_build
|
2015-01-12 12:54:42 +01:00
|
|
|
|
2018-05-18 11:01:09 +02:00
|
|
|
%check
|
2021-05-01 20:31:18 +02:00
|
|
|
%make_build check
|
2018-05-18 11:01:09 +02:00
|
|
|
|
2015-01-12 12:54:42 +01:00
|
|
|
%install
|
2015-01-12 12:58:38 +01:00
|
|
|
%make_install
|
2018-05-18 11:01:09 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%fdupes -s %{buildroot}/%{_prefix}
|
2015-01-12 12:54:42 +01:00
|
|
|
|
2023-11-09 10:20:06 +01:00
|
|
|
%ldconfig_scriptlets -n %{lname}
|
2015-01-12 12:54:42 +01:00
|
|
|
|
2018-05-18 11:01:09 +02:00
|
|
|
%files -n %{lname}
|
|
|
|
%license LICENSE
|
2015-01-12 12:54:42 +01:00
|
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
|
|
|
|
%files -n mmdblookup
|
2021-05-01 20:31:18 +02:00
|
|
|
%license LICENSE
|
2015-01-12 12:54:42 +01:00
|
|
|
%doc doc/mmdblookup.md
|
|
|
|
%{_bindir}/mmdblookup
|
|
|
|
%{_mandir}/man1/mmdblookup.*
|
|
|
|
|
|
|
|
%files devel
|
2016-04-12 16:01:56 +02:00
|
|
|
%doc Changes.md NOTICE README.md doc/mmdblookup.md doc/libmaxminddb.md
|
2018-05-18 11:01:09 +02:00
|
|
|
%license LICENSE
|
2015-01-12 12:54:42 +01:00
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/%{name}.so
|
2015-11-18 16:15:19 +01:00
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
2019-11-03 19:13:21 +01:00
|
|
|
%{_mandir}/man3/*
|
2015-01-12 12:54:42 +01:00
|
|
|
|
|
|
|
%changelog
|