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:
parent
cd96881749
commit
54d2bf2709
@ -17,16 +17,17 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: libmaxminddb
|
Name: libmaxminddb
|
||||||
|
%define lname libmaxminddb0
|
||||||
Version: 1.0.3
|
Version: 1.0.3
|
||||||
Release: 0
|
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
|
Source: https://github.com/maxmind/libmaxminddb/releases/download/%{version}/%{name}-%{version}.tar.gz
|
||||||
Url: http://dev.maxmind.com/
|
Url: http://dev.maxmind.com/
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Summary: C library for the MaxMind DB file format
|
|
||||||
License: Apache-2.0
|
|
||||||
Group: System/Libraries
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The libmaxminddb library provides a C library for reading MaxMind DB
|
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
|
addresses while allowing for great flexibility in the type of
|
||||||
data associated with an address.
|
data associated with an address.
|
||||||
|
|
||||||
|
%package -n %lname
|
||||||
%package -n %{name}0
|
|
||||||
Summary: C library for the MaxMind DB file format
|
Summary: C library for the MaxMind DB file format
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n %{name}0
|
%description -n %lname
|
||||||
The libmaxminddb library provides a C library for reading MaxMind DB
|
The libmaxminddb library provides a C library for reading MaxMind DB
|
||||||
files, including the GeoIP2 databases from MaxMind. This is a
|
files, including the GeoIP2 databases from MaxMind. This is a
|
||||||
custom binary format designed to facilitate fast lookups of IP
|
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.
|
This package contains the mmdblookup binary.
|
||||||
|
|
||||||
%package devel
|
%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++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{name}0 = %{version}-%{release}
|
Requires: %lname = %version
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The libmaxminddb library provides a C library for reading MaxMind DB
|
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
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure\
|
%configure --disable-static
|
||||||
--disable-static
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=%{buildroot} install
|
%make_install
|
||||||
rm %{buildroot}%{_libdir}/*.la
|
rm %buildroot/%_libdir/*.la
|
||||||
%fdupes -s %{buildroot}%{_mandir}
|
%fdupes -s %buildroot/%_prefix
|
||||||
|
|
||||||
%post -n %{name}0
|
%post -n %lname -p /sbin/ldconfig
|
||||||
/sbin/ldconfig
|
%postun -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n %{name}0
|
%files -n %lname
|
||||||
/sbin/ldconfig
|
|
||||||
|
|
||||||
%files -n %{name}0
|
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc Changes.md LICENSE NOTICE README.md doc/release.md doc/libmaxminddb.md
|
%doc LICENSE
|
||||||
%{_libdir}/%{name}.so.*
|
%{_libdir}/%{name}.so.*
|
||||||
%{_mandir}/man3/%{name}.*
|
|
||||||
%{_mandir}/man3/MMDB_*.*
|
|
||||||
|
|
||||||
%files -n mmdblookup
|
%files -n mmdblookup
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -108,7 +102,10 @@ rm %{buildroot}%{_libdir}/*.la
|
|||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%doc Changes.md NOTICE README.md doc/release.md doc/libmaxminddb.md
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_libdir}/%{name}.so
|
%{_libdir}/%{name}.so
|
||||||
|
%{_mandir}/man3/%{name}.*
|
||||||
|
%{_mandir}/man3/MMDB_*.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user