Blame SPECS/libmaxminddb.spec

095dd2
Name:           libmaxminddb
095dd2
Summary:        C library for the MaxMind DB file format
095dd2
Version:        1.2.0
095dd2
Release:        6%{?dist}
095dd2
URL:            https://maxmind.github.io/libmaxminddb
095dd2
Source0:        https://github.com/maxmind/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
095dd2
095dd2
# original libmaxminddb code is Apache Licence 2.0
095dd2
# src/maxminddb-compat-util.h is BSD
095dd2
License:        ASL 2.0 and BSD
095dd2
095dd2
BuildRequires:  perl-interpreter
095dd2
Recommends:		geolite2-city, geolite2-country
095dd2
095dd2
%description
095dd2
The package contains libmaxminddb library.
095dd2
095dd2
%package devel
095dd2
Requires:       %{name}%{?_isa} = %{version}-%{release}
095dd2
Requires:       pkgconfig
095dd2
Summary:        Development header files for libmaxminddb
095dd2
095dd2
%description devel
095dd2
The package contains development header files for the libmaxminddb library
095dd2
and the mmdblookup utility which allows IP address lookup in a MaxMind DB file.
095dd2
095dd2
%prep
095dd2
%setup -q
095dd2
095dd2
%build
095dd2
%configure --disable-static
095dd2
# remove embeded RPATH
095dd2
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
095dd2
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
095dd2
# link only requried libraries
095dd2
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
095dd2
make %{?_smp_mflags}
095dd2
095dd2
%check
095dd2
# tests are linked dynamically, preload the library as we have removed RPATH
095dd2
LD_PRELOAD=%{buildroot}%{_libdir}/libmaxminddb.so make check
095dd2
095dd2
%install
095dd2
%make_install
095dd2
rm -fv %{buildroot}%{_libdir}/*.la
095dd2
095dd2
%post -p /sbin/ldconfig
095dd2
095dd2
%postun -p /sbin/ldconfig
095dd2
095dd2
%files
095dd2
%license LICENSE
095dd2
%{_libdir}/libmaxminddb.so.*
095dd2
095dd2
%files devel
095dd2
%license NOTICE
095dd2
%doc Changes.md
095dd2
%{_bindir}/mmdblookup
095dd2
%{_includedir}/maxminddb.h
095dd2
%{_includedir}/maxminddb_config.h
095dd2
%{_libdir}/libmaxminddb.so
095dd2
%{_libdir}/pkgconfig/libmaxminddb.pc
095dd2
%{_mandir}/man1/*
095dd2
%{_mandir}/man3/*
095dd2
095dd2
%changelog
095dd2
* Thu Aug 02 2018 Michal Ruprich <mruprich@redhat.com> - 1.2.0-6
095dd2
- Adding libmaxminddb as a new package to RHEL-8 (rhbz#1607927)
095dd2
- Adding Recommends tag for geolite2 databases
095dd2
095dd2
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-5
095dd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
095dd2
095dd2
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-4
095dd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
095dd2
095dd2
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-3
095dd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
095dd2
095dd2
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
095dd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
095dd2
095dd2
* Sun Mar 27 2016 Jan Vcelak <jvcelak@fedoraproject.org> 1.2.0-1
095dd2
- rebase to new version
095dd2
095dd2
* Mon Mar 21 2016 Jan Vcelak <jvcelak@fedoraproject.org> 1.1.5-1
095dd2
- rebase to new version
095dd2
095dd2
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-6
095dd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
095dd2
095dd2
* Tue Sep 15 2015 Jan Vcelak <jvcelak@fedoraproject.org> 1.1.1-5
095dd2
- add pkg-config file from the upcoming upstream version
095dd2
095dd2
* Mon Sep 14 2015 Jan Vcelak <jvcelak@fedoraproject.org> 1.1.1-4
095dd2
- remove utils subpackage and place mmdblookup into devel subpackage
095dd2
- remove Group from the spec file
095dd2
- move NOTICE and Changes.md to devel subpackage
095dd2
095dd2
* Thu Sep 03 2015 Jan Vcelak <jvcelak@fedoraproject.org> 1.1.1-3
095dd2
- updated package licence
095dd2
- added --as-needed linker flag
095dd2
095dd2
* Tue Sep 01 2015 Jan Vcelak <jvcelak@fedoraproject.org> 1.1.1-1
095dd2
- initial version of the package