Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:Ledest:erlang:18
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: 1 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 erl_interface %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. %prep %setup -q -n %bname %build erl -noshell -eval ' {ok, L} = file:consult("rebar.config"), file:write_file("%bname.rebar.config", lists:map(fun(E) -> io_lib:format("~p.~n", [E]) end, [{erl_opts, [slim,inline|proplists:delete(debug_info, proplists:get_value(erl_opts, L, []))]}|proplists:delete(erl_opts, proplists:delete(deps, L))])), halt().' for c in compile doc; do rebar -C %bname.rebar.config $c -v done %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/ %files %defattr(-,root,root) %doc %_docdir/%name %_otplibdir/* %changelog * 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