SHA256
1
0
forked from pool/libmaxminddb

Accepting request 280893 from home:jengelh:branches:devel:libraries:c_c++

manpages don't belong into the shlib package, but -devel.
rpm group classification improvements.
fdupes over the entire tree.

OBS-URL: https://build.opensuse.org/request/show/280893
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmaxminddb?expand=0&rev=2
This commit is contained in:
Jan Engelhardt 2015-01-12 11:58:38 +00:00 committed by Git OBS Bridge
parent cd96881749
commit 54d2bf2709

View File

@ -17,16 +17,17 @@
Name: libmaxminddb
%define lname libmaxminddb0
Version: 1.0.3
Release: 0
Summary: C library for the MaxMind DB file format
License: Apache-2.0
Group: Development/Libraries/C and C++
Source: https://github.com/maxmind/libmaxminddb/releases/download/%{version}/%{name}-%{version}.tar.gz
Url: http://dev.maxmind.com/
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: C library for the MaxMind DB file format
License: Apache-2.0
Group: System/Libraries
%description
The libmaxminddb library provides a C library for reading MaxMind DB
@ -35,12 +36,11 @@ 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 -n %{name}0
%package -n %lname
Summary: C library for the MaxMind DB file format
Group: System/Libraries
%description -n %{name}0
%description -n %lname
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
@ -61,9 +61,9 @@ data associated with an address.
This package contains the mmdblookup binary.
%package devel
Summary: C library for the MaxMind DB file format - development files
Summary: Development files for the MaxMind DB file format library
Group: Development/Libraries/C and C++
Requires: %{name}0 = %{version}-%{release}
Requires: %lname = %version
%description devel
The libmaxminddb library provides a C library for reading MaxMind DB
@ -78,27 +78,21 @@ This package contains the development files for %{name}.
%setup -q
%build
%configure\
--disable-static
%configure --disable-static
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
rm %{buildroot}%{_libdir}/*.la
%fdupes -s %{buildroot}%{_mandir}
%make_install
rm %buildroot/%_libdir/*.la
%fdupes -s %buildroot/%_prefix
%post -n %{name}0
/sbin/ldconfig
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%postun -n %{name}0
/sbin/ldconfig
%files -n %{name}0
%files -n %lname
%defattr(-,root,root)
%doc Changes.md LICENSE NOTICE README.md doc/release.md doc/libmaxminddb.md
%doc LICENSE
%{_libdir}/%{name}.so.*
%{_mandir}/man3/%{name}.*
%{_mandir}/man3/MMDB_*.*
%files -n mmdblookup
%defattr(-,root,root)
@ -108,7 +102,10 @@ rm %{buildroot}%{_libdir}/*.la
%files devel
%defattr(-,root,root)
%doc Changes.md NOTICE README.md doc/release.md doc/libmaxminddb.md
%{_includedir}/*
%{_libdir}/%{name}.so
%{_mandir}/man3/%{name}.*
%{_mandir}/man3/MMDB_*.*
%changelog