Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
poolboy
poolboy.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File poolboy.spec of Package poolboy
%define bname poolboy Name: %bname Version: 1.5.2 Release: 7 Summary: A hunky Erlang worker pool factory License: ISC Group: Development/Tools/Other URL: https://github.com/devinus/%bname Source: %bname-%version.tar.xz Patch0: %bname-%version-git.patch Patch1: %bname-1.5.2-stacktrace.patch BuildArch: noarch Provides: erlang-%bname = %version-%release Requires: erlang BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 %description Poolboy is a lightweight, generic pooling library for Erlang with a focus on simplicity, performance, and rock-solid disaster recovery. %package devel Summary: Behaviour modules of %bname Group: Development/Tools/Other Provides: erlang-%bname-devel = %version-%release Conflicts: %name < 1.5.2-4 %description devel Poolboy is a lightweight, generic pooling library for Erlang with a focus on simplicity, performance, and rock-solid disaster recovery. This package contains behaviour modules of %bname. %package doc Summary: %bname documentation Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release Conflicts: %name < 1.5.2 %description doc Poolboy is a lightweight, generic pooling library for Erlang with a focus on simplicity, performance, and rock-solid disaster recovery. This package contains documentation in HTML format. %prep %setup -q -n %bname-%version %patch0 -p1 %patch1 -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:keydelete(maintainers, 1, L)]), [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, case lists:keyfind(edoc_opts, 1, L) of {_, O} -> lists:keystore(preprocess, 1, O, {preprocess, true}); _ -> [{preprocess, 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/doc install -p -m 0644 doc/*.{css,html,png} %buildroot%_otplibdir/%bname-%version/doc/ install -d -m 0755 %buildroot%_docdir/%name install -p -m 0644 README* LICENSE UNLICENSE %buildroot%_docdir/%name/ ln -s %_otplibdir/%bname-%version/doc %buildroot%_docdir/%name/html erl -noshell -eval ' lists:foreach(fun(F) -> {ok, {M, [{exports, Fs}]}} = beam_lib:chunks(F, [exports]), lists:sort(Fs) =:= [{behaviour_info, 1}, {module_info, 0}, {module_info, 1}] andalso io:fwrite("%_otplibdir/%bname-%version/ebin/~s.beam~n", [M]) end, filelib:wildcard("./ebin/*.beam")), init:stop().' | tee behaviours.list | sed 's/^/%%exclude /' > behaviours-exclude.list if [ -s behaviours.list ]; then sed -i '1i%%dir %_otplibdir/%bname-%version/ebin' behaviours.list fi %check ERL_COMPILER_OPTIONS="[inline,verbose]" rebar -C %bname.rebar.config eunit %files -f behaviours-exclude.list %defattr(-,root,root) %_otplibdir/* %exclude %_otplibdir/%bname-*/doc %exclude %_otplibdir/%bname-*/include %files -f behaviours.list devel %defattr(-,root,root) %dir %_otplibdir/%bname-* %files doc %defattr(-,root,root) %doc %_docdir/%name %doc %dir %_otplibdir/%bname-* %doc %_otplibdir/%bname-*/doc %changelog * Sat Dec 16 2023 Led <ledest@gmail.com> 1.5.2-7 - update descriptions * Sun Aug 18 2019 Led <ledest@gmail.com> 1.5.2-6 - move pure behaviour modules list generator to %%install * Sun Aug 18 2019 Led <ledest@gmail.com> 1.5.2-5 - revert behaviour-only to poolboy.app's modules * Thu Jul 25 2019 Led <ledest@gmail.com> 1.5.2-4 - git 9212a87 - fix Group - move pure behaviour modules to devel subpackage * Mon Mar 25 2019 Led <ledest@gmail.com> 1.5.2-3 - add {preprocess, true} to edoc_opts * Mon Mar 25 2019 Led <ledest@gmail.com> 1.5.2-2 - update patches: + poolboy-1.5.2-stacktrace.patch * Mon Mar 25 2019 Led <ledest@gmail.com> 1.5.2-1 - 1.5.2 - add patches: + poolboy-1.5.2-stacktrace.patch - move docs to separate subpackage * Sun May 21 2017 Led <ledest@gmail.com> 1.5.1-7 - revert BuildRequires * Sun May 21 2017 Led <ledest@gmail.com> 1.5.1-6 - update Buildrequires * Mon Mar 27 2017 Led <ledest@gmail.com> 1.5.1-5 - fix License * Sun Oct 09 2016 Led <ledest@gmail.com> 1.5.1-4 - git d378f99 * Wed Jun 15 2016 Led <ledest@gmail.com> 1.5.1-3 - clean up spec * Fri Mar 18 2016 Led <ledest@gmail.com> 1.5.1-2 - clean up BuildRequires * Thu Apr 16 2015 Led <ledest@gmail.com> 1.5.1-1 - 1.5.1 - remove patches: + poolboy-1.4.2-git.patch * Sun Apr 12 2015 Led <ledest@gmail.com> 1.4.2-5 - clean ups * Sun Apr 05 2015 Led <ledest@gmail.com> 1.4.2-4 - add erl_opts - fix BuildRequires - clean up docs * Sun Mar 29 2015 Led <ledest@gmail.com> 1.4.2-3 - update patches: + poolboy-1.4.2-git.patch * Mon Mar 09 2015 Led <ledest@gmail.com> 1.4.2-2 - build without debug_info * Mon Mar 09 2015 Led <ledest@gmail.com> 1.4.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