|
@@ -1,6 +1,6 @@
|
|
|
Name: libmaxminddb
|
|
|
Summary: C library for the MaxMind DB file format
|
|
|
-Version: 1.5.0
|
|
|
+Version: 1.6.0
|
|
|
Release: 1%{?_dist_release}
|
|
|
Group: system
|
|
|
Vendor: Project Vine
|
|
@@ -35,43 +35,34 @@ and the mmdblookup utility which allows IP address lookup in a MaxMind DB file.
|
|
|
|
|
|
%prep
|
|
|
%setup -q
|
|
|
+sed -i -e '/AM_CFLAGS=/d' common.mk
|
|
|
+sed -i -e '/CFLAGS=/d' configure.ac
|
|
|
+autoreconf -ivf
|
|
|
|
|
|
|
|
|
%build
|
|
|
%configure --disable-static
|
|
|
-# remove embeded RPATH
|
|
|
-sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
-sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
-# link only requried libraries
|
|
|
-sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
-%check
|
|
|
-# tests are linked dynamically, preload the library as we have removed RPATH
|
|
|
-LD_PRELOAD=%{buildroot}%{_libdir}/libmaxminddb.so make check
|
|
|
-
|
|
|
-
|
|
|
%install
|
|
|
%make_install
|
|
|
rm -fv %{buildroot}%{_libdir}/*.la
|
|
|
|
|
|
|
|
|
-%post
|
|
|
-/sbin/ldconfig
|
|
|
-
|
|
|
-%postun
|
|
|
-/sbin/ldconfig
|
|
|
+%check
|
|
|
+# tests are linked dynamically, preload the library as we have removed RPATH
|
|
|
+LD_PRELOAD=%{buildroot}%{_libdir}/libmaxminddb.so make check
|
|
|
|
|
|
|
|
|
%files
|
|
|
%license LICENSE
|
|
|
+%{_bindir}/mmdblookup
|
|
|
%{_libdir}/libmaxminddb.so.*
|
|
|
|
|
|
%files devel
|
|
|
%license NOTICE
|
|
|
%doc Changes.md
|
|
|
-%{_bindir}/mmdblookup
|
|
|
%{_includedir}/maxminddb.h
|
|
|
%{_includedir}/maxminddb_config.h
|
|
|
%{_libdir}/libmaxminddb.so
|
|
@@ -81,6 +72,10 @@ rm -fv %{buildroot}%{_libdir}/*.la
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Thu Nov 11 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.6.0-1
|
|
|
+- new upstream release.
|
|
|
+- dropped ldconfig scriptlets.
|
|
|
+
|
|
|
* Tue Jan 19 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.5.0-1
|
|
|
- new upstream release.
|
|
|
|