Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
cecho
cecho.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cecho.spec of Package cecho
%define bname cecho Name: %bname Version: 0.5.1 Release: 8 Summary: An ncurses library for Erlang License: BSD-2-Clause Group: Development/Tools/Other URL: https://github.com/mazenharake/%bname Source: %bname-%version.tar.xz #Patch0: %bname-%version-git.patch Patch1: 0001-Fix-warning-with-Erlang-20.patch Patch2: 0002-Add-a-script-which-allows-running-of-any-example.patch Patch3: 0003-Fix-dialyzer-errors.patch Patch11: %bname-0.5.1-23.patch Patch12: %bname-0.5.1-makefile-erl-eval.patch Provides: erlang-%bname = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 BuildRequires: erts-devel BuildRequires: ncurses-devel %description Cecho is an ncurses library for Erlang which enabled Erlang applications to create terminal based GUIs. It aims to have an API as close as possible to the original API of ncurses so that a person familiar with ncurses API should be able to immediately use it without any introduction. %package devel Summary: Headers of %bname Group: Development/Tools/Other Provides: erlang-%bname-devel = %version-%release Conflicts: %name < 0.5.1-1 %description devel Cecho is an ncurses library for Erlang which enabled Erlang applications to create terminal based GUIs. This package contains headers of %bname. %package doc Summary: %bname documentation Group: Documentaion/HTML Conflicts: %name < 0.5.1-1 %description doc Cecho is an ncurses library for Erlang which enabled Erlang applications to create terminal based GUIs. This package contains documentation in HTML format. %prep %setup -q -n %bname-%version #patch0 -p1 %patch -p1 -P1 -P2 -P3 %patch11 -p1 %patch12 -p1 sed -i 's/\r$//' include/*.hrl install -d -m 0755 examples mv src/%{bname}_example.erl examples/ %build erl -noshell -eval ' {ok, L} = file:consult("rebar.config"), file:write_file("%bname.rebar.config", [[io_lib:print(E), ".\n"] || E <- lists:keydelete(deps, 1, L)], [raw]), init:stop().' CC=%__cc LINKER=%__cc \ CFLAGS="%optflags $(pkg-config --cflags ncurses) -flto" \ LDFLAGS="%optflags -flto" LIBS="$(pkg-config --libs ncurses)" \ 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/include install -p -m 0644 include/* %buildroot%_otplibdir/%bname-%version/include/ install -d -m 0755 %buildroot%_otplibdir/%bname-%version/priv install -p -m 0755 priv/%bname-%version.so %buildroot%_otplibdir/%bname-%version/priv/ ln -sf %bname-%version.so %buildroot%_otplibdir/%bname-%version/priv/%bname.so 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/examples ln -sf %_otplibdir/%bname-%version/doc %buildroot%_docdir/%name/html install -p -m 0644 *.md %buildroot%_docdir/%name/ install -p -m 0644 examples/* %buildroot%_docdir/%name/examples %files %defattr(-,root,root) %_otplibdir/* %exclude %_otplibdir/%bname-*/include %exclude %_otplibdir/%bname-*/doc %files devel %defattr(-,root,root) %dir %_otplibdir/%bname-* %_otplibdir/%bname-*/include %files doc %defattr(-,root,root) %doc %_docdir/%name %doc %dir %_otplibdir/%bname-* %doc %_otplibdir/%bname-*/doc %changelog * Mon Mar 06 2023 Led <ledest@gmail.com> 0.5.1-8 - update description - fix headers - add patches: + 0001-Fix-warning-with-Erlang-20.patch + 0002-Add-a-script-which-allows-running-of-any-example.patch + 0003-Fix-dialyzer-errors.patch * Fri Feb 10 2023 Led <ledest@gmail.com> 0.5.1-7 - add patches: + cecho-0.5.1-makefile-erl-eval.patch * Fri Jul 02 2021 Led <ledest@gmail.com> 0.5.1-6 - build with system gcc * Mon Mar 15 2021 Led <ledest@gmail.com> 0.5.1-5 - fix build * Sun Aug 16 2020 Led <ledest@gmail.com> 0.5.1-4 - update patches: + cecho-0.5.1-23.patch * Sun Aug 16 2020 Led <ledest@gmail.com> 0.5.1-3 - add patches: + cecho-0.5.1-23.patch * Thu Feb 15 2018 Led <ledest@gmail.com> 0.5.1-2 - fix summary * Thu Feb 15 2018 Led <ledest@gmail.com> 0.5.1-1 - 0.5.1 - update License - move headers and docs to separate subpackages - move cecho_example to doc * Sun May 21 2017 Led <ledest@gmail.com> 0.4.0-5 - revert BuildRequires * Sat May 20 2017 Led <ledest@gmail.com> 0.4.0-4 - update BuildRequires * Sun Jun 26 2016 Led <ledest@gmail.com> 0.4.0-3 - git 8d63d80 * Fri Feb 19 2016 Led <ledest@gmail.com> 0.4.0-2 - update BuildRequires * Fri Feb 19 2016 Led <ledest@gmail.com> 0.4.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