Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:20
webmachine
webmachine.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File webmachine.spec of Package webmachine
%define bname webmachine Name: %bname Version: 1.11.1 Release: 3 Summary: Erlang library for building lightweight HTTP servers License: Apache-2.0 Group: Development/Tools/Other URL: http://github.com/%bname/%bname Source: %bname-%version.tar.xz Patch0: %bname-%version-git.patch Patch1: 0001-Fix-compilation-on-OTP-21-by-suppressing-warnings-ab.patch Patch11: %bname-1.11.1-match-float.patch BuildArch: noarch Provides: erlang-%bname = %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. %package devel Summary: Headers of %bname Group: Development/Tools/Other Provides: erlang-%bname-devel = %version-%release Conflicts: %name < 1.10.8-4 %description devel 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. This package contains headers of %bname. %package doc Summary: Documentation of %bname Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release Conflicts: %name < 1.10.8-4 %description doc 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. This package contains documentation of %bname. %prep %setup -q -n %bname-%version %patch0 -p1 %patch1 -p1 -R -F2 %patch11 -p1 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, ~81p}.~n", [lists:keystore(vsn, 1, L, {vsn, "%version"})]), [raw]), init:stop().' %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().' ln -sf rebar.config.script %bname.rebar.config.script 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/ for i in trace www; do install -d -m 0755 %buildroot%_otplibdir/%bname-%version/priv/$i install -m 0644 priv/$i/* %buildroot%_otplibdir/%bname-%version/priv/$i/ done 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 ERL_COMPILER_OPTIONS="[inline,verbose]" rebar -C %bname.rebar.config compile eunit -v %endif %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 * Sun Aug 27 2023 Led <ledest@gmail.com> 1.11.1-3 - add patches: + webmachine-1.11.1-match-float.patch * Thu Sep 19 2019 Led <ledest@gmail.com> 1.11.1-2 - git f2f48e4 * Sun Feb 25 2018 Led <ledest@gmail.com> 1.11.1-1 - 1.11.1 - git fa7c802 - fir URL - remove patches: + 0001-Fix-deprecation-warning.patch + 0002-Fix-warning-for-deprecated-of-crypto-rand_bytes-1.patch - add patches: + 0001-Fix-compilation-on-OTP-21-by-suppressing-warnings-ab.patch * Sun Feb 25 2018 Led <ledest@gmail.com> 1.10.9-1 - 1.10.9 * Sun Feb 25 2018 Led <ledest@gmail.com> 1.10.8-6 - add patches: + 0001-Fix-deprecation-warning.patch + 0001-Fix-warning-for-deprecated-of-crypto-rand_bytes-1.patch * Sat Feb 10 2018 Led <ledest@gmail.com> 1.10.8-5 - clean up Provides * Thu Dec 28 2017 Led <ledest@gmail.com> 1.10.8-4 - move docs and headers to separate subpackages * 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