Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
eleveldb
eleveldb.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File eleveldb.spec of Package eleveldb
%define bname eleveldb Name: %bname Version: 2.9.2 %define lversion 2.0.36 Release: 2 Summary: Erlang bindings to LevelDB datastore License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/basho/%bname Source0: %bname-%version.tar.xz Source1: leveldb-%lversion.tar.xz Patch1: 0001-Add-count-function.patch Patch11: %bname-2.0.34-test-fix-deprecated.patch Patch12: %bname-2.9.2-build_deps-system-snappy.patch Patch101: leveldb-2.0.36-auto_ptr.patch BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 BuildRequires: erlang-erts-devel BuildRequires: gcc-c++ BuildRequires: snappy-devel >= 1.0.4 # check BuildRequires: procps %description Erlang bindings to LevelDB datastore. %package doc Summary: %bname documentation Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release Conflicts: %name < 2.0.35-1 %description doc Erlang bindings to LevelDB datastore. This package contains documentation in HTML format. %prep %setup -q -n %bname-%version -a 1 %patch1 -p1 %patch11 -p1 %patch12 -p1 ln -sf ../leveldb-%lversion c_src/leveldb cd leveldb-%lversion %patch101 -p1 cd - # Link with system libsnappy sed -i 's/\(PLATFORM=\)OS_LINUX/\1/' c_src/leveldb/build_detect_platform erl -noshell -eval ' A = "src/%bname.app.src", {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, L, {vsn, "%version"})]), [raw]), init:stop().' %build erl -noshell -eval ' {ok, L} = file:consult("rebar.config"), file:write_file("%bname.rebar.config", [[io_lib:print(E), ".\n"] || {K, _} = E <- L, not lists:member(K, [deps, post_hooks])], [raw]), init:stop().' CC=%__cc LINKER=%__cc CFLAGS="%optflags" CXXFLAGS="%optflags" LDFLAGS="-pthread" \ ERL_COMPILER_OPTIONS="[nowarn_export_all,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/priv for i in priv/*; do case $i in *.schema) m=0644 ;; *) m=0755 ;; esac install -p -m $m $i %buildroot%_otplibdir/%bname-%version/priv/ 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/%name-%version/doc %buildroot%_docdir/%name/html install -p -m 0644 BASHO_RELEASES README.md %buildroot%_docdir/%name/ %check ERL_COMPILER_OPTIONS="[nowarn_export_all,verbose]" rebar -C %bname.rebar.config eunit -v %files %defattr(-,root,root) %_otplibdir/* %exclude %_otplibdir/%bname-*/doc %files doc %defattr(-,root,root) %doc %_docdir/%name %doc %dir %_otplibdir/%bname-* %doc %_otplibdir/%bname-*/doc %changelog * Mon Jan 30 2023 Led <ledest@gmail.com> 2.9.2-2 - add patches: + leveldb-2.0.36-auto_ptr.patch * Mon Jan 30 2023 Led <ledest@gmail.com> 2.9.2-1 - 2.9.2 - remove patches: + 0002-Replicate-build-changes.patch + 0003-Update-eleveldb.erl.patch - update patches: + eleveldb-2.9.2-build_deps-system-snappy.patch * Mon Jan 30 2023 Led <ledest@gmail.com> 2.0.35-2 - add patches: + 0002-Replicate-build-changes.patch + 0003-Update-eleveldb.erl.patch - update patches: + eleveldb-2.0.35-build_deps-system-snappy.patch * Sun Jul 07 2019 Led <ledest@gmail.com> 2.0.35-1 - 2.0.35 - move docs to separate subpackage * Mon Feb 19 2018 Led <ledest@gmail.com> 2.0.34-4 - update BuildRequires * Fri Feb 16 2018 Led <ledest@gmail.com> 2.0.34-3 - add patches: + 0001-Add-count-function.patch * Sun Aug 20 2017 Led <ledest@gmail.com> 2.0.34-2 - add nowarn_export_all option * Sun Aug 13 2017 Led <ledest@gmail.com> 2.0.34-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