Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:gbvalor
mongo-c-driver
mongo-c-driver.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mongo-c-driver.spec of Package mongo-c-driver
# # spec file for package mongo-c-driver # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define DriverName mongo-c-driver %define MongocName libmongoc-1_0-0 %define DriverVersion 1.26.2 %define BsonName libbson-1_0-0 %define BsonVersion %{DriverVersion} %bcond_with manpages Name: %{MongocName} Version: %{DriverVersion} Release: 0 Summary: MongoDB C Driver License: Apache-2.0 Group: Development/Libraries/C and C++ URL: https://github.com/mongodb/mongo-c-driver Source0: https://github.com/mongodb/mongo-c-driver/archive/%{DriverVersion}.tar.gz#/%{DriverName}-%{DriverVersion}.tar.gz BuildRequires: cmake BuildRequires: fdupes BuildRequires: libtool BuildRequires: openssl-devel BuildRequires: pkgconfig BuildRequires: libicu-devel BuildRequires: snappy-devel BuildRequires: pkgconfig(libsasl2) BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(libzstd) %description mongo-c-driver is a library for building high-performance applications that communicate with the MongoDB NoSQL database in the C language. It can also be used to write fast client implementations in languages such as Python, Ruby, or Perl. %package devel Summary: Development files for mongo-c-driver Group: Development/Libraries/C and C++ Requires: %{MongocName} = %{DriverVersion} %description devel The %{MongocName}-devel package contains libraries and header files for developing applications that use %{DriverName}. %package -n %{BsonName} Version: %{BsonVersion} Summary: A library for parsing and generating BSON documents Group: System/Libraries %description -n %{BsonName} Libbson is a library providing useful routines related to building, parsing, and iterating BSON documents. It is a useful base for those wanting to write high-performance C extensions to higher level languages such as Python, Ruby, or Perl. %package -n %{BsonName}-devel Version: %{BsonVersion} Summary: Development files for libbson Group: Development/Libraries/C and C++ Requires: %{BsonName} = %{BsonVersion} %description -n %{BsonName}-devel The %{BsonName}-devel package contains libraries and header files for developing applications that use %{BsonName}. %prep %setup -q -n %{DriverName}-%{DriverVersion} %build %cmake \ -DBUILD_VERSION=%{version} \ -DENABLE_MONGOC=ON \ -DENABLE_BSON=ON \ -DENABLE_STATIC=OFF \ -DENABLE_TESTS=OFF \ -DENABLE_ZLIB=SYSTEM \ -DCMAKE_SKIP_RPATH:BOOL=ON \ -Wno-dev %make_jobs %install %cmake_install rm %{buildroot}/%{_datadir}/mongo-c-driver/{uninstall.sh,COPYING,NEWS,README.rst,THIRD_PARTY_NOTICES} %fdupes %{buildroot}/%{_libdir}/cmake %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post -n %{BsonName} -p /sbin/ldconfig %postun -n %{BsonName} -p /sbin/ldconfig %files %license COPYING %doc NEWS README.rst %{_libdir}/libmongoc-1.0.so.* %files -n %{BsonName} %{_libdir}/libbson-1.0.so.* %files devel %dir %{_includedir}/libmongoc-1.0 %dir %{_includedir}/libmongoc-1.0/mongoc %{_includedir}/libmongoc-1.0/mongoc/*.h %{_includedir}/libmongoc-1.0/mongoc.h %{_libdir}/libmongoc-1.0.so %{_libdir}/pkgconfig/libmongoc-1.0.pc %{_libdir}/pkgconfig/libmongoc-ssl-1.0.pc %dir %{_libdir}/cmake %{_libdir}/cmake/libmongoc-1.0 %{_libdir}/cmake/bson-1.0 %{_libdir}/cmake/mongoc-1.0 %{_bindir}/mongoc-stat %if 0%{with manpages} %{_mandir}/man3/mongoc_* %endif %files -n %{BsonName}-devel %dir %{_includedir}/libbson-1.0 %dir %{_includedir}/libbson-1.0/bson %{_includedir}/libbson-1.0/bson/*.h %{_includedir}/libbson-1.0/bson.h %{_libdir}/libbson-1.0.so %{_libdir}/pkgconfig/libbson-1.0.pc %dir %{_libdir}/cmake %{_libdir}/cmake/libbson-1.0 %if 0%{with manpages} %{_mandir}/man3/bson_* %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor