File nginx-module-acme.spec of Package nginx-module-acme

Name:           nginx-module-acme
Version:        0.3.1~0
Release:        0
Summary:        An NGINX module with the implementation of the automatic certificate management (ACMEv2) protocol
License:        Apache License 2.0
Group:          Productivity/Networking/Web/Proxy
URL:            https://github.com/nginx/nginx-acme
Source0:        nginx-acme-%version.tar.gz
Source1:        registry.tar.gz
BuildRequires:  nginx-source
BuildRequires:  pcre2-devel-static
BuildRequires:  cargo
BuildRequires:  clang
#BuildRequires:  cargo-packaging
%ngx_conditionals
%ngx_requires

%description
nginx-acme is an NGINX module with the implementation of the automatic certificate management (ACMEv2) protocol.

The module implements following specifications:

- RFC8555 (Automatic Certificate Management Environment) with limitations:
  - Only HTTP-01 challenge type is supported
- RFC8737 (ACME TLS Application-Layer Protocol Negotiation (ALPN) Challenge Extension)
- RFC8738 (ACME IP Identifier Validation Extension)
- draft-ietf-acme-profiles (ACME Profiles Extension, version 00)

%prep
%setup -n nginx-acme-%version -a1
cp -r /usr/src/nginx .

%build
export CARGO_HOME=$PWD/.cargo
cd nginx
%ngx_configure --add-dynamic-module=..
%make_build modules

%install
mkdir -p %buildroot/%ngx_module_dir
install -D -m 0644 nginx/objs/ngx_http_acme_module.so %buildroot/%ngx_module_dir

%files
%license LICENSE
%ngx_module_dir/*.so

%changelog
openSUSE Build Service is sponsored by