Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
mongodb-erlang
mongodb-erlang.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mongodb-erlang.spec of Package mongodb-erlang
%def_disable check %define bname mongodb Name: %bname-erlang Version: 3.3.1 Release: 1 Summary: MongoDB driver for Erlang License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/comtihon/%name Source: %name-%version.tar.xz #Patch: %name-%version-git.patch BuildArch: noarch Provides: erlang-%bname = %version-%release Requires: erlang-bson >= 0.2.2 BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar erl_interface BuildRequires: bson-erlang-devel >= 0.2.2 %{?_enable_check:BuildRequires: epmd erlang-common_test mongodb} %description MongoDB driver for Erlang. MongoDB (http://www.mongodb.org) is a document-oriented database management system. A driver is a client library that provides an API for connecting to MongoDB servers, performing queries and updates on those servers, and performing administrative tasks like creating indexes and viewing statistics. This version of the driver supports connecting to a single server or replica set, and pooling of both types of connections. Both connection types and pools are thread-safe, i.e. multiple processes can use the same connection/pool simultaneously without interfering with each other. This driver is implemented as an Erlang application named *mongodb*. It depends on another Erlang library application named bson (http://github.com/mongodb/bson-erlang), which defines the document type and its standard binary representation. You need both of these. Below we describe the mongodb application; you should also see the bson application to understand the document type. %package devel Summary: MongoDB driver for Erlang headers Group: Development/Tools/Other Requires: %name = %version-%release %description devel MongoDB driver for Erlang. MongoDB (http://www.mongodb.org) is a document-oriented database management system. A driver is a client library that provides an API for connecting to MongoDB servers, performing queries and updates on those servers, and performing administrative tasks like creating indexes and viewing statistics. This version of the driver supports connecting to a single server or replica set, and pooling of both types of connections. Both connection types and pools are thread-safe, i.e. multiple processes can use the same connection/pool simultaneously without interfering with each other. This driver is implemented as an Erlang application named *mongodb*. It depends on another Erlang library application named bson (http://github.com/mongodb/bson-erlang), which defines the document type and its standard binary representation. You need both of these. Below we describe the mongodb application; you should also see the bson application to understand the document type. This package contains headers for %name. %prep %setup -q #patch -p1 erl -noshell -eval ' {ok, [{application, %bname, L}]} = file:consult("src/%bname.app.src"), file:write_file("src/%bname.app.src", io_lib:format("{application, %bname, ~p}.~n", [lists:keystore(applications, 1, L, {applications, lists:delete(crypto, proplists:get_value(applications, L, []))})]), [raw]), init:stop().' %build erl -noshell -eval ' {ok, L} = file:consult("rebar.config"), file:write_file("%bname.rebar.config", [[io_lib:print(E), ".\n"] || E <- lists:keydelete(deps, 1, L)], [raw]), init:stop().' ERL_COMPILER_OPTIONS="[inline,verbose]" rebar %{?_smp_mflags} -C %bname.rebar.config compile -v %install install -d -m 0755 %buildroot%_otplibdir/%bname-%version/ebin install -m 0644 ebin/* %buildroot%_otplibdir/%bname-%version/ebin/ install -d -m 0755 %buildroot%_otplibdir/%bname-%version/include install -m 0644 include/* %buildroot%_otplibdir/%bname-%version/include/ %if_enabled check %check mkdir -p test/db %_sbindir/mongod --quiet --dbpath $PWD/test/db & ERL_COMPILER_OPTIONS="[inline,verbose]" rebar -C %bname.rebar.config ct && rc=0 || rc=1 kill %%1 exit $rc %endif %files %defattr(-,root,root) %doc README* %dir %_otplibdir/* %_otplibdir/*/ebin %files devel %defattr(-,root,root) %_otplibdir/*/include %changelog * Tue Dec 18 2018 Led <ledest@gmail.com> 3.3.1-1 - 3.3.1 * Wed Apr 18 2018 Led <ledest@gmail.com> 3.2.0-1 - 3.2.0 * Tue Jan 09 2018 Led <ledest@gmail.com> 3.1.2-1 - 3.1.2 * Sat Dec 02 2017 Led <ledest@gmail.com> 3.1.1-1 - 3.1.1 * Wed Oct 25 2017 Led <ledest@gmail.com> 3.0.2-2 - git 9b53c4d * Wed Jul 05 2017 Led <ledest@gmail.com> 3.0.2-1 - 3.0.2 * Wed Apr 05 2017 Led <ledest@gmail.com> 3.0.1-1 - 3.0.1 - disable %%check - remove patches: + mongodb-erlang-0.8.2-fix-tests.patch * Thu May 12 2016 Led <ledest@gmail.com> 0.8.2-2 - add no_debug_info to erl_opts - fix vsn in mongodb.app - fix License * Thu May 12 2016 Led <ledest@gmail.com> 0.8.2-1 - 0.8.2 - add patches: + mongodb-erlang-0.8.2-fix-tests.patch * Thu May 12 2016 Led <ledest@gmail.com> 0.7.9-1 - 0.7.9 * Sun Jan 31 2016 Led <ledest@gmail.com> 0.7.5-2 - add epmd to BuildRequires * Tue Aug 18 2015 Led <ledest@gmail.com> 0.7.5-1 - 0.7.5 * Sun Aug 09 2015 Led <ledest@gmail.com> 0.7.3-1 - 0.7.3 * Thu Aug 06 2015 Led <ledest@gmail.com> 0.7.2-1 - 0.7.2 - remove patches: + 0001-Properly-process-mongodb-getLastError-response.patch * Fri Jul 17 2015 Led <ledest@gmail.com> 0.5-1 - 0.5 * Wed May 27 2015 Led <ledest@gmail.com> 0.4.1-7 - add patches: + 0001-Update-README.md.patch + 0002-Update-mongo.erl.patch * Sun Apr 12 2015 Led <ledest@gmail.com> 0.4.1-6 - clean ups - clean up BuildRequires * Sun Apr 05 2015 Led <ledest@gmail.com> 0.4.1-5 - update erl_opts * Fri Mar 27 2015 Led <ledest@gmail.com> 0.4.1-4 - fix test db path * Fri Mar 27 2015 Led <ledest@gmail.com> 0.4.1-3 - add patches: + mongodb-erlang-0.4.1-git.patch - disable debug_info - add %%check section - add BuildRequires for %%check section * Sat Feb 28 2015 Led <ledest@gmail.com> 0.4.1-2 - added provides * Wed Feb 25 2015 Led <ledest@gmail.com> 0.4.1-1 - initial build
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