diff --git a/README.md b/README.md index 1dbc861..ab5e8a5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # nginx-mod-dav-ext +nginx module for WebDAV PROPFIND,OPTIONS,LOCK,UNLOCK support. + diff --git a/nginx-mod-dav-ext.spec b/nginx-mod-dav-ext.spec new file mode 100644 index 0000000..6272249 --- /dev/null +++ b/nginx-mod-dav-ext.spec @@ -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 +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 3.0.0-2mamba +- add configuration file in /etc/nginx/modules-available; install module below %{_libdir}/nginx/modules + +* Fri Jun 10 2022 Silvan Calarco 3.0.0-1mamba +- package created using the webbuild interface