Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
diffy
diffy.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File diffy.spec of Package diffy
%define bname diffy Name: %bname Version: 0.1 Release: 5 Summary: Erlang diff match and patch implementation License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/mmzeeman/%bname Source: %bname.tar.xz BuildArch: noarch Provides: erlang-%bname = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 %description Diffy is an erlang implementation of the Diff Match and Patch library for plain text. The implementation uses binaries throughout and is utf-8 aware. %package doc Summary: Documentation of %bname Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release Conflicts: %name < 0.1-5 %description doc Diffy is an erlang implementation of the Diff Match and Patch library for plain text. The implementation uses binaries throughout and is utf-8 aware. This package contains documentation of %bname. %prep %setup -q -n %bname %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().' 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/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 README* %buildroot%_docdir/%name/ %if 0 %check ERL_COMPILER_OPTIONS='[inline,verbose]' rebar -C %bname.rebar.config eunit -v %endif %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 * Wed Mar 08 2023 Led <ledest@gmail.com> 0.1-5 - move docs to separate subpackage * Wed Mar 08 2023 Led <ledest@gmail.com> 0.1-4 - git 15273d9 * Sun May 21 2017 Led <ledest@gmail.com> 0.1-3 - revert BuildRequires * Sun May 21 2017 Led <ledest@gmail.com> 0.1-2 - update BuildRequires * Sun Jun 07 2015 Led <ledest@gmail.com> 0.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