Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:20
lhttpc
lhttpc.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lhttpc.spec of Package lhttpc
%define bname lhttpc Name: %bname Version: 1.6.2 Release: 5 Summary: Lightweight HTTP Client for Erlang License: BSD-3-Clause Group: Development/Tools/Other URL: https://github.com/erlcloud/%bname Source: %bname-%version.tar.xz Patch1: %bname-1.6.1-stacktrace.patch Patch2: %bname-1.6.2-test-ssl-options.patch BuildArch: noarch Provides: erlang-%bname = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 BuildRequires: erlang-otpbp-devel >= 4.21.0 # check BuildRequires: erlang-inets BuildRequires: erlang-otpbp >= 4.21.0 %description Lightweight HTTP Client for Erlang. %package devel Summary: Headers of %bname Group: Development/Tools/Other Provides: erlang-%bname-devel = %version-%release Conflicts: %name < 1.6.1-1 %description devel Lightweight HTTP Client for Erlang. This package contains headers of %bname. %package doc Summary: Documentation of %bname Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release Conflicts: %name < 1.6.1-1 %description doc Lightweight HTTP Client for Erlang. This package contains documentation of %bname. %prep %setup -q -n %bname-%version %patch1 -p1 %patch2 -p1 erl -noshell -eval ' {ok, [{application, Name, L}]} = file:consult("src/%bname.app.src"), lists:keyfind(vsn, 1, L) =:= {vsn, "%version"} orelse file:write_file("src/%bname.app.src", io_lib:format("{application, ~s, ~p}.~n", [Name, lists:keystore(vsn, 1, L, {vsn, "%version"})])), 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().' %if %_otp_release >= 24 ERL_COMPILER_OPTIONS="[inline,verbose,{parse_transform,otpbp_pt}]" \ %else ERL_COMPILER_OPTIONS="[inline,verbose]" \ %endif 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/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 %check %if %_otp_release >= 24 ERL_COMPILER_OPTIONS="[inline,verbose,{parse_transform,otpbp_pt}]" \ %else ERL_COMPILER_OPTIONS="[inline,verbose]" \ %endif rebar -C %bname.rebar.config eunit -v %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 * Thu Jul 21 2022 Led <ledest@gmail.com> 1.6.2-5 - clean up * Thu Jul 21 2022 Led <ledest@gmail.com> 1.6.2-4 - fix build with Erlang/OTP >= 24 * Wed Jul 21 2021 Led <ledest@gmail.com> 1.6.2-3 - add patches: + lhttpc-1.6.2-test-ssl-options.patch * Tue Sep 10 2019 Led <ledest@gmail.com> 1.6.2-2 - update BuildRequires * Mon Nov 12 2018 Led <ledest@gmail.com> 1.6.2-1 - 1.6.2 * Tue Oct 30 2018 Led <ledest@gmail.com> 1.6.1-3 - update patches: + lhttpc-1.6.1-stacktrace.patch * Tue Oct 30 2018 Led <ledest@gmail.com> 1.6.1-2 - fix Provides * Mon Oct 29 2018 Led <ledest@gmail.com> 1.6.1-1 - 1.6.1 - remove patches: + lhttpc-1.5.1-crypto.patch - add patches: + lhttpc-1.6.1-stacktrace.patch - move docs and headers to separate subpackages * Wed Mar 29 2017 Led <ledest@gmail.com> 1.5.3-1 - 1.5.3 * Tue Mar 07 2017 Led <ledest@gmail.com> 1.5.1-2 - fix install * Tue Mar 07 2017 Led <ledest@gmail.com> 1.5.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