Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
cuttlefish
cuttlefish.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cuttlefish.spec of Package cuttlefish
%def_enable check %define bname cuttlefish Name: %bname Version: 2.0.11 Release: 10 Summary: Erlang/OTP library for sysctl-like syntax License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/basho/%bname Source: %bname-%version.tar.xz Patch: %bname-%version-git.patch BuildArch: noarch Provides: erlang-%bname = %version-%release Requires: erlang >= R16 Requires: erlang-otp-base >= R16 BuildRequires: erlang >= R16 BuildRequires: erlang-otp-base >= R16 BuildRequires: rpm-macros-erlang >= 0.10.0 BuildRequires: rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 BuildRequires: erlang-neotoma >= 1.7.4 BuildRequires: erlang-lager-devel >= 3.2.4 #check BuildRequires: erlang-getopt >= 0.8.2 BuildRequires: erlang-lager >= 3.2.4 %description Cuttlefish is a library for Erlang applications that wish to walk the fine line between Erlang app.config's and a sysctl-like syntax. %package -n rebar-plugin-%bname Summary: %bname plugin for rebar Group: Development/Tools/Other Requires: %name = %version-%release %description -n rebar-plugin-%bname Cuttlefish is a library for Erlang applications that wish to walk the fine line between Erlang app.config's and a sysctl-like syntax. This package contains the %{bname}_rebar_plugin module - a plugin for rebar. %package doc Summary: Documentation of %bname Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release Conflicts: %name < 2.0.11-6 %description doc Cuttlefish is a library for Erlang applications that wish to walk the fine line between Erlang app.config's and a sysctl-like syntax. This package contains documentation of %bname. %prep %setup -q -n %bname-%version %patch -p1 sed -i '/^print_help(/,/^$/s/stop_deactivate(/stop_ok(/' src/cuttlefish_escript.erl sed -i 's/erlang:get_stacktrace()/[]/' test/cuttlefish_test_group_leader.erl 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(vsn, 1, L, {vsn, "%version"})]), [raw]), init:stop().' %build erl -noshell -eval ' {ok, L} = file:consult("rebar.config"), file:write_file("%bname.rebar.config", [lists:map(fun(E) -> [io_lib:print(E), ".\n"] end, lists:foldl(fun(I, A) -> lists:keydelete(I, 1, A) end, lists:keystore(require_otp_vsn, 1, L, {require_otp_vsn, "R16|17|18|19|20|21|22|23|24|25"}), [deps, require_otp_vsn, post_hooks]))], [raw]), init:stop().' ERL_COMPILER_OPTIONS="[inline,verbose,nowarn_export_all]" rebar %{?_smp_mflags} -C %bname.rebar.config compile -v rebar %{?_smp_mflags} -C %bname.rebar.config doc -v cat > %bname.escript <<__EOF__ #!%__escript %%%% %%%%!-noinput +S 1 +A 0 __EOF__ cat ebin/%{bname}_escript.beam >> %bname.escript erl -noshell -eval ' {ok, [{application, %bname, L}]} = file:consult("ebin/%bname.app"), {_, M} = lists:keyfind(modules, 1, L), file:write_file("ebin/%bname.app", io_lib:format("{application, %bname, ~81p}.~n", [lists:keystore(modules, 1, L, {modules, lists:foldl(fun lists:delete/2, M, [%{bname}_escript, %{bname}_rebar_plugin])})]), [raw]), init:stop().' %install install -d -m 0755 %buildroot%_otplibdir/%bname-%version/ebin install -p -m 0644 ebin/* %buildroot%_otplibdir/%bname-%version/ebin/ rm -f %buildroot%_otplibdir/%bname-%version/ebin/%{bname}_escript.beam install -d -m 0755 %buildroot%_otplibdir/%bname-%version/priv install -p -m 0644 priv/* %buildroot%_otplibdir/%bname-%version/priv/ 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/%bname-%version/doc %buildroot%_docdir/%name/html install -p -m 0644 *.md %buildroot%_docdir/%name/ install -pD -m 0755 %bname.escript %buildroot%_otpdir/bin/%bname install -d -m 0755 %buildroot%_bindir ln -sf %_otpdir/bin/%bname %buildroot%_bindir/ %add_erlang_req_beam_skiplist mustache rebar_mustache %if_enabled check %check ERL_COMPILER_OPTIONS="[inline,verbose,nowarn_export_all]" rebar -C %bname.rebar.config eunit -v %endif %files %defattr(-,root,root) %_otplibdir/* %exclude %_otplibdir/%bname-*/ebin/%{bname}_rebar_plugin.beam %_otpdir/bin/* %_bindir/* %exclude %_otplibdir/%bname-*/doc %files -n rebar-plugin-%bname %defattr(-,root,root) %_otplibdir/%bname-*/ebin/%{bname}_rebar_plugin.beam %files doc %defattr(-,root,root) %doc %_docdir/%name %doc %dir %_otplibdir/%bname-* %doc %_otplibdir/%bname-*/doc %changelog * Fri Jul 29 2022 Led <ledest@gmail.com> 2.0.11-10 - revert lager_stderr_backend module to modules list * Thu Jul 28 2022 Led <ledest@gmail.com> 2.0.11-9 - move %{bname}_rebar_plugin module to separate subpackage - enable %%check - update BuildRequires * Sat Jul 03 2021 Led <ledest@gmail.com> 2.0.11-8 - revert to 2.0.11 * Sun Feb 21 2021 Led <ledest@gmail.com> 2.1.0-1 - 2.1.0 * Sat Mar 10 2018 Led <ledest@gmail.com> 2.0.11-7 - add nowarn_export_all option * Sat Mar 10 2018 Led <ledest@gmail.com> 2.0.11-6 - git 4f436ba - move docs to separate subpackage - skip requires modules mustache, rebar_mustache * Sun May 21 2017 Led <ledest@gmail.com> 2.0.11-5 - revert BuildRequires * Sat May 20 2017 Led <ledest@gmail.com> 2.0.11-4 - update BuildRequires - add nowarn_export_all option - add 20 to require_otp_vsn * Sat Feb 25 2017 Led <ledest@gmail.com> 2.0.11-3 - update BuildRequires * Mon Jan 16 2017 Led <ledest@gmail.com> 2.0.11-2 - update script * Mon Jan 16 2017 Led <ledest@gmail.com> 2.0.11-1 - 2.0.11 - fix script * Mon Oct 10 2016 Led <ledest@gmail.com> 2.0.8-1 - 2.0.8 * Fri Jul 15 2016 Led <ledest@gmail.com> 2.0.7-2 - rebar.config: add "19" to require_otp_vsn * Fri Jul 15 2016 Led <ledest@gmail.com> 2.0.7-1 - 2.0.7 * Sun Jun 26 2016 Led <ledest@gmail.com> 2.0.6-1 - 2.0.6 * Sun Jan 17 2016 Led <ledest@gmail.com> 2.0.5-3 - fix URL * Sun Jan 17 2016 Led <ledest@gmail.com> 2.0.5-2 - fix stopping script * Sun Jan 17 2016 Led <ledest@gmail.com> 2.0.5-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