add configuration file in /etc/nginx/modules-available; install module below %{_libdir}/nginx/modules [release 3.0.0-2mamba;Fri Jun 10 2022]
This commit is contained in:
parent
18244a82b1
commit
0e7ab6b793
@ -1,2 +1,4 @@
|
||||
# nginx-mod-dav-ext
|
||||
|
||||
nginx module for WebDAV PROPFIND,OPTIONS,LOCK,UNLOCK support.
|
||||
|
||||
|
67
nginx-mod-dav-ext.spec
Normal file
67
nginx-mod-dav-ext.spec
Normal file
@ -0,0 +1,67 @@
|
||||
%define nginx_version 1.22.0
|
||||
Name: nginx-mod-dav-ext
|
||||
Version: 3.0.0
|
||||
Release: 2mamba
|
||||
Summary: nginx module for WebDAV PROPFIND,OPTIONS,LOCK,UNLOCK support
|
||||
Group: System/Servers
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: https://github.com/arut/nginx-dav-ext-module/
|
||||
Source: https://github.com/arut/nginx-dav-ext-module.git/v%{version}/nginx-dav-ext-module-%{version}.tar.bz2
|
||||
Source1: https://github.com/nginx/nginx.git/release-%{nginx_version}/nginx-%{nginx_version}.tar.bz2
|
||||
License: BSD
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: libxml2-devel
|
||||
BuildRequires: libxslt-devel
|
||||
## AUTOBUILDREQ-END
|
||||
Requires: nginx = %{nginx_version}
|
||||
|
||||
%description
|
||||
nginx module for WebDAV PROPFIND,OPTIONS,LOCK,UNLOCK support.
|
||||
|
||||
%debug_package
|
||||
|
||||
%prep
|
||||
%setup -q -c -n nginx-dav-ext-module-%{version} -a0 -a1
|
||||
mv nginx-dav-ext-module-%{version} nginx-dav-ext-module
|
||||
|
||||
%build
|
||||
cd nginx-%{nginx_version}
|
||||
auto/configure \
|
||||
--modules-path=%{_libdir}/nginx/modules \
|
||||
--with-compat \
|
||||
--with-http_dav_module \
|
||||
--add-dynamic-module="../nginx-dav-ext-module"
|
||||
|
||||
%make
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
cd nginx-%{nginx_version}/objs
|
||||
for mod in ngx_*.so; do
|
||||
install -D -m0755 $mod %{buildroot}%{_libdir}/nginx/modules/$mod
|
||||
done
|
||||
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/nginx/modules-available
|
||||
cat > %{buildroot}%{_sysconfdir}/nginx/modules-available/mod-http-dav-ext.conf << _EOF
|
||||
load_module %{_libdir}/nginx/modules/ngx_http_dav_ext_module.so;
|
||||
_EOF
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_sysconfdir}/nginx/modules-available/mod-http-dav-ext.conf
|
||||
%{_libdir}/nginx/modules/ngx_http_dav_ext_module.so
|
||||
%doc nginx-dav-ext-module/LICENSE
|
||||
|
||||
%changelog
|
||||
* Fri Jun 10 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.0-2mamba
|
||||
- add configuration file in /etc/nginx/modules-available; install module below %{_libdir}/nginx/modules
|
||||
|
||||
* Fri Jun 10 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.0-1mamba
|
||||
- package created using the webbuild interface
|
Loading…
Reference in New Issue
Block a user