Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:22
mochiweb
mochiweb.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mochiweb.spec of Package mochiweb
%define bname mochiweb %define Name MochiWeb Name: %bname Version: 3.2.2 Release: 2 Summary: Erlang library for building lightweight HTTP servers License: MIT Group: Development/Tools/Other URL: http://github.com/mochi/%bname Source: %bname-%version.tar.xz #Patch0: %bname-%version-git.patch Patch11: %bname-2.20.1-mime_test.patch BuildArch: noarch Provides: erlang-%bname = %version-%release Requires: mochijson2 = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 BuildRequires: erlang-otp-devel # check BuildRequires: erlang-inets %description %Name is an Erlang library for building lightweight HTTP servers. %package -n mochijson2 Summary: Yet another JSON (RFC 4627) library for Erlang Group: Development/Tools/Other Provides: erlang-mochijson2 = %version-%release Provides: %bname-mochijson2 = %version-%release Provides: erlang-%bname-mochijson2 = %version-%release Requires: mochinum = %version-%release %description -n mochijson2 Yet another JSON (RFC 4627) library for Erlang. mochijson2 works with binaries as strings, arrays as lists (without an {array, _}) wrapper and it only knows how to decode UTF-8 (and ASCII). %package -n mochinum Summary: %Name numeric algorithms for floats Group: Development/Tools/Other Provides: erlang-mochinum = %version-%release Provides: %bname-mochinum = %version-%release Provides: erlang-%bname-mochinum = %version-%release %description -n mochinum Useful numeric algorithms for floats that cover some deficiencies in the math module. More interesting is digits/1, which implements the algorithm from: http://www.cs.indiana.edu/~burger/fp/index.html %prep %setup -q -n %bname-%version #patch0 -p1 %patch11 -p1 rm -f src/reloader.erl sed -i '1s|^#.*$|#!%_bindir/escript|' scripts/* %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, lists:keystore(edoc_opts, 1, lists:keydelete(deps, 1, L), {edoc_opts, case lists:keyfind(edoc_opts, 1, L) of {_, [_|_] = O} -> lists:keystore(new, 1, O, {preprocess, true}); _ -> [{preprocess, true}] end})), [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/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/ for i in examples/*; do case $i in examples/example_project) cp -drp $i %buildroot%_otplibdir/%bname-%version/examples/ ;; *) install -d -m 0755 %buildroot%_otplibdir/%bname-%version/$i install -p -m 0644 $i/* %buildroot%_otplibdir/%bname-%version/$i/ ;; esac done cp -a support %buildroot%_otplibdir/%bname-%version/ 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 CHANGES* README* %buildroot%_docdir/%name/ %if %_otp_release < 26 %check ERL_COMPILER_OPTIONS='[inline,verbose]' rebar -C %bname.rebar.config eunit -v %endif %files %defattr(-,root,root) %doc %_docdir/%name %_otplibdir/* %exclude %_otplibdir/*/ebin/mochijson2.beam %exclude %_otplibdir/*/ebin/mochinum.beam %files -n mochijson2 %defattr(-,root,root) %dir %_otplibdir/* %_otplibdir/*/ebin/mochijson2.beam %files -n mochinum %defattr(-,root,root) %dir %_otplibdir/* %_otplibdir/*/ebin/mochinum.beam %changelog * Mon Apr 15 2024 Led <ledest@gmail.com> 3.2.2-2 - disable check for Erlang/OTP >= 26 * Tue Apr 09 2024 Led <ledest@gmail.com> 3.2.2-1 - 3.2.2 * Mon Sep 25 2023 Led <ledest@gmail.com> 3.2.1-1 - 3.2.1 - git 4e5372e * Fri Feb 10 2023 Led <ledest@gmail.com> 3.1.1-1 - 3.1.1 - remove patches: + 0001-Bug-in-mochiweb_request-read_chunk_length-2-188.patch * Fri Feb 10 2023 Led <ledest@gmail.com> 3.0.0-1 - 3.0.0 - git a46b10a - remove patches: + 0001-Fix-typo-in-atom.patch * Fri Feb 10 2023 Led <ledest@gmail.com> 2.22.0-2 - add patches: + 0001-Fix-typo-in-atom.patch + 0002-Bug-in-mochiweb_request-read_chunk_length-2-188.patch * Fri Feb 10 2023 Led <ledest@gmail.com> 2.22.0-1 - 2.22.0 - git c724c3a * Sun Aug 22 2021 Led <ledest@gmail.com> 2.21.0-2 - fix build doc * Fri Aug 13 2021 Led <ledest@gmail.com> 2.21.0-1 - 2.21.0 - git 04eba48 * Sun Mar 14 2021 Led <ledest@gmail.com> 2.20.1-1 - 2.20.1 - git 070594e - add patches: + mochiweb-2.20.1-mime_test.patch * Wed Sep 11 2019 Led <ledest@gmail.com> 2.20.0-2 - update BuildRequires * Thu Jul 18 2019 Led <ledest@gmail.com> 2.20.0-1 - 2.20.0 * Sat Jul 06 2019 Led <ledest@gmail.com> 2.19.0-1 - 2.19.0 - fix rebar config generation * Sat Sep 16 2017 Led <ledest@gmail.com> 2.17.0-1 - 2.17.0 * Sun Feb 12 2017 Led <ledest@gmail.com> 2.16.0-2 - remove reloader * Sun Feb 12 2017 Led <ledest@gmail.com> 2.16.0-1 - 2.16.0 - add mochinum and mochijson2 subpackages * Mon Aug 29 2016 Led <ledest@gmail.com> 2.15.1-1 - 2.15.1 * Tue Mar 29 2016 Led <ledest@gmail.com> 2.15.0-1 - 2.15.0 * Tue Mar 29 2016 Led <ledest@gmail.com> 2.13.1-1 - 2.13.1 - git a1ed381 - erl_opts: remove debug_info, add no_debug_info - eunit_compile_opts: add debug_info * Tue Mar 29 2016 Led <ledest@gmail.com> 2.12.2-2 - clean up BuildRequires * Sun Jun 07 2015 Led <ledest@gmail.com> 2.12.2-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