commit 90b7c49e034512ae15f2b77c3ea6525b367f0f9a Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:56:54 2019 -0400 Package init diff --git a/libmaxminddb-1.2.0.tar.gz b/libmaxminddb-1.2.0.tar.gz new file mode 100644 index 0000000..bc842f0 Binary files /dev/null and b/libmaxminddb-1.2.0.tar.gz differ diff --git a/libmaxminddb.spec b/libmaxminddb.spec new file mode 100644 index 0000000..ab514c2 --- /dev/null +++ b/libmaxminddb.spec @@ -0,0 +1,73 @@ +Name: libmaxminddb +Version: 1.2.0 +Release: 7 +Summary: C library for working with MaxMind DB files +License: ASL 2.0 and BSD +URL: https://github.com/maxmind/libmaxminddb +Source0: https://github.com/maxmind/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: gcc perl-interpreter + +%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. + +The MaxMind DB format is an open format. The spec is available at http://maxmind.github.io/MaxMind-DB/. +This spec is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License. + +See http://dev.maxmind.com/ for more details about MaxMind's GeoIP2 products. + +%package devel +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: pkgconfig +Summary: Development header files for libmaxminddb + +%description devel +libmaxminddb header files and mmdblookup utility for ip address lookup in maxmind DB file. + +%package help +Requires: %{name}%{?_isa} = %{version}-%{release} +Summary: man information and changelog document for user + +%description help +the help package include man information and changelog document for user. + +%prep +%autosetup + +%build +%configure --disable-static +%disable_rpath +sed -i -e 's/ -shared / -Wl,--as-needed\0/g' libtool + +%make_build + +%check +LD_PRELOAD=%{buildroot}%{_libdir}/libmaxminddb.so make check + +%install +%make_install +%ldconfig_scriptlets + +%files +%license LICENSE NOTICE +%{_libdir}/libmaxminddb.so.* +%exclude %{_libdir}/*.la + +%files devel +%{_bindir}/mmdblookup +%{_includedir}/maxminddb.h +%{_includedir}/maxminddb_config.h +%{_libdir}/libmaxminddb.so +%{_libdir}/pkgconfig/libmaxminddb.pc + +%files help +%doc Changes.md +%{_mandir}/man1/* +%{_mandir}/man3/* + +%changelog +* Tue Sep 3 2019 openEuler Buildteam - 1.2.0-7 +- Package init