Name: libmaxminddb Summary: C library for the MaxMind DB file format Version: 1.1.1 Release: 1%{?dist} License: ASL 2.0 Group: Development/Libraries URL: http://maxmind.github.io/libmaxminddb Source0: https://github.com/maxmind/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz %description The package contains libmaxminddb library. %package devel Requires: %{name}%{?_isa} = %{version}-%{release} Summary: Development header files for libmaxminddb %description devel The package contains development header files for the libmaxminddb library. %package utils Requires: %{name}%{?_isa} = %{version}-%{release} Summary: Utilities distributed with libmaxminddb %description utils The package contains mmdblookup utility which allows IP address lookup in a MaxMind DB file. %prep %setup -q %build %configure --disable-static 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 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 -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc LICENSE %{_libdir}/libmaxminddb.so.* %files devel %doc Changes.md %{_includedir}/maxminddb.h %{_includedir}/maxminddb_config.h %{_libdir}/libmaxminddb.so %{_mandir}/man3/* %files utils %{_bindir}/mmdblookup %{_mandir}/man1/* %changelog * Tue Sep 01 2015 Jan Vcelak 1.1.1-1 - initial version of the package