Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:21
abnfc
abnfc.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File abnfc.spec of Package abnfc
%define bname abnfc Name: %bname Version: 0.5.4 Release: 2 Summary: An ABNF parser generator for Erlang License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/rbkmoney/%bname Source: %bname-%version.tar.xz BuildArch: noarch Provides: erlang-%bname = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 %description %bname is an ABNF parser generator for Erlang. %package doc Summary: Documentation of %bname Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release Conflicts: %name < 0.5.4-1 %description doc %bname is an ABNF parser generator for Erlang. This package contains documentation of %bname. %prep %setup -q -n %bname-%version sed -i '1s|^#.*$|#!%__escript|' bin/* %if %_otp_release < 20 sed -i 's/~tw/~w/g' src/abnfc_erl_tidy.erl %endif %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(edoc_opts, 1, lists:keydelete(deps, 1, L), {edoc_opts, case lists:keyfind(edoc_opts, 1, L) of {_, [_|_] = O} -> lists:keystore(new, 1, O, {new, true}); _ -> [{new, true}] end})), [raw]), init:stop().' ERL_COMPILER_OPTIONS="[inline,verbose]" rebar %{?_smp_mflags} -C %bname.rebar.config compile -v rebar %{?_smp_mflags} -C %bname.rebar.config doc -v %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/bin install -p -m 0755 bin/* %buildroot%_otplibdir/%bname-%version/bin/ install -d -m 0755 %buildroot%_otpdir/bin install -d -m 0755 %buildroot%_bindir for i in %buildroot%_otplibdir/%bname-%version/bin/*; do f=$(basename $i) ln -sf %_otplibdir/%bname-%version/bin/$f %buildroot%_otpdir/bin/ ln -sf %_otpdir/bin/$f %buildroot%_bindir/ done 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 doc/*.md %buildroot%_docdir/%name/ for i in samples/*; do case $i in */ebin) ;; *) install -d -m 0755 %buildroot%_docdir/%name/$i install -p -m0644 $i/* %buildroot%_docdir/%name/$i/ ;; esac done %files %defattr(-,root,root) %_bindir/* %_otpdir/bin/* %_otplibdir/* %exclude %_otplibdir/%bname-*/doc %files doc %defattr(-,root,root) %doc %_docdir/%name %doc %dir %_otplibdir/%bname-* %doc %_otplibdir/%bname-*/doc %changelog * Sat Aug 21 2021 Led <ledest@gmail.com> 0.5.4-2 - fix build on Erlang/OTP < 20 * Sat Aug 21 2021 Led <ledest@gmail.com> 0.5.4-1 - 0.5.4 - update URL - add doc subpackage * Sun Aug 20 2017 Led <ledest@gmail.com> 0.3-7 - update spec * Sun Mar 05 2017 Led <ledest@gmail.com> 0.3-6 - clean up spec - add +inline +slim to ERLC_FLAGS * Sun Apr 05 2015 Led <ledest@gmail.com> 0.3-5 - cosmetic clean ups * Fri Apr 03 2015 Led <ledest@gmail.com> 0.3-4 - move symlink from %%_otpdir/erts-*/bin/ to %%_otpdir/bin/ * Mon Mar 30 2015 Led <ledest@gmail.com> 0.3-3 - spec: cosmetic fixes * Wed Mar 18 2015 Led <ledest@gmail.com> 0.3-2 - fix symlink * Tue Mar 03 2015 Led <ledest@gmail.com> 0.3-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