Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:20
erlang-iconv
erlang-iconv.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File erlang-iconv.spec of Package erlang-iconv
%define bname iconv Name: erlang-%bname Version: 1.0.6 Release: 1 Summary: Fast encoding conversion library for Erlang / Elixir License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/processone/%bname Source: %bname-%version.tar.xz #Patch: %bname-%version-git.patch Provides: erlang-%bname = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 BuildRequires: erts-devel # check BuildRequires: p1_utils >= 1.0.10 %description Fast encoding conversion library for Erlang / Elixir. This library is a native binding to libiconv library. %package doc Summary: %bname documentation Group: Documentation/HTML Conflicts: %name < 1.0.6-1 %description doc Fast encoding conversion library for Erlang / Elixir. This package contains documentation in HTML format. %prep %setup -q -n %bname-%version #patch -p1 %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:foldl(fun(T, A) -> lists:keydelete(T, 1, A) end, L, [deps, port_env])), [raw]), init:stop().' CFLAGS="%optflags -DHAS_ERTS_EXIT" CC="%__cc" \ 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/lib install -p -m 0755 priv/lib/* %buildroot%_otplibdir/%bname-%version/priv/lib/ 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 %buildroot%_docdir/%name/ %check 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 * Fri Oct 25 2019 Led <ledest@gmail.com> 1.0.6-1 - 1.0.6 - move docs to separate subpackage * Sun Jul 16 2017 Led <ledest@gmail.com> 1.0.5-1 - 1.0.5 * Sun Feb 12 2017 Led <ledest@gmail.com> 1.0.3-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