forked from pool/libmaxminddb
Accepting request 280827 from home:posophe:branches:games:tools
Future geoip API replacement Would be fine to have it when project will move to it OBS-URL: https://build.opensuse.org/request/show/280827 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmaxminddb?expand=0&rev=1
This commit is contained in:
commit
cd96881749
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
libmaxminddb-1.0.3.tar.gz
Normal file
3
libmaxminddb-1.0.3.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:88aaa388de3f927870f91cedc68520c5f83a0b9da423246063db3b8966cea29a
|
||||||
|
size 494377
|
5
libmaxminddb.changes
Normal file
5
libmaxminddb.changes
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Dec 21 15:13:41 UTC 2014 - p.drouand@gmail.com
|
||||||
|
|
||||||
|
- Initial release (version 1.0.3)
|
||||||
|
|
114
libmaxminddb.spec
Normal file
114
libmaxminddb.spec
Normal file
@ -0,0 +1,114 @@
|
|||||||
|
#
|
||||||
|
# spec file for package libmaxminddb
|
||||||
|
#
|
||||||
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# 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 http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: libmaxminddb
|
||||||
|
Version: 1.0.3
|
||||||
|
Release: 0
|
||||||
|
Source: https://github.com/maxmind/libmaxminddb/releases/download/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
Url: http://dev.maxmind.com/
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
Summary: C library for the MaxMind DB file format
|
||||||
|
License: Apache-2.0
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%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.
|
||||||
|
|
||||||
|
|
||||||
|
%package -n %{name}0
|
||||||
|
Summary: C library for the MaxMind DB file format
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n %{name}0
|
||||||
|
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
|
||||||
|
Group: Productivity/Networking/Other
|
||||||
|
|
||||||
|
%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
|
||||||
|
Summary: C library for the MaxMind DB file format - development files
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: %{name}0 = %{version}-%{release}
|
||||||
|
|
||||||
|
%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
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure\
|
||||||
|
--disable-static
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
make DESTDIR=%{buildroot} install
|
||||||
|
rm %{buildroot}%{_libdir}/*.la
|
||||||
|
%fdupes -s %{buildroot}%{_mandir}
|
||||||
|
|
||||||
|
%post -n %{name}0
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n %{name}0
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
|
%files -n %{name}0
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc Changes.md LICENSE NOTICE README.md doc/release.md doc/libmaxminddb.md
|
||||||
|
%{_libdir}/%{name}.so.*
|
||||||
|
%{_mandir}/man3/%{name}.*
|
||||||
|
%{_mandir}/man3/MMDB_*.*
|
||||||
|
|
||||||
|
%files -n mmdblookup
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc doc/mmdblookup.md
|
||||||
|
%{_bindir}/mmdblookup
|
||||||
|
%{_mandir}/man1/mmdblookup.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_includedir}/*
|
||||||
|
%{_libdir}/%{name}.so
|
||||||
|
|
||||||
|
%changelog
|
Loading…
x
Reference in New Issue
Block a user