Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
myproto
myproto.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File myproto.spec of Package myproto
%define bname myproto Name: %bname Version: 0.2.0 Release: 3 Summary: MySQL Server Protocol in Erlang License: ErlPL-1.1 Group: Development/Tools/Other URL: https://github.com/altenwald/%bname Source: %bname-%version.tar.xz Patch: %bname-%version-git.patch BuildArch: noarch Provides: erlang-%bname = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: erlang >= R13 BuildRequires: rebar erl_interface erlang-neotoma %description This project let you implement the MySQL protocol for your server. Throught a MySQL connection you could send queries or fake a MySQL connection to do a proxy or whatever else. %prep %setup -q -n %bname-%version %patch -p1 erl -noshell -eval ' A = "src/%bname.app.src", {ok, [{application, %bname, L}]} = file:consult(A), file:write_file(A, io_lib:format("{application, %bname, ~p}.~n", [lists:keystore(vsn, 1, L, {vsn, "%version"})])), halt().' %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, [lists:keystore(erl_opts, 1, proplists:delete(deps, L), {erl_opts, [no_debug_info,slim,inline|lists:delete(debug_info, proplists:get_value(erl_opts, L, []))]})])), halt().' rebar -C %bname.rebar.config compile -v sed -i -r "/^-spec[[:blank:]]+'where'/s/^/%%/" src/mysql_proto.erl rebar -C %bname.rebar.config doc -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/* %buildroot%_otplibdir/%bname-%version/include/ install -d -m 0755 %buildroot%_otplibdir/%bname-%version/doc install -p -m 0644 doc/*.{css,html,png} %buildroot%_otplibdir/%bname-%version/doc/ install -d -m 0755 %buildroot%_docdir/%name ln -sf %_otplibdir/%name-%version/doc %buildroot%_docdir/%name/html install -p -m 0644 README* %buildroot%_docdir/%name/ %if 0 %check rebar -C %bname.rebar.config eunit %endif %files %defattr(-,root,root) %doc %_docdir/%name %_otplibdir/* %changelog * Fri Sep 04 2015 Led <ledest@gmail.com> 0.2.0-3 - git a5ddd9f * Sat Jul 25 2015 Led <ledest@gmail.com> 0.2.0-2 - fix BuildRequires * Sat Jul 25 2015 Led <ledest@gmail.com> 0.2.0-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