diff --git a/libmaxminddb-1.5.2.tar.gz b/libmaxminddb-1.5.2.tar.gz deleted file mode 100644 index b9ca260..0000000 Binary files a/libmaxminddb-1.5.2.tar.gz and /dev/null differ diff --git a/libmaxminddb-1.7.1.tar.gz b/libmaxminddb-1.7.1.tar.gz new file mode 100644 index 0000000..de1706f Binary files /dev/null and b/libmaxminddb-1.7.1.tar.gz differ diff --git a/libmaxminddb.spec b/libmaxminddb.spec index e274d76..48ad094 100644 --- a/libmaxminddb.spec +++ b/libmaxminddb.spec @@ -1,12 +1,14 @@ Name: libmaxminddb -Version: 1.5.2 +Version: 1.7.1 Release: 1 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 +Source1: maxminddb_config.h -BuildRequires: gcc perl-interpreter +BuildRequires: gcc perl-interpreter make libtool automake autoconf gcc-c++ +BuildRequires: perl-File-Temp perl-Test-Simple >= 0.88 perl-Test-Output %description The libmaxminddb library provides a C library for reading MaxMind DB files, @@ -35,7 +37,8 @@ Summary: man information and changelog document for user the help package include man information and changelog document for user. %prep -%autosetup +%setup -q +autoreconf --force --install %build %configure --disable-static @@ -64,11 +67,14 @@ LD_PRELOAD=%{buildroot}%{_libdir}/libmaxminddb.so make check %{_libdir}/pkgconfig/libmaxminddb.pc %files help -%doc Changes.md +%doc Changes.md %{_mandir}/man1/* %{_mandir}/man3/* %changelog +* Fri Feb 17 2023 li-long315 - 1.7.1-1 +- Upgrade to 1.7.1 + * Mon Jun 27 2022 dillon chen - 1.5.2-1 - update to 1.5.2 diff --git a/maxminddb_config.h b/maxminddb_config.h new file mode 100644 index 0000000..94c74d8 --- /dev/null +++ b/maxminddb_config.h @@ -0,0 +1,9 @@ +#include + +#if __WORDSIZE == 32 +#include +#elif __WORDSIZE == 64 +#include +#else +#error "Unknown word size" +#endif