From 69a98ebfe5f7af76104a30fd41b91250877be16d Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 06:27:10 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.9.23-1mamba;Mon Jul 08 2019] --- README.md | 2 ++ lmdb.pc | 10 ++++++ lmdb.spec | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 114 insertions(+) create mode 100644 lmdb.pc create mode 100644 lmdb.spec diff --git a/README.md b/README.md index 008cbfc..fb55d65 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # lmdb +Lightning Memory-Mapped Database from Symas. + diff --git a/lmdb.pc b/lmdb.pc new file mode 100644 index 0000000..ad23552 --- /dev/null +++ b/lmdb.pc @@ -0,0 +1,10 @@ +prefix=/usr +libdir=@LIBDIR@ +includedir=${prefix}/include + +Name: liblmdb +Description: Lightning Memory-Mapped Database +URL: https://symas.com/products/lightning-memory-mapped-database/ +Version: @PKGVER@ +Libs: -L${libdir} -llmdb +Cflags: -I${includedir} diff --git a/lmdb.spec b/lmdb.spec new file mode 100644 index 0000000..39c5e59 --- /dev/null +++ b/lmdb.spec @@ -0,0 +1,102 @@ +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 +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 0.9.23-1mamba +- package created using the webbuild interface