Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
epax
epax.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File epax.spec of Package epax
%define bname epax Name: %bname Version: 1.0.0 Release: 2 Summary: Erlang Package Manager License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/eproxus/%bname.git Source: %bname.tar.xz BuildArch: noarch Provides: erlang-%bname = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar erl_interface erlang-getopt %description %summary. %package static Summary: %summary Group: Development/Tools/Other Provides: %name-bundle = %version-%release Requires: erlang Requires: erlang-otp-base %description static %summary. %prep %setup -q -n %bname sed -i 's/\r$//' README* %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, [{erl_opts, [inline, slim, no_debug_info|lists:delete(debug_info, proplists:get_value(erl_opts, L, []))]}|lists:foldl(fun proplists:delete/2, L, [erl_opts, deps, plugins])])), halt().' for c in compile escriptize doc; do rebar -C %bname.rebar.config $c -v done cat > %bname.escript <<__EOF__ #!%_bindir/escript %%%% %%%%!-noinput main(X) -> %bname:main(X). __EOF__ %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 README* %buildroot%_docdir/%name/ install -pD -m 0755 %bname.escript %buildroot%_otpdir/bin/%bname install -pD -m 0755 %bname %buildroot%_bindir/%bname-bundle ln -sf %_otpdir/bin/%bname %buildroot%_bindir/%bname-otp ln -sf %bname-bundle %buildroot%_bindir/%bname-static # alternatives install -d -m 0755 %buildroot%_sysconfdir/alternatives touch %buildroot%_sysconfdir/alternatives/%bname ln -sf %_sysconfdir/alternatives/%bname %buildroot%_bindir/%bname %post %_sbindir/update-alternatives --install %_bindir/%bname %bname %_bindir/%bname-otp 10 %preun [ "$1" != 0 ] || %_sbindir/update-alternatives --remove %bname %_bindir/%bname-otp %post static %_sbindir/update-alternatives --install %_bindir/%bname %bname %_bindir/%bname-bundle 5 %preun static [ "$1" != 0 ] || %_sbindir/update-alternatives --remove %bname %_bindir/%bname-bundle %files %defattr(-,root,root) %doc %_docdir/%name %_otpdir/bin/* %_otplibdir/* %_bindir/%bname-otp %ghost %_bindir/%bname %ghost %_sysconfdir/alternatives/* %files static %defattr(-,root,root) %doc README* %_bindir/%bname-bundle %_bindir/%bname-static %ghost %_bindir/%bname %ghost %_sysconfdir/alternatives/* %changelog * Mon Jan 16 2017 Led <ledest@gmail.com> 1.0.0-2 - fix script - add no_debug_info * Tue Jun 16 2015 Led <ledest@gmail.com> 1.0.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