Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
webmachine
webmachine.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File webmachine.spec of Package webmachine
%define bname webmachine Name: %bname Version: 1.10.8 Release: 3 Summary: Erlang library for building lightweight HTTP servers License: Apache-2.0 Group: Development/Tools/Other URL: http://github.com/mochi/%bname Source: %bname-%version.tar.xz #Patch: %bname-%version-git.patch BuildArch: noarch Provides: erlang-%bname = %version-%release Provides: %bname-devel = %version-%release Provides: erlang-%bname-devel = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 BuildRequires: fdupes %description Webmachine is an application layer that adds HTTP semantic awareness on top of the excellent bit-pushing and HTTP syntax-management provided by mochiweb, and provides a simple and clean way to connect that to your application's behavior. %prep %setup -q -n %bname-%version #patch -p1 sed -i '1s|^#!.*|#!/bin/bash|' scripts/new_webmachine.sh erl -noshell -eval ' A = "src/%bname.app.src", {ok, [{application, %bname, L}]} = file:consult(A), file:write_file(A, io_lib:format("{application, %bname, ~81p}.~n", [lists:keystore(vsn, 1, L, {vsn, "%version"})])), halt().' %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, [{erl_opts, [nowarn_deprecated_function, slim, inline, no_debug_info|lists:delete(debug_info, proplists:get_value(erl_opts, L, []))]}|lists:foldl(fun proplists:delete/2, L, [erl_opts, deps, cover_enabled])])), 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/include install -p -m 0644 include/* %buildroot%_otplibdir/%bname-%version/include/ install -d -m 0755 %buildroot%_otplibdir/%bname-%version/scripts install -p -m 0755 scripts/* %buildroot%_otplibdir/%bname-%version/scripts/ cp -r demo %buildroot%_otplibdir/%bname-%version/ for i in priv www; do find $i -type f | while read f; do install -pD -m 0644 "$f" %buildroot%_otplibdir/%bname-%version/${f#$PWD/} done done find %buildroot%_otplibdir/%bname-%version -name '*.gitignore' -delete 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* THANKS %buildroot%_docdir/%name/ %fdupes %buildroot%_otplibdir/%bname-%version %if 0 %check rebar -C %bname.rebar.config eunit %endif %files %defattr(-,root,root) %doc %_docdir/%name %_otplibdir/* %changelog * Mon Dec 26 2016 Led <ledest@gmail.com> 1.10.8-3 - fix shebang in scripts/new_webmachine.sh * Mon Dec 26 2016 Led <ledest@gmail.com> 1.10.8-2 - add provides * Mon Dec 26 2016 Led <ledest@gmail.com> 1.10.8-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