Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:22
eiconv
eiconv.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File eiconv.spec of Package eiconv
%define bname eiconv Name: %bname Version: 1.1 Release: 5 Summary: Erlang iconv NIF wrapper License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/mmzeeman/%bname Source: %bname.tar.xz Patch1: 0001-Add-some-documentation.patch Patch2: 0002-Add-iconv-convert-3-API-2.patch Provides: erlang-%bname = %version-%release Obsoletes: erlang-iconv BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar erl_interface erts-devel %description Erlang NIF wrapper for iconv. %package doc Summary: %bname documentation Group: Documentation/HTML Conflicts: %name < 1.1-3 %description doc Erlang NIF wrapper for iconv. This package contains documentation in HTML format. %prep %setup -q -n %bname %patch -p1 -P 1 -P 2 %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, [require_otp_vsn, deps])), [raw]), init:stop().' 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 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 %check rebar -C %bname.rebar.config eunit %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.1-5 - obsoletes erlang-iconv * Fri Oct 25 2019 Led <ledest@gmail.com> 1.1-4 - add patches: + 0001-Add-iconv-convert-3-API-2.patch + 0001-Add-some-documentation.patch * Mon Jul 23 2018 Led <ledest@gmail.com> 1.1-3 - move doc to separate subpackage * Tue Mar 22 2016 Led <ledest@gmail.com> 1.1-2 - fix build * Sun Jun 07 2015 Led <ledest@gmail.com> 1.1-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