Package libmongoc: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | %def_disable tests Name: libmongoc Version: 1.14.0 Release: alt1.1 Summary: Client library written in C for MongoDB Group: System/Libraries License: ASL 2.0 and ISC and MIT and zlib Url: https://github.com/mongodb/mongo-c-driver #vsc-git https://github.com/mongodb/mongo-c-driver.git Source: %name-%version.tar BuildRequires: gcc-c++ BuildRequires: cmake >= 3.1 BuildRequires: python-module-sphinx BuildRequires: libssl-devel libsasl2-devel libicu-devel BuildRequires: zlib-devel libsnappy-devel %{?_enable_tests:BuildRequires: mongodb-server openssl} %description mongo-c-driver is a client library written in C for MongoDB. %package devel Group: Development/C Summary: C Driver for MongoDB Requires: %name = %EVR %description devel This package contains the header files and development libraries for mongo-c-driver %package -n libbson Group: System/Libraries License: ASLv2.0 Summary: A BSON utility library %description -n libbson 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 libbson-devel Summary: Development files of libbson Group: Development/C Requires: libbson = %EVR %description -n libbson-devel 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. This package contains development files of libbson. %prep %setup %build %cmake \ %_cmake_skip_rpath \ -DBUILD_VERSION=%version \ -DENABLE_STATIC:STRING=OFF \ -DENABLE_BSON:STRING=ON \ -DENABLE_MONGOC:BOOL=ON \ -DENABLE_SHM_COUNTERS:BOOL=ON \ -DENABLE_SSL:STRING=OPENSSL \ -DENABLE_SASL:STRING=CYRUS \ -DENABLE_ICU:STRING=ON \ -DENABLE_AUTOMATIC_INIT_AND_CLEANUP:BOOL=OFF \ -DENABLE_CRYPTO_SYSTEM_PROFILE:BOOL=ON \ -DENABLE_MAN_PAGES:BOOL=ON \ %{?_disable_tests:-DENABLE_TESTS:BOOL=OFF} \ -DENABLE_EXAMPLES:BOOL=OFF %cmake_build %install %cmake_install %check %if_enabled tests # Run a server mkdir dbtest mongod \ --journal \ --unixSocketPrefix /tmp \ --logpath $PWD/server.log \ --pidfilepath $PWD/server.pid \ --dbpath $PWD/dbtest \ --fork # Run the test suite ret=0 export MONGOC_TEST_OFFLINE=on #export MONGOC_TEST_SKIP_SLOW=on make check || ret=1 # Cleanup [ -s server.pid ] && kill $(cat server.pid) exit $ret %endif %files %doc COPYING NEWS *.md *.rst %_bindir/* %_libdir/libmongoc*.so.* %files devel %_includedir/libmongoc* %_libdir/libmongoc*.so %_pkgconfigdir/libmongoc*.pc %_man3dir/mongoc* %_libdir/cmake/libmongoc* %files -n libbson %doc NEWS README.rst %_libdir/libbson*.so.* %files -n libbson-devel %_includedir/libbson* %_libdir/libbson*.so %_pkgconfigdir/libbson*.pc %_man3dir/bson* %_libdir/cmake/libbson* %changelog * Tue Jun 01 2021 Arseny Maslennikov <arseny@altlinux.org> 1.14.0-alt1.1 - NMU: spec: adapt to new cmake macros. * Sat Feb 23 2019 Alexey Shabalin <shaba@altlinux.org> 1.14.0-alt1 - 1.14.0 * Tue Sep 04 2018 Alexey Shabalin <shaba@altlinux.org> 1.12.0-alt1%ubt - 1.12.0 * Fri Mar 09 2018 Alexey Shabalin <shaba@altlinux.ru> 1.9.3-alt1%ubt - 1.9.3 * Tue Feb 13 2018 Alexey Shabalin <shaba@altlinux.ru> 1.9.2-alt1%ubt - 1.9.2 * Fri Dec 01 2017 Alexey Shabalin <shaba@altlinux.ru> 1.8.2-alt1%ubt - 1.8.2 * Wed Mar 11 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.1.2-alt1.git20150310 - Version 1.1.2 * Thu Sep 11 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0.0-alt1.git20140826 - Version 1.0.0 * Fri Mar 08 2013 Slava Dubrovskiy <dubrsl@altlinux.org> 0.7.1-alt1 - Build fot ALT |