Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
clique
clique.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File clique.spec of Package clique
%define bname clique Name: %bname Version: 0.3.12 Release: 2 Summary: A framework for building command line interfaces in Erlang License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/basho/%bname Source: %bname-%version.tar.xz #Patch0: %bname-%version-git.patch Patch1: %bname-0.3.12-test.patch Patch11: %bname-stacktrace.patch BuildArch: noarch Provides: erlang-%bname = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 BuildRequires: erlang-cuttlefish >= 2.0.11 %description Clique is an opinionated framework for building command line interfaces in Erlang. It provides users with an interface that gives them enough power to build complex CLIs, but enough constraint to make them appear consistent. %package devel Summary: Headers of %bname Group: Development/Tools/Other Provides: erlang-%bname-devel = %version-%release Conflicts: %name < 0.3.9-4 %description devel Clique is an opinionated framework for building command line interfaces in Erlang. It provides users with an interface that gives them enough power to build complex CLIs, but enough constraint to make them appear consistent. This package contains headers of %bname. %package doc Summary: Documentation of %bname Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release Conflicts: %name < 0.3.9-4 %description doc Clique is an opinionated framework for building command line interfaces in Erlang. It provides users with an interface that gives them enough power to build complex CLIs, but enough constraint to make them appear consistent. This package contains documentation of %bname. %prep %setup -q -n %bname-%version #patch0 -p1 %patch1 -p1 %patch11 -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:keydelete(maintainers, 1, lists:keystore(vsn, 1, L, {vsn, "%version"}))])), 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:keystore(erl_first_files, 1, lists:keydelete(deps, 1, L), {erl_first_files, ["src/clique_writer.erl"]})), [raw]), init:stop().' ERL_COMPILER_OPTIONS="[inline,verbose]" rebar %{?_smp_mflags} -C %bname.rebar.config compile -v rebar -C %bname.rebar.config doc -v erl -noshell -eval ' lists:foreach(fun(F) -> {ok, {M, [{exports, Fs}]}} = beam_lib:chunks(F, [exports]), lists:sort(Fs) =:= [{behaviour_info, 1}, {module_info, 0}, {module_info, 1}] andalso io:fwrite("%_otplibdir/%bname-%version/ebin/~s.beam~n", [M]) end, filelib:wildcard("./ebin/*.beam")), init:stop().' | tee behaviours.list | sed 's/^/%%exclude /' > behaviours-exclude.list %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/%bname-%version/doc %buildroot%_docdir/%name/html install -p -m 0644 *.md %buildroot%_docdir/%name/ %check ERL_COMPILER_OPTIONS="[inline,verbose,nowarn_export_all]" rebar -C %bname.rebar.config eunit -v %files -f behaviours-exclude.list %defattr(-,root,root) %_otplibdir/* %exclude %_otplibdir/%bname-*/include %exclude %_otplibdir/%bname-*/doc %files -f behaviours.list devel %defattr(-,root,root) %dir %_otplibdir/%bname-* %_otplibdir/%bname-*/include %files doc %defattr(-,root,root) %doc %_docdir/%name %doc %dir %_otplibdir/%bname-* %doc %_otplibdir/%bname-*/doc %changelog * Tue Mar 07 2023 Led <ledest@gmail.com> 0.3.12-2 - add patches: + clique-0.3.12-test.patch * Tue Mar 07 2023 Led <ledest@gmail.com> 0.3.12-1 - 0.3.12 - remove patches: + 0001-Add-compatibility-for-OTP-21-stack-traces.patch * Sun Aug 18 2019 Led <ledest@gmail.com> 0.3.10-1 - 0.3.10 - add patches: + 0001-Add-compatibility-for-OTP-21-stack-traces.patch + clique-stacktrace.patch - enable %%check * Sun Aug 18 2019 Led <ledest@gmail.com> 0.3.9-5 - move pure behaviour modules to devel subpackage * Sat Jul 06 2019 Led <ledest@gmail.com> 0.3.9-4 - fix build on Erlang/OTP >= 21 - move doc and headers to separate subpackages * Sun May 21 2017 Led <ledest@gmail.com> 0.3.9-3 - revert BuildRequires * Sun May 21 2017 Led <ledest@gmail.com> 0.3.9-2 - disable %%check - add nowarn_export_all option * Sun May 21 2017 Led <ledest@gmail.com> 0.3.9-1 - 0.3.9 * Sat May 20 2017 Led <ledest@gmail.com> 0.3.7-2 - update BuildRequires * Fri Sep 30 2016 Led <ledest@gmail.com> 0.3.7-1 - 0.3.7 * Sat Sep 03 2016 Led <ledest@gmail.com> 0.3.6-1 - 0.3.6 * Sun Jan 17 2016 Led <ledest@gmail.com> 0.3.5-2 - fix URL * Sun Jan 17 2016 Led <ledest@gmail.com> 0.3.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