Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
esqlite
esqlite.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File esqlite.spec of Package esqlite
%define bname esqlite %define bname3 %{bname}3 Name: %bname Version: 0.8.3 Release: 3 Summary: Erlang NIF for sqlite3 License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/mmzeeman/%bname Source: %bname-%version.tar.xz Patch1: %bname-0.8.3-compat.patch Provides: %bname3 = %version-%release Provides: erlang-%bname = %version-%release Provides: erlang-%bname3 = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.5.1-13 BuildRequires: pkg-config pkgconfig(sqlite3) sqlite3 BuildRequires: erl_interface erts-devel %description Erlang NIF for sqlite3. %package doc Summary: Documentation of %bname Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release Provides: %bname3-doc = %version-%release Provides: erlang-%bname-doc = %version-%release Provides: erlang-%bname3-doc = %version-%release Conflicts: %name < 0.1.1-2 %description doc Erlang NIF for sqlite3. This package contains documentation of %bname. %prep %setup -q -n %bname-%version %patch1 -p1 %if %_otp_release < 19 sed -i '/^-type \(status_info\|stats\)()/,/}\./s/ := / => /g' src/esqlite3.erl sed -i \ -e '/^-type error_info()/,/^[[:blank:]]*}\./s/ := / => /g' \ -e '/^-spec \(memory_stats\|status\)(/,/}./s/ := / => /g' \ src/esqlite3_nif.erl %endif sed -i '/^-module(/a-compile([no_inline,nowarn_nif_inline]).' src/esqlite3_nif.erl %if %(sqlite3 -version | cut -d. -f2) < 37 sed -i 's/"INT"/"int"/g' test/esqlite_test.erl %endif sed -i \ -e '/^sqlite_version_test()/,/^[[:blank:]]*ok\./s/<"3.*"/<"'"$(sqlite3 -version | cut -d' ' -f1)"'"/' \ -e '/^sqlite_source_id_test()/,/^[[:blank:]]*ok\./s/<"2.*"/<"'"$(sqlite3 -version | cut -d' ' -f2-4)"'"/' \ -e '/^-define/s|\./test/dbs/||' \ test/esqlite_test.erl cat > %bname.rebar.config <<__EOF__ {erl_opts, [debug_info]}. {port_specs,[{"priv/esqlite3_nif.so", ["c_src/esqlite3_nif.c"]}]}. __EOF__ %build CC=%__cc \ CFLAGS="%optflags $(pkg-config --cflags sqlite3) -flto" \ LDFLAGS="%optflags -flto" LIBS="$(pkg-config --libs sqlite3)" \ ERL_COMPILER_OPTIONS='[verbose,inline]' \ rebar -C %bname.rebar.config compile -v rebar -C %bname.rebar.config doc -v %install install -d -m 0755 %buildroot%_otplibdir/%name-%version/ebin install -p -m 0644 ebin/* %buildroot%_otplibdir/%name-%version/ebin/ install -d -m 0755 %buildroot%_otplibdir/%name-%version/priv install -p -m 0755 priv/*.so %buildroot%_otplibdir/%name-%version/priv/ install -d -m 0755 %buildroot%_otplibdir/%name-%version/doc install -p -m 0644 doc/*.{css,html,png} %buildroot%_otplibdir/%name-%version/doc/ install -d -m 0755 %buildroot%_docdir/%name ln -sf %_otplibdir/%name-%version/doc %buildroot%_docdir/%name/html install -p -m 0644 AUTHORS* CONTRIBUTERS* README* %buildroot%_docdir/%name/ %check ERL_COMPILER_OPTIONS='[verbose,inline]' 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 * Tue Aug 09 2022 Led <ledest@gmail.com> 0.8.3-3 - fix build on Erlang/OTP 18 * Tue Aug 09 2022 Led <ledest@gmail.com> 0.8.3-2 - add inline to erl_opts * Tue Aug 09 2022 Led <ledest@gmail.com> 0.8.3-1 - 0.8.3 - update patches: + esqlite-0.8.3-compat.patch * Tue Aug 09 2022 Led <ledest@gmail.com> 0.7.3-1 - 0.7.3 * Tue Aug 09 2022 Led <ledest@gmail.com> 0.6.1-1 - 0.6.1 * Tue Aug 09 2022 Led <ledest@gmail.com> 0.5.3-2 - remove patches: + 0001-Use-sqlite_changes64.patch - add patches: + esqlite-0.5.3-compat.patch * Tue Aug 09 2022 Led <ledest@gmail.com> 0.5.3-1 - 0.5.3 - add patch 0001-Use-sqlite_changes64.patch (for revert when sqlite3 < 3.37.0) * Tue Aug 09 2022 Led <ledest@gmail.com> 0.4.1-1 - 0.4.2 - remove Epoch * Tue Aug 09 2022 Led <ledest@gmail.com> 0.4.1-1 - 0.4.1 - add Provides esqlite3 * Tue Aug 09 2022 Led <ledest@gmail.com> 0.1.1-2 - move docs to separate package * Sun Nov 29 2015 Led <ledest@gmail.com> 0.1.1-1 - 0.1.1 * Fri Oct 02 2015 Led <ledest@gmail.com> 1-2 - add inline to erl_opts * Fri Oct 02 2015 Led <ledest@gmail.com> 1-1 - initial build (git f7b151f)
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