Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
mad
mad.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mad.spec of Package mad
%define bname mad Name: %bname Epoch: 1 Version: 1.9 Release: 8 Summary: A simple rebar-compatible dependency manager License: MIT Group: Development/Tools/Other URL: https://github.com/synrc/%bname Source: %bname-%version.tar.xz Patch0: %bname-%version-git.patch Patch1: %bname-1.9-compat-rebar.patch Patch2: %bname-1.9-fix-escript-shebang.patch Patch3: 0001-fix-build-on-Erlang-R15.patch BuildArch: noarch Requires: update-alternatives BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar erl_interface erlang-sh BuildRequires: update-alternatives %description MAD is a simple rebar-compatible dependency manager. It shall: - be compatible with rebar configuration, - be as small and fast as possible. %package static Summary: A simple rebar-compatible dependency manager Group: Development/Tools/Other Provides: %name-bundle = %epoch:%version-%release Requires: erlang Requires: erlang-otp-base erlang-syntax_tools %description static MAD is a simple rebar-compatible dependency manager. It shall: - be compatible with rebar configuration, - be as small and fast as possible. %package ling Summary: LING Erlang Virtual Machine bundle packaging Requires: %name = %epoch:%version-%release %description ling %summary. %prep %setup -q -n %bname-%version %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 rm -f %bname %build echo '{erl_opts, [slim, inline]}.' > %name.rebar.config rm -f ebin/sh.* rebar -C %bname.rebar.config compile -v f="$(erl -noshell -eval 'io:put_chars(code:which(sh)), halt().')" install -pD -m 0644 "$f" ./ebin/$(basename "$f") erl -noshell -pa $PWD/ebin -run mad main bun %bname -run erlang halt cat > %bname.escript <<__EOF__ #!/usr/bin/escript %%!-noinput main(X) -> mad:main(X). __EOF__ %install install -d -m 0755 %buildroot{%_otplibdir/%bname-%version/{ebin,include,priv},%_bindir} install -m 0644 ebin/{%{bname}*,openvz}.* %buildroot%_otplibdir/%bname-%version/ebin/ install -m 0644 include/ling_code.hrl %buildroot%_otplibdir/%bname-%version/include/ cp -a priv/* %buildroot%_otplibdir/%bname-%version/priv/ install -m 0755 %bname.escript %buildroot%_bindir/%bname-otp install -m 0755 %bname %buildroot%_bindir/%bname-bundle 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 %add_erlang_req_beam_skiplist mad_ling %post %_sbindir/update-alternatives --quiet --install %_bindir/%bname %bname %_bindir/%bname-otp 10 %preun [ "$1" != 0 ] || %_sbindir/update-alternatives --quiet --remove %bname %_bindir/%bname-otp %post static %_sbindir/update-alternatives --quiet --install %_bindir/%bname %bname %_bindir/%bname-bundle 5 %preun static [ "$1" != 0 ] || %_sbindir/update-alternatives --quiet --remove %bname %_bindir/%bname-bundle %files %defattr(-,root,root) %doc README* %_bindir/%bname-otp %_otplibdir/* %exclude %_otplibdir/mad-*/ebin/mad_ling.beam %exclude %_otplibdir/mad-*/include %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/* %files ling %defattr(-,root,root) %_otplibdir/mad-*/ebin/mad_ling.beam %_otplibdir/mad-*/include %changelog * Mon Sep 28 2015 Led <ledest@gmail.com> 1:1.9-8 - add subpackage mad-ling - move mad_ling module to mad-ling subpackage * Mon Sep 28 2015 Led <ledest@gmail.com> 1:1.9-7 - fix License - fix changelog * Mon Sep 28 2015 Led <ledest@gmail.com> 1:1.9-6 - mad-static: fix provides - fix changelog * Mon Sep 28 2015 Led <ledest@gmail.com> 1:1.9-5 - ignore requires of ling_lib * Mon Sep 28 2015 Led <ledest@gmail.com> 1:1.9-4 - ignore requires of ling_code * Sun Sep 27 2015 Led <ledest@gmail.com> 1:1.9-3 - ignore requires of bfd_objcopy * Sun Sep 27 2015 Led <ledest@gmail.com> 1:1.9-2 - fix build with Erlang R15 - add patches: + 0001-fix-build-on-Erlang-R15.patch * Sat Sep 26 2015 Led <ledest@gmail.com> 1:1.9-1 - 1.9 - remove patches: + mad-2.9-git.patch + mad-no-abst-chunk.patch + mad-compat-rebar.patch + mad-fix-escript-shebang.patch - add patches: + mad-1.9-git.patch + mad-1.9-compat-rebar.patch + mad-1.9-fix-escript-shebang.patch * Sat Sep 19 2015 Led <ledest@gmail.com> 2.9-2 - git e764be4 * Sat Sep 05 2015 Led <ledest@gmail.com> 2.9-1 - 2.9 (git a119fda) - remove patches: + mad-fix-warnings.patch - update patches: + mad-fix-escript-shebang.patch * Sun May 31 2015 Led <ledest@gmail.com> 2.2-16 - remove sh entry in mad.app * Sat May 16 2015 Led <ledest@gmail.com> 2.2-15 - git 6713113 * Sat May 09 2015 Led <ledest@gmail.com> 2.2-14 - add patches: + mad-fix-warnings.patch - fix changelog - fix %%prep * Sat May 09 2015 Led <ledest@gmail.com> 2.2-13 - remove ignoring requires of erlydtl module - add patches: + mad-compat-rebar.patch + mad-fix-escript-shebang.patch + mad-no-abst-chunk.patch * Thu May 07 2015 Led <ledest@gmail.com> 2.2-12 - git 7288100 * Fri Mar 27 2015 Led <ledest@gmail.com> 2.2-11 - don't pack sh.beam * Sun Mar 22 2015 Led <ledest@gmail.com> 2.2-10 - remove ignoring requires of k_io_lib_pretty module * Sun Mar 22 2015 Led <ledest@gmail.com> 2.2-9 - spec: cosmetic fixes * Sun Mar 22 2015 Led <ledest@gmail.com> 2.2-8 - use alternatives * Wed Mar 18 2015 Led <ledest@gmail.com> 2.2-7 - clean up mad executable script * Wed Mar 18 2015 Led <ledest@gmail.com> 2.2-6 - add sh module to mad bundle * Sun Mar 15 2015 Led <ledest@gmail.com> 2.2-5 - add synonyms for rebar compatibility: + co -> compile + u-d -> deps * Sun Mar 15 2015 Led <ledest@gmail.com> 2.2-4 - add simple script - add build options * Fri Feb 27 2015 Led <ledest@gmail.com> 2.2-3 - ignore requires of k_io_lib_pretty module * Fri Feb 27 2015 Led <ledest@gmail.com> 2.2-2 - ignore requires of erlydtl module * Fri Feb 27 2015 Led <ledest@gmail.com> 2.2-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