nginx/nginx.spec

209 lines
6.9 KiB
RPMSpec

Name: nginx
Version: 1.22.0
Release: 1mamba
Summary: High Performance Load Balancer, Web Server and Reverse Proxy
Group: System/Servers
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://nginx.org/
Source: https://github.com/nginx/nginx.git/release-%{version}/nginx-%{version}.tar.bz2
Source1: nginx.service
Source2: nginx-fastcgi-php.conf
Source3: nginx-sites-available-default
Patch0: nginx-1.21.1-conf-sites-enabled.patch
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libGeoIP-devel
BuildRequires: libgd-devel
BuildRequires: libnsl-devel
BuildRequires: libopenssl-devel
BuildRequires: libpcre2-devel
BuildRequires: libperl
BuildRequires: libxml2-devel
BuildRequires: libxslt-devel
BuildRequires: libz-devel
BuildRequires: perl-devel
## AUTOBUILDREQ-END
%systemd_requires
%description
High Performance Load Balancer, Web Server and Reverse Proxy.
%debug_package
%prep
%setup -q
#%patch0 -p1
%build
auto/configure \
--prefix=%{_localstatedir}/www/nginx \
--sbin-path=%{_sbindir}/nginx \
--conf-path=%{_sysconfdir}/nginx/nginx.conf \
--modules-path=%{_libdir}/nginx/ \
--error-log-path=%{_localstatedir}/log/nginx/error_log \
--http-log-path=%{_localstatedir}/log/nginx/access_log \
--pid-path=/run/nginx.pid \
--with-select_module \
--with-poll_module \
--with-http_ssl_module \
--with-http_v2_module \
--with-http_realip_module \
--with-http_addition_module \
--with-http_xslt_module=dynamic \
--with-http_image_filter_module=dynamic \
--with-http_geoip_module=dynamic \
--with-http_sub_module \
--with-http_dav_module \
--with-http_flv_module \
--with-http_mp4_module \
--with-http_gunzip_module \
--with-http_gzip_static_module \
--with-http_auth_request_module \
--with-http_random_index_module \
--with-http_secure_link_module \
--with-http_degradation_module \
--with-http_slice_module \
--with-http_stub_status_module \
--with-http_perl_module=dynamic \
--with-mail=dynamic \
--with-mail_ssl_module \
--with-stream=dynamic \
--with-stream_ssl_module \
--with-stream_realip_module \
--with-stream_geoip_module=dynamic \
--with-stream_ssl_preread_module
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/nginx.service
install -D -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/nginx/snippets/fastcgi-php.conf
install -D -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/nginx/sites-available/default
install -d -m0755 %{buildroot}%{_sysconfdir}/nginx/sites-{available,enabled}
install -d -m0755 %{buildroot}%{_localstatedir}/www/html
cp %{buildroot}%{_localstatedir}/www/nginx/html/index.html \
%{buildroot}%{_localstatedir}/www/html/index.nginx-openmamba.html
rm -f %{buildroot}%{_sysconfdir}/nginx/*.default
find %{buildroot} -type f -name perllocal.pod -exec rm -f {} ';'
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
[ $1 -eq 1 ] && ln -s ../sites-available/default %{_sysconfdir}/nginx/sites-enabled/default
%systemd_post nginx
:
%preun
%systemd_preun nginx
:
%postun
%systemd_postun nginx
:
%files
%defattr(-,root,root)
%dir %{_sysconfdir}/nginx
%config(noreplace) %{_sysconfdir}/nginx/fastcgi.conf
%config(noreplace) %{_sysconfdir}/nginx/fastcgi_params
%config(noreplace) %{_sysconfdir}/nginx/mime.types
%config(noreplace) %{_sysconfdir}/nginx/nginx.conf
%config(noreplace) %{_sysconfdir}/nginx/scgi_params
%config(noreplace) %{_sysconfdir}/nginx/uwsgi_params
%{_sysconfdir}/nginx/koi-utf
%{_sysconfdir}/nginx/koi-win
%{_sysconfdir}/nginx/win-utf
%dir %{_sysconfdir}/nginx/snippets
%{_sysconfdir}/nginx/snippets/fastcgi-php.conf
%dir %{_sysconfdir}/nginx/sites-available
%config(noreplace) %{_sysconfdir}/nginx/sites-available/default
%dir %{_sysconfdir}/nginx/sites-enabled
%{_sbindir}/nginx
%{_unitdir}/nginx.service
%dir %{_libdir}/nginx
%{_libdir}/nginx/ngx_mail_module.so
%{_libdir}/nginx/ngx_stream_module.so
%{_libdir}/nginx/ngx_http_geoip_module.so
%{_libdir}/nginx/ngx_http_image_filter_module.so
%{_libdir}/nginx/ngx_http_perl_module.so
%{_libdir}/nginx/ngx_http_xslt_filter_module.so
%{_libdir}/nginx/ngx_stream_geoip_module.so
%{perl_sitearch}/*
%dir %{_localstatedir}/www/nginx
%dir %{_localstatedir}/www/nginx/html
%{_localstatedir}/www/nginx/html/*.html
%{_localstatedir}/www/html/index.nginx-openmamba.html
%dir %{_localstatedir}/log/nginx
%{_mandir}/man3/nginx.3pm*
%changelog
* Wed May 25 2022 Automatic Build System <autodist@mambasoft.it> 1.22.0-1mamba
- automatic version update by autodist
* Wed Jan 26 2022 Automatic Build System <autodist@mambasoft.it> 1.21.6-1mamba
- automatic version update by autodist
* Wed Dec 29 2021 Automatic Build System <autodist@mambasoft.it> 1.21.5-1mamba
- automatic version update by autodist
* Wed Nov 03 2021 Automatic Build System <autodist@mambasoft.it> 1.21.4-1mamba
- automatic version update by autodist
* Wed Sep 08 2021 Automatic Build System <autodist@mambasoft.it> 1.21.3-1mamba
- automatic version update by autodist
* Wed Sep 01 2021 Automatic Build System <autodist@mambasoft.it> 1.21.2-1mamba
- automatic version update by autodist
* Mon Aug 30 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.21.1-3mamba
- provide snippets/fastcgi-php.conf and move default site from nginx.conf to sites-available/default
* Sun Aug 29 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.21.1-2mamba
- configure with sites-enabled and site-available layout; remove .default configuration files
* Tue Jul 06 2021 Automatic Build System <autodist@mambasoft.it> 1.21.1-1mamba
- automatic version update by autodist
* Wed May 26 2021 Automatic Build System <autodist@mambasoft.it> 1.21.0-1mamba
- automatic version update by autodist
* Tue Apr 20 2021 Automatic Build System <autodist@mambasoft.it> 1.20.0-1mamba
- automatic version update by autodist
* Wed Apr 14 2021 Automatic Build System <autodist@mambasoft.it> 1.19.10-1mamba
- automatic version update by autodist
* Tue Mar 30 2021 Automatic Build System <autodist@mambasoft.it> 1.19.9-1mamba
- automatic version update by autodist
* Wed Mar 10 2021 Automatic Build System <autodist@mambasoft.it> 1.19.8-1mamba
- automatic version update by autodist
* Wed Feb 17 2021 Automatic Build System <autodist@mambasoft.it> 1.19.7-1mamba
- automatic version update by autodist
* Sun Feb 14 2021 Automatic Build System <autodist@mambasoft.it> 1.19.6-1mamba
- automatic version update by autodist
* Wed Apr 22 2020 Automatic Build System <autodist@mambasoft.it> 1.18.0-1mamba
- automatic version update by autodist
* Thu Aug 15 2019 Automatic Build System <autodist@mambasoft.it> 1.16.1-1mamba
- automatic version update by autodist
* Tue Apr 23 2019 Automatic Build System <autodist@mambasoft.it> 1.16.0-1mamba
- automatic version update by autodist
* Sat Oct 06 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 1.15.5-1mamba
- package created using the webbuild interface