From 84ede7e0e151b749198a0758f60df7011fff6c31 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 28 Jan 2024 15:29:07 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.25.4-1mamba;Sun Jan 28 2024] --- README.md | 2 + mongo-c-driver.spec | 102 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 104 insertions(+) create mode 100644 mongo-c-driver.spec diff --git a/README.md b/README.md index 0c99438..cd7916b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # mongo-c-driver +The Official MongoDB driver for C language. + diff --git a/mongo-c-driver.spec b/mongo-c-driver.spec new file mode 100644 index 0000000..7aad8b9 --- /dev/null +++ b/mongo-c-driver.spec @@ -0,0 +1,102 @@ +Name: mongo-c-driver +Version: 1.25.4 +Release: 1mamba +Summary: The Official MongoDB driver for C language +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://www.mongodb.com/docs/drivers/c/ +Source: https://github.com/mongodb/mongo-c-driver.git/%{version}/mongo-c-driver-%{version}.tar.bz2 +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libopenssl-devel +BuildRequires: libsasl2-devel +BuildRequires: libsnappy-devel +BuildRequires: libzstd-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +The Official MongoDB driver for C language. + +%package -n lib%{name} +Group: System/Libraries +Summary: The Official MongoDB driver for C language. + +%description -n lib%{name} +The Official MongoDB driver for C language. +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} + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q + +%build +%cmake \ + -DBUILD_VERSION="%{version}" \ + -DENABLE_STATIC=OFF \ + -DENABLE_TESTS=OFF + +%cmake_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%cmake_install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/mongoc-stat + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libbson-1.0.so.* +%{_libdir}/libmongoc-1.0.so.* +%doc COPYING + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/libbson-1.0 +%{_includedir}/libbson-1.0/* +%dir %{_includedir}/libmongoc-1.0 +%{_includedir}/libmongoc-1.0/* +%{_libdir}/libbson-1.0.so +%{_libdir}/libmongoc-1.0.so +%dir %{_libdir}/cmake/bson-1.0 +%{_libdir}/cmake/bson-1.0/bson*.cmake +%dir %{_libdir}/cmake/libbson-1.0 +%{_libdir}/cmake/libbson-1.0/libbson*.cmake +%dir %{_libdir}/cmake/libmongoc-1.0 +%{_libdir}/cmake/libmongoc-1.0/libmongoc*.cmake +%dir %{_libdir}/cmake/mongoc-1.0 +%dir %{_libdir}/cmake/mongoc-1.0/3rdParty +%{_libdir}/cmake/mongoc-1.0/3rdParty/FindSASL2.cmake +%{_libdir}/cmake/mongoc-1.0/mongoc*.cmake +%{_libdir}/pkgconfig/libbson-1.0.pc +%{_libdir}/pkgconfig/libmongoc-1.0.pc +%{_libdir}/pkgconfig/libmongoc-ssl-1.0.pc +%dir %{_datadir}/mongo-c-driver +%{_datadir}/mongo-c-driver/* +%doc NEWS README.rst + +%changelog +* Sun Jan 28 2024 Silvan Calarco 1.25.4-1mamba +- package created using the webbuild interface