Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
lz4-erlang
lz4-erlang.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lz4-erlang.spec of Package lz4-erlang
%define bname lz4 Name: %bname-erlang Summary: LZ4 Erlang NIF library Version: 0.1.0 Release: 1 License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/rabbitmq/%name Source: %name.tar.xz Provides: erlang-%bname = %version-%release BuildRequires: nif_helpers-devel BuildRequires: liblz4-devel >= 1.8 BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: erts-devel erl_interface # doc BuildRequires: erlang-edoc # check BuildRequires: epmd ct_run erlang-ct_helper %description %summary. %prep %setup -q -n %name sed -i -r \ -e '/^((BUILD|TEST)_DEPS|DEP_PLUGINS)/s/^/#/' \ -e '/^LDLIBS/s/=.*/= -llz4/' \ -e 's|([[:blank:]]+)-Ideps/nif_helpers/[[:blank:]]+|\1|' \ Makefile sed -i '/CFLAGS/s/-O3/-O2/g' erlang.mk %build make %{?_smp_mflags} ERL_COMPILER_OPTIONS='[inline]' V=1 all edoc erl -noshell -eval ' {ok, [{application, %bname, L}]} = file:consult("ebin/%bname.app"), file:write_file("ebin/%bname.app", io_lib:format("{application, %bname, ~81p}.~n", [lists:keystore(description, 1, lists:keystore(modules, 1, L, {modules, proplists:get_value(modules, L, [])}), {description, "%summary"})]), [raw]), init:stop().' %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/priv install -p -m 0755 priv/* %buildroot%_otplibdir/%bname-%version/priv/ install -d -m 0755 %buildroot%_docdir/%name install -d -m 0755 %buildroot%_otplibdir/%bname-%version/doc install -p -m 0644 doc/*.css doc/*.html doc/*.png %buildroot%_otplibdir/%bname-%version/doc/ ln -sf %_otplibdir/%bname-%version/doc %buildroot%_docdir/%name/html %check install -d -m 0755 test/lz4f_SUITE_data :> test/lz4f_SUITE_data/pdf_reference_1-7.pdf make ct %files %defattr(-,root,root) %doc %_docdir/%name %_otplibdir/* %changelog * Tue Nov 07 2017 Led <ledest@gmail.com> 0.1.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