103 lines
2.7 KiB
RPMSpec
103 lines
2.7 KiB
RPMSpec
Name: lmdb
|
|
Epoch: 1
|
|
Version: 0.9.23
|
|
Release: 1mamba
|
|
Summary: Lightning Memory-Mapped Database from Symas
|
|
Group: Applications/Databases
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://symas.com/lmdb/
|
|
## GITSOURCE https://github.com/LMDB/lmdb.git LMDB_0.9.23
|
|
Source: https://github.com/LMDB/lmdb.git/LMDB_%{version}/lmdb-%{version}.tar.bz2
|
|
Source1: lmdb.pc
|
|
License: OpenLDAP Public License
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
## AUTOBUILDREQ-END
|
|
Provides: liblmdb-tools
|
|
Obsoletes: liblmdb-tools
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
Lightning Memory-Mapped Database from Symas.
|
|
|
|
%package -n lib%{name}
|
|
Group: System/Libraries
|
|
Summary: Shared libraries for %{name}
|
|
|
|
%description -n lib%{name}
|
|
This package contains shared libraries for %{name}.
|
|
|
|
%package -n lib%{name}-devel
|
|
Group: Development/Libraries
|
|
Summary: Development files for %{name}
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
Requires: pkg-config
|
|
|
|
%description -n lib%{name}-devel
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%make -C libraries/liblmdb \
|
|
SOLIBS="-Wl,-soname,liblmdb.so.0" \
|
|
SOEXT=".so.0" \
|
|
prefix=%{_prefix} \
|
|
libdir=%{_libdir}
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall -C libraries/liblmdb \
|
|
SOLIBS="-Wl,-soname,liblmdb.so.0" \
|
|
SOEXT=".so.0" \
|
|
prefix=%{_prefix} \
|
|
libdir=%{_libdir}
|
|
|
|
ln -s liblmdb.so.0 %{buildroot}%{_libdir}/liblmdb.so
|
|
|
|
|
|
install -D -m0755 %{SOURCE1} %{buildroot}%{_libdir}/pkgconfig/lmdb.pc
|
|
|
|
sed -i "s|@LIBDIR@|%{_libdir}|" %{buildroot}%{_libdir}/pkgconfig/lmdb.pc
|
|
sed -i "s|@PKGVER@|%{version}|" %{buildroot}%{_libdir}/pkgconfig/lmdb.pc
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%post -n lib%{name} -p /sbin/ldconfig
|
|
%postun -n lib%{name} -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/mdb_copy
|
|
%{_bindir}/mdb_dump
|
|
%{_bindir}/mdb_load
|
|
%{_bindir}/mdb_stat
|
|
%{_mandir}/man1/mdb_copy.1*
|
|
%{_mandir}/man1/mdb_dump.1*
|
|
%{_mandir}/man1/mdb_load.1*
|
|
%{_mandir}/man1/mdb_stat.1*
|
|
|
|
%files -n lib%{name}
|
|
%defattr(-,root,root)
|
|
%{_libdir}/liblmdb.so.*
|
|
%doc libraries/liblmdb/LICENSE libraries/liblmdb/COPYRIGHT
|
|
|
|
%files -n lib%{name}-devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/lmdb.h
|
|
%{_libdir}/liblmdb.a
|
|
%{_libdir}/liblmdb.so
|
|
%{_libdir}/pkgconfig/lmdb.pc
|
|
|
|
%changelog
|
|
* Mon Jul 08 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.23-1mamba
|
|
- package created using the webbuild interface
|