Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:22
lfe
lfe.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lfe.spec of Package lfe
%define bname lfe Name: %bname Version: 1.2.1 Release: 6 Summary: Lisp Flavoured Erlang License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/rvirding/%bname Source: %bname-%version.tar.xz Patch2: %bname-0.10.0-remove-packages.patch Patch3: %bname-1.1.1-fix-spec.patch Patch11: 0001-Make-constructor-less-patterns-illegal.patch Patch13: 0003-Improve-error-reporting-for-patterns-map-keys-and-li.patch Provides: erlang-%bname = %version-%release BuildArch: noarch BuildRequires: rpm-macros-erlang >= 0.11.0 BuildRequires: rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 BuildRequires: erlang-parsetools-devel #BuildRequires: pandoc %description LFE, Lisp Flavoured Erlang, is a lisp syntax front-end to the Erlang compiler. Code produced with it is compatible with "normal" Erlang code. An LFE evaluator and shell is also included. %prep %setup -q %patch2 -p1 %patch3 -p1 %patch13 -p1 -R %patch11 -p1 -R #rm -f doc/man/* sed -i -r '1s|^.*/env[[:blank:]]+(.*)$|#!%_bindir/\1|' bin/%{bname}c examples/*script if [ $(echo %_otp_release | sed 's/^R//') -ge 18 ]; then sed -i -r \ -e 's/erl_parse(:set_line\()/erl_anno\1/g' \ -e 's/erl_lint:modify_line\(/erl_parse:map_anno(/g' \ -e 's/erl_parse:get_attribute\( *([^, ]+) *, *(line|location) *\)/erl_anno:\2(\1)/g' \ src/%{bname}_qlc.erl fi %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, [slim, inline, no_debug_info|proplists:get_value(erl_opts, L, [])]}, {edoc_opts, [{preprocess, true}|proplists:get_value(edoc_opts, L, [])]} |lists:foldl(fun proplists:delete/2, L, [edoc_opts, erl_opts])])), halt().' ln -sf rebar.config.script %bname.rebar.config.script make -j1 CFLAGS="%optflags" ERLCFLAGS="+slim +inline" #make %{?_smp_mflags} docs-man rebar -C %bname.rebar.config doc %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,md} %buildroot%_otplibdir/%bname-%version/doc/ install -d -m 0755 %buildroot%_otplibdir/%bname-%version/examples install -p -m 0755 examples/*script %buildroot%_otplibdir/%bname-%version/examples/ install -p -m 0644 examples/*.lfe %buildroot%_otplibdir/%bname-%version/examples/ install -d -m 0755 %buildroot%_otpdir/bin %buildroot%_bindir for i in %bname %{bname}c %{bname}script; do install -p -m 0755 bin/$i %buildroot%_otpdir/bin/ ln -sf %_otpdir/bin/$i %buildroot%_bindir/ done 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/ for i in 1 3 7; do install -d -m 0755 %buildroot{%_otpmandir,%_mandir}/man$i install -p -m 0644 doc/man/*.$i %buildroot%_otpmandir/man$i/ for m in doc/man/*.$i; do ln -sf %_otpmandir/man$i/$(basename $m) %buildroot%_mandir/man$i/ done done for i in %buildroot%_mandir/man3/*; do mv $i ${i}erl done %files %defattr(-,root,root) %doc %_docdir/%name %_bindir/* %_otpdir/bin/* %_otplibdir/* %_otpmandir %_mandir/man1/* %_mandir/man3/* %_mandir/man7/* %changelog * Sun May 21 2017 Led <ledest@gmail.com> 1.2.1-6 - fix %%files again * Sun May 21 2017 Led <ledest@gmail.com> 1.2.1-5 - revert BuildRequires - revert %%files * Sat May 20 2017 Led <ledest@gmail.com> 1.2.1-4 - fix %%files * Sat May 20 2017 Led <ledest@gmail.com> 1.2.1-3 - update BuildRequires * Thu Feb 02 2017 Led <ledest@gmail.com> 1.2.1-2 - revert commits: + 0001-Make-constructor-less-patterns-illegal.patch + 0003-Improve-error-reporting-for-patterns-map-keys-and-li.patch * Mon Dec 12 2016 Led <ledest@gmail.com> 1.2.1-1 - 1.2.1 * Sun Oct 09 2016 Led <ledest@gmail.com> 1.2.0-1 - 1.2.0 - remove patches: + lfe-1.1.1-fix-build-warnings.patch + lfe-1.1.1-lfe_qlc-map.patch * Fri Sep 09 2016 Led <ledest@gmail.com> 1.1.1-2 - add patches: + lfe-1.1.1-lfe_qlc-map.patch * Mon Jun 20 2016 Led <ledest@gmail.com> 1.1.1-1 - 1.1.1 - remove patches: + lfe-1.0.2-fix-defsyntax.patch - update patches: + lfe-1.1.1-fix-build-warnings.patch - add patches: + lfe-1.1.1-fix-spec.patch * Tue May 10 2016 Led <ledest@gmail.com> 1.0.2-6 - fix build docs on Erlang without maps * Tue May 10 2016 Led <ledest@gmail.com> 1.0.2-5 - fix build for Erlang/OTP < 18 * Tue May 10 2016 Led <ledest@gmail.com> 1.0.2-4 - revert rebar config (for build docs on Erlang without maps) * Fri May 06 2016 Led <ledest@gmail.com> 1.0.2-3 - add patches: + lfe-1.0.2-fix-defsyntax.patch * Thu May 05 2016 Led <ledest@gmail.com> 1.0.2-2 - fix build * Thu May 05 2016 Led <ledest@gmail.com> 1.0.2-1 - 1.0.2 - update patches: + lfe-1.0.2-fix-build-warnings.patch * Tue Mar 29 2016 Led <ledest@gmail.com> 1.0.1-1 - 1.0.1 - clean up BuildRequires * Sun Nov 22 2015 Led <ledest@gmail.com> 0.10.1-1 - update patches: + lfe-0.10.1-fix-build-warnings.patch * Sun Oct 11 2015 Led <ledest@gmail.com> 0.10.0-2 - update patches: + lfe-0.10.0-fix-build-warnings.patch * Sun Oct 11 2015 Led <ledest@gmail.com> 0.10.0-1 - 0.10.0 - update patches: + lfe-0.10.0-remove-packages.patch * Sun Sep 27 2015 Led <ledest@gmail.com> 0.9.2-5 - ignore requires of maps * Sun Sep 27 2015 Led <ledest@gmail.com> 0.9.2-4 - disable debug_info - fix build docs on without maps * Sat May 30 2015 Led <ledest@gmail.com> 0.9.2-3 - clean up spec * Tue May 26 2015 Led <ledest@gmail.com> 0.9.2-2 - add patches: + lfe-0.9.2-remove-packages.patch * Tue May 26 2015 Led <ledest@gmail.com> 0.9.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