Name: nginx Version: 1.27.2 Release: 1mamba Summary: High Performance Load Balancer, Web Server and Reverse Proxy Group: System/Servers Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco 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.27.1-sites-modules-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: libxcrypt-devel 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 #-D -T #:<< _EOF %patch 0 -p1 %build #:<< _EOF auto/configure \ --prefix=%{_localstatedir}/www/nginx \ --sbin-path=%{_sbindir}/nginx \ --conf-path=%{_sysconfdir}/nginx/nginx.conf \ --modules-path=%{_libdir}/nginx/modules \ --error-log-path=%{_localstatedir}/log/nginx/error_log \ --http-log-path=%{_localstatedir}/log/nginx/access_log \ --pid-path=/run/nginx.pid \ --with-compat \ --with-debug \ --with-file-aio \ --with-select_module \ --with-poll_module \ --with-http_auth_request_module \ --with-http_addition_module \ --with-http_dav_module \ --with-http_degradation_module \ --with-http_flv_module \ --with-http_geoip_module=dynamic \ --with-http_gunzip_module \ --with-http_gzip_static_module \ --with-http_image_filter_module=dynamic \ --with-http_mp4_module \ --with-http_perl_module=dynamic \ --with-http_random_index_module \ --with-http_realip_module \ --with-http_secure_link_module \ --with-http_slice_module \ --with-http_ssl_module \ --with-http_stub_status_module \ --with-http_sub_module \ --with-http_v2_module \ --with-http_xslt_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 \ --with-threads %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.conf install -d -m0755 %{buildroot}%{_sysconfdir}/nginx/sites-{available,enabled} install -d -m0755 %{buildroot}%{_sysconfdir}/nginx/modules-{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 if [ $1 -eq 1 ]; then # First install ln -s ../sites-available/default.conf %{_sysconfdir}/nginx/sites-enabled/default.conf fi if [ $1 -gt 1 -a -L %{_sysconfdir}/nginx/sites-enabled/default ]; then # Clean broken symlink from previous releases rm %{_sysconfdir}/nginx/sites-enabled/default ln -s ../sites-available/default.conf %{_sysconfdir}/nginx/sites-enabled/default.conf fi %systemd_post nginx : %preun %systemd_preun nginx : %postun %systemd_postun_with_restart 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.conf %dir %{_sysconfdir}/nginx/sites-enabled %dir %{_sysconfdir}/nginx/modules-available %dir %{_sysconfdir}/nginx/modules-enabled %{_sbindir}/nginx %{_unitdir}/nginx.service %dir %{_libdir}/nginx %dir %{_libdir}/nginx/modules %{_libdir}/nginx/modules/ngx_mail_module.so %{_libdir}/nginx/modules/ngx_stream_module.so %{_libdir}/nginx/modules/ngx_http_geoip_module.so %{_libdir}/nginx/modules/ngx_http_image_filter_module.so %{_libdir}/nginx/modules/ngx_http_perl_module.so %{_libdir}/nginx/modules/ngx_http_xslt_filter_module.so %{_libdir}/nginx/modules/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 * Thu Oct 03 2024 Automatic Build System 1.27.2-1mamba - automatic version update by autodist * Mon Sep 30 2024 Silvan Calarco 1.27.1-2mamba - restore and fix nginx.conf patch with sites-enabled support - and fix missing .conf extension in sites-available/default * Thu Aug 15 2024 Automatic Build System 1.27.1-1mamba - automatic version update by autodist * Fri May 31 2024 Automatic Build System 1.27.0-1mamba - automatic version update by autodist * Wed Apr 24 2024 Automatic Build System 1.26.0-1mamba - automatic version update by autodist * Wed Apr 17 2024 Automatic Build System 1.25.5-1mamba - automatic version update by autodist * Wed Feb 14 2024 Automatic Build System 1.25.4-1mamba - automatic version update by autodist * Wed Oct 25 2023 Automatic Build System 1.25.3-1mamba - automatic version update by autodist * Wed Aug 16 2023 Automatic Build System 1.25.2-1mamba - automatic version update by autodist * Tue Jul 18 2023 Silvan Calarco 1.25.1-2mamba - restore sites-modules-enabled patch * Wed Jun 14 2023 Automatic Build System 1.25.1-1mamba - automatic version update by autodist * Wed May 24 2023 Automatic Build System 1.25.0-1mamba - automatic version update by autodist * Wed Apr 12 2023 Automatic Build System 1.24.0-1mamba - automatic version update by autodist * Wed Mar 29 2023 Automatic Build System 1.23.4-1mamba - automatic version update by autodist * Sat Dec 17 2022 Automatic Build System 1.23.3-1mamba - automatic version update by autodist * Thu Oct 20 2022 Automatic Build System 1.23.2-1mamba - automatic version update by autodist * Thu Jul 21 2022 Automatic Build System 1.23.1-1mamba - automatic version update by autodist * Wed Jun 22 2022 Automatic Build System 1.23.0-1mamba - automatic version update by autodist * Fri Jun 10 2022 Silvan Calarco 1.22.0-3mamba - add and use modules-enabled folder; add more configuration options * Sat Jun 04 2022 Silvan Calarco 1.22.0-2mamba - restore conf-sites-enabled patch * Wed May 25 2022 Automatic Build System 1.22.0-1mamba - automatic version update by autodist * Wed Jan 26 2022 Automatic Build System 1.21.6-1mamba - automatic version update by autodist * Wed Dec 29 2021 Automatic Build System 1.21.5-1mamba - automatic version update by autodist * Wed Nov 03 2021 Automatic Build System 1.21.4-1mamba - automatic version update by autodist * Wed Sep 08 2021 Automatic Build System 1.21.3-1mamba - automatic version update by autodist * Wed Sep 01 2021 Automatic Build System 1.21.2-1mamba - automatic version update by autodist * Mon Aug 30 2021 Silvan Calarco 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 1.21.1-2mamba - configure with sites-enabled and site-available layout; remove .default configuration files * Tue Jul 06 2021 Automatic Build System 1.21.1-1mamba - automatic version update by autodist * Wed May 26 2021 Automatic Build System 1.21.0-1mamba - automatic version update by autodist * Tue Apr 20 2021 Automatic Build System 1.20.0-1mamba - automatic version update by autodist * Wed Apr 14 2021 Automatic Build System 1.19.10-1mamba - automatic version update by autodist * Tue Mar 30 2021 Automatic Build System 1.19.9-1mamba - automatic version update by autodist * Wed Mar 10 2021 Automatic Build System 1.19.8-1mamba - automatic version update by autodist * Wed Feb 17 2021 Automatic Build System 1.19.7-1mamba - automatic version update by autodist * Sun Feb 14 2021 Automatic Build System 1.19.6-1mamba - automatic version update by autodist * Wed Apr 22 2020 Automatic Build System 1.18.0-1mamba - automatic version update by autodist * Thu Aug 15 2019 Automatic Build System 1.16.1-1mamba - automatic version update by autodist * Tue Apr 23 2019 Automatic Build System 1.16.0-1mamba - automatic version update by autodist * Sat Oct 06 2018 Silvan Calarco 1.15.5-1mamba - package created using the webbuild interface