Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
erlware_commons
erlware_commons.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File erlware_commons.spec of Package erlware_commons
%def_enable check %define bname erlware_commons Name: %bname Version: 1.7.0 Release: 4 Summary: An extension to the stdlib application that is distributed with Erlang License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/erlware/%bname Source: %bname-%version.tar.xz #Patch0: %bname-%version-git.patch Patch1: %bname-1.0.0-ec_semver-export-normalize-1.patch Provides: erlang-%bname = %version-%release BuildArch: noarch BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 BuildRequires: erlang-otp-devel BuildRequires: erlang-otpbp-devel %if_enabled check # check BuildRequires: erlang_lib(cf) >= 0.3 BuildRequires: git-core BuildRequires: erlang-otpbp %endif %description Erlware commons can best be described as an extension to the stdlib application that is distributed with Erlang. %package devel Summary: Headers of %bname Group: Development/Tools/Other Provides: erlang-%bname-devel = %version-%release Conflicts: %bname < 1.0.4 %description devel Erlware commons can best be described as an extension to the stdlib application that is distributed with Erlang. This package contains headers of %bname. %package doc Summary: Documentation of %bname Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release Conflicts: %bname < 1.0.4 %description doc Erlware commons can best be described as an extension to the stdlib application that is distributed with Erlang. This package contains documentation of %bname. %prep %setup -q -n %bname-%version #patch -p1 -P0 %patch -p1 -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, ~81p}.~n", [lists:keystore(vsn, 1, lists:keydelete(maintainers, 1, L), {vsn, "%version"})]), [raw]), 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(edoc_opts, 1, lists:keydelete(deps, 1, L), {edoc_opts, [{preprocess, true}]})), [raw]), init:stop().' %if %_otp_release < 21 ERL_COMPILER_OPTIONS="[inline,verbose,{parse_transform,otpbp_pt}]" \ %else ERL_COMPILER_OPTIONS="[inline,verbose]" \ %endif 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/priv install -p -m 0644 priv/* %buildroot%_otplibdir/%bname-%version/priv/ 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/ %if_enabled check %check %if %_otp_release < 21 ERL_COMPILER_OPTIONS="[inline,verbose,{parse_transform,otpbp_pt}]" \ %else ERL_COMPILER_OPTIONS="[inline,verbose]" \ %endif rebar -C %bname.rebar.config eunit -v %endif %files %defattr(-,root,root) %_otplibdir/* %exclude %_otplibdir/%bname-*/include %exclude %_otplibdir/%bname-*/doc %files 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 * Sat Apr 20 2024 Led <ledest@gmail.com> 1.7.0-4 - fix BuildRequires * Sat Apr 20 2024 Led <ledest@gmail.com> 1.7.0-3 - fix BuildRequires * Sat Apr 20 2024 Led <ledest@gmail.com> 1.7.0-2 - fix build on Erlang/OTP < 21 * Sat Apr 20 2024 Led <ledest@gmail.com> 1.7.0-1 - 1.7.0 * Sat Jun 03 2023 Led <ledest@gmail.com> 1.6.0-1 - 1.6.0 - git eeb25f4 - enable check * Fri Aug 13 2021 Led <ledest@gmail.com> 1.5.0-1 - 1.5.0 - git ad559ae * Sun Apr 18 2021 Led <ledest@gmail.com> 1.4.0-2 - git 9cdca1c * Thu Feb 25 2021 Led <ledest@gmail.com> 1.4.0-1 - 1.4.0 * Mon Apr 08 2019 Led <ledest@gmail.com> 1.3.1-1 - 1.3.1 - git aad7ae4 * Fri Nov 30 2018 Led <ledest@gmail.com> 1.3.0-2 - fix vsn in erlware_commons.app * Tue Nov 13 2018 Led <ledest@gmail.com> 1.3.0-1 - 1.3.0 * Mon Oct 01 2018 Led <ledest@gmail.com> 1.2.0-2 - update BuildRequires * Mon Oct 01 2018 Led <ledest@gmail.com> 1.2.0-1 - 1.2.0 * Sat May 12 2018 Led <ledest@gmail.com> 1.1.0-1 - 1.1.0 * Thu Feb 08 2018 Led <ledest@gmail.com> 1.0.5-1 - 1.0.5 * Fri Nov 24 2017 Led <ledest@gmail.com> 1.0.4-2 - clean up Provides * Thu Nov 23 2017 Led <ledest@gmail.com> 1.0.4-1 - 1.0.4 - move headers and docs to separate packages * Sun May 21 2017 Led <ledest@gmail.com> 1.0.0-4 - revert BuildRequires * Sat May 20 2017 Led <ledest@gmail.com> 1.0.0-3 - update BuildRequires * Fri May 19 2017 Led <ledest@gmail.com> 1.0.0-2 - add patches: + erlware_commons-1.0.0-ec_semver-export-normalize-1.patch * Sun Feb 26 2017 Led <ledest@gmail.com> 1.0.0-1 - 1.0.0 - update BuildRequires - update Provides - fix Summary and description - disable %%check * Sat Jun 11 2016 Led <ledest@gmail.com> 0.21.0-1 - 0.21.0 * Tue Mar 29 2016 Led <ledest@gmail.com> 0.18.0-0.2 - clean up BuildRequires * Wed Mar 16 2016 Led <ledest@gmail.com> 0.18.0-0.1 - 0.18.0 * Thu Dec 24 2015 Led <ledest@gmail.com> 0.16.1-1 - 0.16.1 * Sun Sep 27 2015 Led <ledest@gmail.com> 0.15.0-4 - fix build docs on Erlang R15, R16 - disable debug_info - disable cover - remove patches: + erlware_commons-0.12.0-doc.patch * Sun Sep 27 2015 Led <ledest@gmail.com> 0.15.0-3 - fix build docs on Erlang R15, R16 * Fri Sep 04 2015 Led <ledest@gmail.com> 0.15.0-2 - disable git tests - clean ups * Fri Sep 04 2015 Led <ledest@gmail.com> 0.15.0-1 - 0.15.0 * Sat Jul 04 2015 Led <ledest@gmail.com> 0.13.0-1 - 0.13.0 - remove patches: + erlware_commons-0.12.0-git.patch * Tue Jun 02 2015 Led <ledest@gmail.com> 0.12.0-2 - add patches: + erlware_commons-0.12.0-git.patch * Sun May 31 2015 Led <ledest@gmail.com> 0.12.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