nginx-mod-dav-ext/nginx-mod-dav-ext.spec

74 lines
2.3 KiB
RPMSpec

%define nginx_version 1.25.1
Name: nginx-mod-dav-ext
Version: 3.0.0
Release: 4mamba
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/archive/refs/tags/release-%{nginx_version}.tar.gz
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-release-%{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-release-%{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
* Tue Jul 18 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.0-4mamba
- rebuilt with nginx 1.25.1
* Thu Jan 26 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.0-3mamba
- rebuilt with nginx 1.23.3
* 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