libmaxminddb/libmaxminddb.spec

90 lines
2.5 KiB
RPMSpec
Raw Permalink Normal View History

Name: libmaxminddb
Version: 1.6.0
Release: 1mamba
Summary: A C library for reading MaxMind DB files, including the GeoIP2 databases from MaxMind
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/maxmind/libmaxminddb
Source: https://github.com/maxmind/libmaxminddb.git/%{version}/libmaxminddb-%{version}.tar.bz2
License: Apache License 2.0
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
%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.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%package tools
Group: Applications/Databases
Summary: Utility applications for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description tools
This package contains utility applications for %{name}.
%debug_package
%prep
%setup -q
autoreconf -f -i
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libmaxminddb.so.*
%doc LICENSE
%files devel
%defattr(-,root,root)
%{_includedir}/maxminddb.h
%{_includedir}/maxminddb_config.h
%{_libdir}/libmaxminddb.a
%{_libdir}/libmaxminddb.la
%{_libdir}/libmaxminddb.so
%{_libdir}/pkgconfig/libmaxminddb.pc
%{_mandir}/man3/libmaxminddb.3*
%doc README.dev.md README.md
%files tools
%defattr(-,root,root)
%{_bindir}/mmdblookup
%{_mandir}/man1/mmdblookup.1*
%changelog
* Fri Apr 30 2021 Automatic Build System <autodist@mambasoft.it> 1.6.0-1mamba
- automatic version update by autodist
* Fri Feb 19 2021 Automatic Build System <autodist@mambasoft.it> 1.5.2-1mamba
- automatic version update by autodist
* Fri Jan 08 2021 Automatic Build System <autodist@mambasoft.it> 1.5.0-1mamba
- automatic version update by autodist
* Mon Dec 14 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.3-1mamba
- package created using the webbuild interface