Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
ucol
ucol.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ucol.spec of Package ucol
%define bname ucol Name: %bname Version: 2.0.0 Release: 5 Summary: Simple collation module for Erlang applications that allows you to sort binaries License: MIT Group: Development/Tools/Other URL: https://github.com/barrel-db/erlang-%bname Source: erlang-%bname-%version.tar.xz #Patch0: erlang-%bname-%version-git.patch Patch1: erlang-%bname-2.0.0-fix-export.patch Patch2: erlang-%bname-2.0.0-erl_interface.patch Provides: erlang-%bname = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.4-27 BuildRequires: erts-devel BuildRequires: pkgconfig BuildRequires: pkgconfig(icu-io) pkgconfig(icu-uc) %description %bname is a simple collation (http://userguide.icu-project.org/collation) module for Erlang applications based on NIf that allows you to sort binaries. %prep %setup -q -n erlang-%bname-%version #patch0 -p1 %patch1 -p1 %patch2 -p1 cat > %bname.rebar.config <<__EOF__ {erl_opts, [warnings_as_errors, warn_export_all]}. {port_specs, [{"priv/%bname.so", ["c_src/*.c"]}]}. __EOF__ %build CC=%__cc LINKER=%__cc \ CFLAGS="%optflags -flto -std=c99 -finline-functions -Wmissing-prototypes $(pkg-config --cflags icu-uc icu-io)" \ LDFLAGS="%optflags -flto $(pkg-config --cflags icu-uc icu-io)" \ LIBS="$(pkg-config --libs icu-uc icu-io)" \ ERL_EI_LIBS="-lei" \ rebar -C %bname.rebar.config compile -v rebar -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 install -p -m 0755 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 NOTICE %buildroot%_docdir/%name/ %check rebar -C %bname.rebar.config eunit -v %files %defattr(-,root,root) %doc %_docdir/%name %_otplibdir/* %changelog * Wed May 20 2020 Led <ledest@gmail.com> 2.0.0-5 - update BuildRequires - fix build on Erlang/OTP 23 * Tue May 19 2020 Led <ledest@gmail.com> 2.0.0-4 - add patches: + erlang-ucol-2.0.0-erl_interface.patch * Mon Apr 27 2020 Led <ledest@gmail.com> 2.0.0-3 - update config * Fri Aug 12 2016 Led <ledest@gmail.com> 2.0.0-2 - build with 'inline' option - add patches: + erlang-ucol-2.0.0-fix-export.patch * Fri Aug 12 2016 Led <ledest@gmail.com> 2.0.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