Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:20
eimp
eimp.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File eimp.spec of Package eimp
%define bname eimp Name: %bname Version: 1.0.17 Release: 3 Summary: Erlang Image Manipulation Process License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/processone/%bname Source: %bname-%version.tar.xz #Patch0: %bname-%version-git.patch Patch1: %bname-1.0.17-include.patch Provides: erlang-%bname = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 BuildRequires: erts-devel BuildRequires: pkg-config BuildRequires: pkgconfig(gdlib) pkgconfig(libpng16) pkgconfig(libwebp) pkgconfig(libjpeg) # check BuildRequires: erlang-p1_utils >= 1.0.20 %description eimp is an Erlang/Elixir application for manipulating graphic images using external C libraries. It supports WebP, JPEG, PNG and GIF. %package doc Summary: Documentation of %bname Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release %description doc eimp is an Erlang/Elixir application for manipulating graphic images using external C libraries. It supports WebP, JPEG, PNG and GIF. This package contains documentation of %bname. %prep %setup -q -n %bname-%version #patch0 -p1 %patch1 -p1 sed -i 's/-lpng/&16/' rebar.config.script erl -noshell -eval ' {ok, [{application, %bname, L}]} = file:consult("src/%bname.app.src"), file:write_file("src/%bname.app.src", io_lib:format("{application, %bname, ~104p}.~n", [lists:keydelete(files, 1, L)]), [raw]), init:stop().' %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:keystore(erl_opts, 1, lists:foldl(fun(K, A) -> lists:keydelete(K, 1, A) end, L, [deps, port_env]), {erl_opts, lists:keydelete(src_dirs, 1, proplists:get_value(erl_opts, L, []))})), [raw]), init:stop().' sh configure ln -sf rebar.config.script %bname.rebar.config.script CFLAGS="%optflags $(pkg-config --cflags libpng16)" CC="%__cc" \ ERL_COMPILER_OPTIONS="[inline,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/bin install -p -m 0755 priv/bin/* %buildroot%_otplibdir/%bname-%version/priv/bin/ 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 *.md %buildroot%_docdir/%name/ %check install -d -m 0755 .eunit/priv/bin ln -sf ../../../priv/bin/eimp .eunit/priv/bin/ ERL_COMPILER_OPTIONS="[inline,verbose]" rebar -j1 -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 Jul 02 2021 Led <ledest@gmail.com> 1.0.17-3 - build with system gcc * Thu Jun 10 2021 Led <ledest@gmail.com> 1.0.17-2 - add patches: + eimp-1.0.17-include.patch * Tue Mar 23 2021 Led <ledest@gmail.com> 1.0.17-1 - 1.0.17 * Tue Mar 23 2021 Led <ledest@gmail.com> 1.0.15-1 - 1.0.15 * Mon Mar 22 2021 Led <ledest@gmail.com> 1.0.8-1 - 1.0.8 * Mon Mar 15 2021 Led <ledest@gmail.com> 1.0.2-3 - fix build * Sat Sep 14 2019 Led <ledest@gmail.com> 1.0.2-2 - fix build - update BuildRequires - enable %%check * Sun Nov 26 2017 Led <ledest@gmail.com> 1.0.2-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