Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
p1_oauth2
p1_oauth2.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File p1_oauth2.spec of Package p1_oauth2
%define bname p1_oauth2 Name: %bname Version: 0.6.7 Release: 1 Summary: P1 OAuth2 License: MIT Group: Development/Tools/Other URL: https://github.com/processone/%bname Source: %bname-%version.tar.xz #Patch: %bname-%version-git.patch BuildArch: noarch Provides: erlang-%bname = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 BuildRequires: erlang-xmerl-devel # check BuildRequires: erlang-proper %description This library is designed to simplify the implementation of the server side of OAuth2 (RFC 6749). It provides no support for developing clients. %package doc Summary: Documentation of %bname Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release Conflicts: %name < 0.6.7-1 %description doc This library is designed to simplify the implementation of the server side of OAuth2 (RFC 6749). It provides no support for developing clients. This package contains documentation of %bname. %prep %setup -q -n %bname-%version #patch -p1 sed -r -i '/^%%%% @doc /,/^-/s/^%%%% (@doc| ) /%%%% /' src/oauth2_{backend,token_generation}.erl %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, [{preprocess, true}]})), [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/doc install -p -m 0644 doc/*.{css,html,png} %buildroot%_otplibdir/%bname-%version/doc/ install -d -m 0755 %buildroot%_docdir/%name ln -sf %_otplibdir/%name-%version/doc %buildroot%_docdir/%name/html install -p -m 0644 *.md %buildroot%_docdir/%name/ %check rebar -C %bname.rebar.config eunit %files %defattr(-,root,root) %_otplibdir/* %exclude %_otplibdir/%bname-*/doc %files doc %defattr(-,root,root) %doc %_docdir/%name %doc %dir %_otplibdir/%bname-* %doc %_otplibdir/%bname-*/doc %changelog * Tue Jan 03 2017 Led <ledest@gmail.com> 0.6.7-1 - 0.6.7 - move docs to separate subpackage - enable %%check - update BuildRequires * Tue Jan 03 2017 Led <ledest@gmail.com> 0.6.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