Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
mysql_client
mysql_client.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mysql_client.spec of Package mysql_client
%define bname mysql_client Name: %bname Version: 1.2.8 Release: 4 Summary: MySQL native client for Erlang License: Apache-2.0 Group: Development/Tools/Other URL: http://erlmysql.sourceforge.net/ Source: erl.mysql.client-vsn-%version.zip BuildArch: noarch Provides: erlmysql = %version-%release Provides: erlang-%bname = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar erl_interface # For prep BuildRequires: unzip # For check #BuildRequires: erlang-eunit %description MySQL native client for Erlang. The client allows to connect to MySQL server and execute SQL query. It provides connection pooling mechanizm for concurrency efficience. The client is written on Erlang and very closely follows MySQL Connector/C interface. It can be called MySQL Connector/Erlang but has some restrictions in functionality (recent version has no SSL support). Design is based on protocol description from http://mysql.timesoft.cc/doc/internals/en/index.html. %prep %setup -q -c %build erl -noshell -eval ' {ok, L} = file:consult("rebar.config"), file:write_file("%bname.rebar.config", lists:map(fun(E) -> io_lib:format("~p.~n", [E]) end, [{erl_opts, [slim,inline|lists:delete(debug_info, proplists:get_value(erl_opts, L))]}|lists:foldl(fun(E, A) -> proplists:delete(E, A) end, L, [deps, pre_hooks, post_hooks])])), init:stop().' rebar -C %bname.rebar.config compile -v %install install -d -m 0755 %buildroot%_otplibdir/%bname-%version/ebin install -p -m 0644 ebin/* %buildroot%_otplibdir/%bname-%version/ebin/ install -d -m 0755 %buildroot%_otplibdir/%bname-%version/include install -p -m 0644 include/[cm]* %buildroot%_otplibdir/%bname-%version/include/ install -d -m 0755 %buildroot%_otplibdir/%bname-%version/examples install -p -m 0644 examples/* %buildroot%_otplibdir/%bname-%version/examples/ install -d -m 0755 %buildroot%_docdir/%name ln -sf %_otplibdir/%bname-%version/examples %buildroot%_docdir/%name/ # FIXME %add_erlang_req_beam_skiplist conn_pool_srv %files %defattr(-,root,root) %doc %_docdir/%name %_otplibdir/* %changelog * Sun Apr 12 2015 Led <ledest@gmail.com> 1.2.8-4 - clean ups - clean up BuildRequires * Sun Apr 05 2015 Led <ledest@gmail.com> 1.2.8-3 - fix BuildRequires * Sat Apr 04 2015 Led <ledest@gmail.com> 1.2.8-2 - fix URL - fix Provides * Sat Apr 04 2015 Led <ledest@gmail.com> 1.2.8-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