Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:aevseev
nginx
nginx.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File nginx.spec of Package nginx
%define realname nginx %define realver 1.24.0 %define srcext tar.gz # https://github.com/nginx/njs %define njs_ver 0.8.2 # https://github.com/openresty/headers-more-nginx-module %define hm_ver 0.35 # https://github.com/google/ngx_brotli %define br_ver 1.0.0rc # https://github.com/leev/ngx_http_geoip2_module %define gi2_ver 3.4 # https://github.com/arut/nginx-dav-ext-module %define davext_ver 3.0.0 # https://github.com/vision5/ngx_devel_kit %define ndk_ver 0.3.2 # https://github.com/openresty/lua-nginx-module %define lua_ver 0.10.25 # turn off the generation of debuginfo rpm (RH9) ?? %global debug_package %{nil} %if 0%{?rhel} == 7 %define ssl_ver 11 %define ssl_inc %(pkg-config --cflags openssl11) %define ssl_ld %(pkg-config --libs-only-L openssl11) %else %undefine ssl_ver %undefine ssl_inc %undefine ssl_ld %endif %if 0%{?suse_version} %define USER wwwrun %define GROUP www %define PREFIX /srv/www %define WEB_USER_HOME /var/lib/lighttpd %else %define USER apache %define GROUP apache %define PREFIX /var/www %define WEB_USER_HOME /var/www %endif %define CONF_FILE %{_sysconfdir}/%{realname}/%{realname}.conf %if ! 0%{?perl_installarchlib:1} %define perl_installarchlib %(perl -V:installarchlib | sed "s!.*='!!;s!'.*!!") %endif # Common info Name: %{realname} Version: %{realver} %if 0%{?rhel} >= 7 %define epoch 1 Epoch: 1 %endif Release: wiz%{?extraver:0.}1%{?dist} License: BSD-2-Clause Group: Productivity/Networking/Web/Servers URL: http://nginx.org/ Summary: HTTP and reverse proxy server, as well as a mail proxy server # Install-time parameters Provides: httpd http_daemon webserver %{?suse_version:suse_help_viewer} Requires: logrotate %if 0%{?rhel} >= 7 Obsoletes: nginx-filesystem Provides: nginx-filesystem = %{?epoch:%{epoch}:}%{realver}-%{release} %endif # Build-time parameters #!BuildIgnore: freetype2 BuildRequires: pkg-config BuildRequires: gcc-c++ libstdc++-devel BuildRequires: dos2unix BuildRequires: zlib-devel openssl%{?ssl_ver}-devel pcre2-devel BuildRequires: libxml2-devel libxslt-devel gd-devel BuildRequires: libatomic_ops-devel BuildRequires: libaio-devel BuildRequires: libGeoIP-devel BuildRequires: libmaxminddb-devel BuildRequires: luajit-devel pcre-devel BuildRequires: %{?suse_version:lib}brotli-devel %if ! 0%{?suse_version} BuildRequires: perl-devel BuildRequires: perl(ExtUtils::Embed) %endif BuildRequires: pkgconfig(systemd) %if 0%{?rhel} >= 8 BuildRequires: annobin %endif BuildArch: %{_build_arch} BuildRoot: %{_tmppath}/%{name}-root Source0: http://nginx.org/download/%{realname}-%{realver}%{?extraver}.%{srcext} Source1: nginx.logrotate Source4: nginx.service # https://github.com/openresty/headers-more-nginx-module Source11: https://codeload.github.com/openresty/headers-more-nginx-module/tar.gz/refs/tags/v%{hm_ver}#/headers-more-nginx-module-%{hm_ver}.tar.gz # https://github.com/nginx/njs Source12: https://codeload.github.com/nginx/njs/tar.gz/refs/tags/%{njs_ver}#/njs-%{njs_ver}.tar.gz # https://github.com/google/ngx_brotli Source13: https://codeload.github.com/google/ngx_brotli/tar.gz/refs/tags/v%{br_ver}#/ngx_brotli-%{br_ver}.tar.gz # https://github.com/leev/ngx_http_geoip2_module Source14: https://codeload.github.com/leev/ngx_http_geoip2_module/tar.gz/refs/tags/%{gi2_ver}#/ngx_http_geoip2_module-%{gi2_ver}.tar.gz # https://github.com/arut/nginx-dav-ext-module Source15: https://codeload.github.com/arut/nginx-dav-ext-module/tar.gz/refs/tags/v%{davext_ver}#/nginx-dav-ext-module-%{davext_ver}.tar.gz # https://github.com/vision5/ngx_devel_kit Source16: https://codeload.github.com/vision5/ngx_devel_kit/tar.gz/refs/tags/v%{ndk_ver}#/ngx_devel_kit-%{ndk_ver}.tar.gz # https://github.com/openresty/lua-nginx-module Source17: https://codeload.github.com/openresty/lua-nginx-module/tar.gz/refs/tags/v%{lua_ver}#/lua-nginx-module-%{lua_ver}.tar.gz Source101: nginx-upstream.conf Source102: nginx_php-fpm Source103: nginx_static Source108: nginx-brotli.conf Source109: nginx-connection-upgrade.conf %description nginx [engine x] is a HTTP and reverse proxy server, as well as a mail proxy server %package http-brotli Version: %{br_ver} Group: Productivity/Networking/Web/Servers Summary: NGINX module for Brotli compression Provides: ngx_http_brotli_filter_module = %{?epoch:%{epoch}:}%{realver}-%{release} Provides: ngx_http_brotli_static_module = %{?epoch:%{epoch}:}%{realver}-%{release} Requires: %{name} = %{?epoch:%{epoch}:}%{realver}-%{release} %description http-brotli Brotli is a generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding and 2nd order context modeling, with a compression ratio comparable to the best currently available general-purpose compression methods. It is similar in speed with deflate but offers more dense compression. ngx_brotli is a set of two nginx modules: * ngx_brotli filter module - used to compress responses on-the-fly, * ngx_brotli static module - used to serve pre-compressed files. %package http-dav-ext Version: %{davext_ver} Group: Productivity/Networking/Web/Servers Summary: nginx WebDAV PROPFIND,OPTIONS,LOCK,UNLOCK support Provides: ngx_http_dav_ext_module = %{?epoch:%{epoch}:}%{realver}-%{release} Requires: %{name} = %{?epoch:%{epoch}:}%{realver}-%{release} %description http-dav-ext The standard ngx_http_dav_module provides partial WebDAV implementation and only supports GET,HEAD,PUT,DELETE,MKCOL,COPY,MOVE methods. For full WebDAV support in nginx you need to enable the standard ngx_http_dav_module as well as this module for the missing methods. %package http-geoip Group: Productivity/Networking/Web/Servers Summary: GeoIP module for nginx Provides: ngx_http_geoip_module = %{?epoch:%{epoch}:}%{realver}-%{release} Requires: %{name} = %{?epoch:%{epoch}:}%{realver}-%{release} %description http-geoip The ngx_http_geoip_module module creates variables with values depending on the client IP address, using the precompiled MaxMind databases. %package http-geoip2 Version: %{gi2_ver} Group: Productivity/Networking/Web/Servers URL: https://github.com/leev/ngx_http_geoip2_module Summary: Nginx GeoIP2 module Provides: ngx_http_geoip2_module = %{?epoch:%{epoch}:}%{realver}-%{release} Requires: %{name} = %{?epoch:%{epoch}:}%{realver}-%{release} %description http-geoip2 ngx_http_geoip2_module - creates variables with values from the maxmind geoip2 databases based on the client IP (default) or from a specific variable (supports both IPv4 and IPv6). %package http-headers-more Version: %{hm_ver} Group: Productivity/Networking/Web/Servers Summary: Set, add, and clear arbitrary output headers in NGINX http server Provides: ngx_http_headers_more_module = %{?epoch:%{epoch}:}%{realver}-%{release} Provides: ngx_http_headers_more_filter_module = %{?epoch:%{epoch}:}%{realver}-%{release} Provides: headers-more-nginx-module = %{?epoch:%{epoch}:}%{realver}-%{release} Requires: %{name} = %{?epoch:%{epoch}:}%{realver}-%{release} %description http-headers-more This module allows you to add, set, or clear any output or input header that you specify. This is an enhanced version of the standard headers module because it provides more utilities like resetting or clearing "builtin headers" like Content-Type, Content-Length, and Server. %package http-image-filter Group: Productivity/Networking/Web/Servers Summary: Image filer module for nginx Provides: ngx_http_image_filter_module = %{?epoch:%{epoch}:}%{realver}-%{release} Requires: %{name} = %{?epoch:%{epoch}:}%{realver}-%{release} %description http-image-filter The ngx_http_image_filter_module module is a filter that transforms images in JPEG, GIF, and PNG formats. %package http-lua Version: %{lua_ver} Group: Productivity/Networking/Web/Servers Summary: Embed the Power of Lua into NGINX HTTP servers Provides: ngx_http_lua_module = %{?epoch:%{epoch}:}%{realver}-%{release} Requires: %{name} = %{?epoch:%{epoch}:}%{realver}-%{release} Requires: %{name}-http-ndk %description http-lua ngx_http_lua_module - Embed the power of Lua into Nginx HTTP Servers. This module is a core component of OpenResty. If you are using this module, then you are essentially using OpenResty. %package http-ndk Version: %{ndk_ver} Group: Productivity/Networking/Web/Servers Summary: Nginx module that adds additional generic tools Provides: ndk_http_module = %{?epoch:%{epoch}:}%{realver}-%{release} Provides: ngx_http_ndk_module = %{?epoch:%{epoch}:}%{realver}-%{release} Requires: %{name} = %{?epoch:%{epoch}:}%{realver}-%{release} %description http-ndk The NDK is an Nginx module that is designed to extend the core functionality of the excellent Nginx webserver in a way that can be used as a basis of other Nginx modules. It has functions and macros to deal with generic tasks that don't currently have generic code as part of the core distribution. The NDK itself adds few features that are seen from a user's point of view - it's just designed to help reduce the code that Nginx module developers need to write. %package http-njs Version: %{njs_ver} Group: Productivity/Networking/Web/Servers Summary: njs scripting language Provides: %{name}-http-js = %{?epoch:%{epoch}:}%{realver}-%{release} Provides: ngx_http_js_module = %{?epoch:%{epoch}:}%{realver}-%{release} Provides: ngx_http_njs_module = %{?epoch:%{epoch}:}%{realver}-%{release} Requires: %{name} = %{?epoch:%{epoch}:}%{realver}-%{release} %description http-njs njs is a subset of the JavaScript language that allows extending nginx functionality. njs is created in compliance with ECMAScript 5.1 (strict mode) with some ECMAScript 6 and later extensions. The compliance is still evolving. %package http-perl Group: Productivity/Networking/Web/Servers Summary: Perl module for nginx Provides: ngx_http_perl_module = %{?epoch:%{epoch}:}%{realver}-%{release} Requires: %{name} = %{?epoch:%{epoch}:}%{realver}-%{release} %description http-perl The ngx_http_perl_module module is used to implement location and variable handlers in Perl and insert Perl calls into SSI. %package http-xslt-filter Group: Productivity/Networking/Web/Servers Summary: XSLT filer module for nginx Provides: ngx_http_xslt_filter_module = %{?epoch:%{epoch}:}%{realver}-%{release} Requires: %{name} = %{?epoch:%{epoch}:}%{realver}-%{release} %description http-xslt-filter The ngx_http_xslt_module is a filter that transforms XML responses using one or more XSLT stylesheets. %package -n perl-%{realname} Group: Development/Languages/Perl Summary: Perl interface to the nginx HTTP server API Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description -n perl-%{realname} This module provides a Perl interface to the nginx HTTP server API. %package stream-geoip Group: Productivity/Networking/Web/Servers Summary: Stream GeoIP module for nginx Provides: ngx_stream_geoip_module = %{?epoch:%{epoch}:}%{realver}-%{release} Requires: %{name} = %{?epoch:%{epoch}:}%{realver}-%{release} %description stream-geoip The ngx_stream_geoip_module module creates variables with values depending on the client IP address, using the precompiled MaxMind databases. %package stream-geoip2 Version: %{gi2_ver} Group: Productivity/Networking/Web/Servers URL: https://github.com/leev/ngx_http_geoip2_module Summary: Nginx GeoIP2 module Provides: ngx_stream_geoip2_module = %{?epoch:%{epoch}:}%{realver}-%{release} Requires: %{name} = %{?epoch:%{epoch}:}%{realver}-%{release} %description stream-geoip2 ngx_http_geoip2_module - creates variables with values from the maxmind geoip2 databases based on the client IP (default) or from a specific variable (supports both IPv4 and IPv6). %package stream-njs Version: %{njs_ver} Group: Productivity/Networking/Web/Servers Summary: njs scripting language Provides: %{name}-stream-js = %{?epoch:%{epoch}:}%{realver}-%{release} Provides: ngx_stream_js_module = %{?epoch:%{epoch}:}%{realver}-%{release} Provides: ngx_stream_njs_module = %{?epoch:%{epoch}:}%{realver}-%{release} Requires: %{name} = %{?epoch:%{epoch}:}%{realver}-%{release} %description stream-njs njs is a subset of the JavaScript language that allows extending nginx functionality. njs is created in compliance with ECMAScript 5.1 (strict mode) with some ECMAScript 6 and later extensions. The compliance is still evolving. %package -n vim-nginx Group: Productivity/Text/Editors Summary: Syntax highlighting of nginx configuration for vim Requires: vim BuildArch: noarch %description -n vim-nginx Syntax highlighting of nginx configuration for vim. # Preparation step (unpackung and patching if necessary) %prep %setup -q -n %{realname}-%{realver}%{?extraver} -a11 -a12 -a13 -a14 -a15 -a16 -a17 %build _CFLAGS='%{optflags} %{?ssl_inc} -Wno-error=vla-parameter -fstack-check=no %{?gcc_lto}' # -Wno-int-in-bool-context -Wno-unused-result -Wno-cast-function-type' _LDFLAGS='-Wl,--as-needed -Wl,--strip-all -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro %{?ssl_ld} %{?gcc_lto}' export LUAJIT_LIB=%{_libdir} export LUAJIT_INC=$(pkg-config --cflags-only-I luajit | sed 's/-I//') ./configure \ --prefix=%{PREFIX} \ --sbin-path=%{_sbindir}/%{realname} \ --modules-path=%{_libexecdir}/nginx \ --conf-path=%{CONF_FILE} \ --error-log-path=%{_localstatedir}/log/%{realname}/error.log \ --http-log-path=%{_localstatedir}/log/%{realname}/access.log \ --user=%{USER} \ --group=%{GROUP} \ %if 0%{?suse_version} >= 1230 || 0%{?rhel} >= 7 --pid-path=%{_rundir}/%{realname}.pid \ --lock-path=%{_rundir}/lock/%{realname}.lock \ %else --pid-path=%{_localstatedir}/run/%{realname}.pid \ --lock-path=%{_localstatedir}/lock/%{realname}.lock \ %endif \ --http-client-body-temp-path=%{_localstatedir}/cache/%{realname}/client_body_temp \ --http-proxy-temp-path=%{_localstatedir}/cache/%{realname}/proxy_temp \ --http-fastcgi-temp-path=%{_localstatedir}/cache/%{realname}/fastcgi_temp \ --http-uwsgi-temp-path=%{_localstatedir}/cache/%{realname}/uwsgi_temp \ --http-scgi-temp-path=%{_localstatedir}/cache/%{realname}/scgi_temp \ \ --without-select_module \ --without-poll_module \ \ --with-threads \ --with-file-aio \ \ --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 \ \ --with-cc-opt="$_CFLAGS" \ --with-ld-opt="$_LDFLAGS" \ \ --with-pcre \ --with-pcre-jit \ \ --with-libatomic \ \ --add-dynamic-module=headers-more-nginx-module-%{hm_ver} \ --add-dynamic-module=njs-%{njs_ver}/nginx \ --add-dynamic-module=ngx_brotli-%{br_ver} \ --add-dynamic-module=ngx_http_geoip2_module-%{gi2_ver} \ --add-dynamic-module=nginx-dav-ext-module-%{davext_ver} \ --add-dynamic-module=ngx_devel_kit-%{ndk_ver} \ --add-dynamic-module=lua-nginx-module-%{lua_ver} %{__make} %{?_smp_mflags} %{__sed} -ri \ -e '1 idaemon off;\nerror_log stderr error;' \ -e '/^#error_log/d' \ -e '/^worker_processes/ a\\ninclude modules.conf;' \ -e '/^ {4}include/ a\ include conf.d/*.conf\;' \ -e '$ i\ include vhosts.d/*.conf;' \ -e '$ i\}\n\nstream {\n include streams.d/*.conf;' \ conf/nginx.conf %install %{__make} install DESTDIR=%{buildroot} INSTALLDIRS=vendor iconv -f koi8-r CHANGES.ru > c && %__mv -f c CHANGES.ru # Manpage %{__install} -D -m644 man/nginx.8 %{buildroot}%{_mandir}/man8/nginx.8 # Logrotate config %{__install} -D -m644 %{S:1} %{buildroot}%{_sysconfdir}/logrotate.d/%{realname} # Init script / systemd unit %{__install} -d -m755 %{buildroot}%{_unitdir} sed -r 's|##PREFIX##|%{PREFIX}|' %{S:4} > %{buildroot}%{_unitdir}/nginx.service # Remove not needed index page [ "%{buildroot}" != "/" ] && %{__rm} -f %{buildroot}%{PREFIX}/html/index.html # Distro-specific configs %if "%{expand:%_vendor}" == "suse" %{__mv} %{buildroot}%{PREFIX}/html %{buildroot}%{PREFIX}/htdocs %endif # Directories %{__install} -d -m755 %{buildroot}%{_sysconfdir}/%{realname}/conf.d %{__install} -d -m755 %{buildroot}%{_sysconfdir}/%{realname}/vhosts.d %{__install} -d -m755 %{buildroot}%{_sysconfdir}/%{realname}/streams.d %{__install} -d -m755 %{buildroot}%{_localstatedir}/cache/%{realname} %{__install} -d -m755 %{buildroot}%{_localstatedir}/cache/%{realname}/client_body_temp %{__install} -d -m755 %{buildroot}%{_localstatedir}/cache/%{realname}/fastcgi_temp %{__install} -d -m755 %{buildroot}%{_localstatedir}/cache/%{realname}/proxy_temp %{__install} -d -m755 %{buildroot}%{_localstatedir}/cache/%{realname}/scgi_temp %{__install} -d -m755 %{buildroot}%{_localstatedir}/cache/%{realname}/uwsgi_temp # Install configs %{__install} -m644 %{S:101} %{buildroot}%{_sysconfdir}/%{realname}/conf.d/80_php-fpm.conf %{__install} -m644 %{S:102} %{buildroot}%{_sysconfdir}/%{realname}/vhosts.d/_php-fpm %{__install} -m644 %{S:103} %{buildroot}%{_sysconfdir}/%{realname}/vhosts.d/_static %{__install} -m644 %{S:108} %{buildroot}%{_sysconfdir}/%{realname}/conf.d/20_brotli.conf %{__install} -m644 %{S:109} %{buildroot}%{_sysconfdir}/%{realname}/conf.d/04_connection_upgrade.conf # Modules configuration find %{buildroot}%{_libexecdir}/nginx/ -name "*_module.so" \ | sed -r 's|^%{buildroot}(.+)$|#load_module \1;|' \ > %{buildroot}%{_sysconfdir}/%{realname}/modules.conf # Remove zero-sized Perl bootstrap file [ "%{buildroot}" != "/" ] && %{__rm} -f %{buildroot}%{perl_vendorarch}/auto/nginx/nginx.bs # Vim syntax files %{__install} -d -m755 %{buildroot}%{_datadir}/vim/site cp -r contrib/vim/* %{buildroot}%{_datadir}/vim/site/ %clean [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} %files %defattr(-,root,root) %license LICENSE %doc CHANGES CHANGES.ru README %dir %{_sysconfdir}/%{realname}/conf.d %dir %{_sysconfdir}/%{realname}/vhosts.d %dir %{_sysconfdir}/%{realname}/streams.d %dir %{_sysconfdir}/%{realname} %config(noreplace) %{_sysconfdir}/%{realname}/conf.d/04_connection_upgrade.conf %config(noreplace) %{_sysconfdir}/%{realname}/conf.d/80_php-fpm.conf %config(noreplace) %{_sysconfdir}/%{realname}/vhosts.d/_* %config(noreplace) %{_sysconfdir}/%{realname}/*.conf %config(noreplace) %{_sysconfdir}/%{realname}/*.default %config(noreplace) %{_sysconfdir}/%{realname}/*_params %config(noreplace) %{_sysconfdir}/%{realname}/koi-utf %config(noreplace) %{_sysconfdir}/%{realname}/koi-win %config(noreplace) %{_sysconfdir}/%{realname}/mime.types %config(noreplace) %{_sysconfdir}/%{realname}/win-utf %config(noreplace) %{_sysconfdir}/logrotate.d/%{realname} %{_sbindir}/* %dir %{_libexecdir}/nginx %{_libexecdir}/nginx/ngx_mail_module.so %{_libexecdir}/nginx/ngx_stream_module.so %{_unitdir}/nginx.service %dir %attr(0755,%{USER},%{GROUP}) %{_localstatedir}/log/%{realname} %if "%{expand:%_vendor}" == "suse" %{PREFIX}/htdocs/* %else %{PREFIX}/html/* %endif %doc %{_mandir}/man8/* %dir %attr(0755,%{USER},%{GROUP}) %{_localstatedir}/cache/%{realname}/client_body_temp %dir %attr(0755,%{USER},%{GROUP}) %{_localstatedir}/cache/%{realname}/fastcgi_temp %dir %attr(0755,%{USER},%{GROUP}) %{_localstatedir}/cache/%{realname}/proxy_temp %dir %attr(0755,%{USER},%{GROUP}) %{_localstatedir}/cache/%{realname}/scgi_temp %dir %attr(0755,%{USER},%{GROUP}) %{_localstatedir}/cache/%{realname}/uwsgi_temp %dir %attr(0755,%{USER},%{GROUP}) %{_localstatedir}/cache/%{realname} %files http-brotli %defattr(-,root,root) %doc ngx_brotli-%{br_ver}/README.md %config(noreplace) %{_sysconfdir}/%{realname}/conf.d/20_brotli.conf %{_libexecdir}/nginx/ngx_http_brotli_filter_module.so %{_libexecdir}/nginx/ngx_http_brotli_static_module.so %files http-dav-ext %defattr(-,root,root) %doc nginx-dav-ext-module-%{davext_ver}/README.rst %{_libexecdir}/nginx/ngx_http_dav_ext_module.so %files http-geoip %defattr(-,root,root) %{_libexecdir}/nginx/ngx_http_geoip_module.so %files http-geoip2 %defattr(-,root,root) %doc ngx_http_geoip2_module-%{gi2_ver}/README.md %{_libexecdir}/nginx/ngx_http_geoip2_module.so %files http-headers-more %defattr(-,root,root) %doc headers-more-nginx-module-%{hm_ver}/README.markdown %{_libexecdir}/nginx/ngx_http_headers_more_filter_module.so %files http-image-filter %defattr(-,root,root) %{_libexecdir}/nginx/ngx_http_image_filter_module.so %files http-lua %defattr(-,root,root) %{_libexecdir}/nginx/ngx_http_lua_module.so %files http-ndk %defattr(-,root,root) %{_libexecdir}/nginx/ndk_http_module.so %files http-njs %defattr(-,root,root) %doc njs-%{njs_ver}/README %{_libexecdir}/nginx/ngx_http_js_module.so %files http-perl %defattr(-,root,root) %{_libexecdir}/nginx/ngx_http_perl_module.so %files http-xslt-filter %defattr(-,root,root) %{_libexecdir}/nginx/ngx_http_xslt_filter_module.so %files -n perl-%{realname} %defattr(-,root,root) %exclude %{perl_installarchlib}/perllocal.pod %exclude %{perl_vendorarch}/auto/nginx/.packlist %dir %{perl_vendorarch}/auto/nginx %dir %{perl_vendorarch}/auto %{perl_vendorarch}/nginx.pm %{perl_vendorarch}/auto/nginx/nginx.so %doc %{_mandir}/man3/nginx.3pm* %files stream-geoip %defattr(-,root,root) %{_libexecdir}/nginx/ngx_stream_geoip_module.so %files stream-geoip2 %defattr(-,root,root) %doc ngx_http_geoip2_module-%{gi2_ver}/README.md %{_libexecdir}/nginx/ngx_stream_geoip2_module.so %files stream-njs %defattr(-,root,root) %doc njs-%{njs_ver}/README %{_libexecdir}/nginx/ngx_stream_js_module.so %files -n vim-nginx %defattr(-,root,root) %dir %{_datadir}/vim/site %dir %{_datadir}/vim %{_datadir}/vim/site/* %pre /usr/sbin/groupadd -r %{GROUP} &>/dev/null ||: /usr/sbin/useradd -g %{GROUP} -s /bin/false -r -c "Web-server" -d %{WEB_USER_HOME} %{USER} &>/dev/null ||: %if "%{expand:%_vendor}" == "suse" %{service_add_pre %{name}.service} %endif %if "%{expand:%_vendor}" == "suse" %post %{service_add_post %{realname}.service} %preun %{service_del_preun %{realname}.service} %postun %{service_del_postun %{realname}.service} %else %preun rm -rf %{_localstatedir}/cache/%{realname}/* %endif %post http-brotli if [ ${1} -eq 1 ]; then %{__sed} -ri 's|^#(load_module %{_libexecdir}/nginx/ngx_http_brotli_filter_module.so;)$|\1|' %{_sysconfdir}/%{realname}/modules.conf %{__sed} -ri 's|^#(load_module %{_libexecdir}/nginx/ngx_http_brotli_static_module.so;)$|\1|' %{_sysconfdir}/%{realname}/modules.conf fi %postun http-brotli if [ ${1} -eq 0 ]; then %{__sed} -ri 's|^(load_module %{_libexecdir}/nginx/ngx_http_brotli_filter_module.so;)$|#\1|' %{_sysconfdir}/%{realname}/modules.conf %{__sed} -ri 's|^(load_module %{_libexecdir}/nginx/ngx_http_brotli_static_module.so;)$|#\1|' %{_sysconfdir}/%{realname}/modules.conf fi %post http-dav-ext if [ ${1} -eq 1 ]; then %{__sed} -ri 's|^#(load_module %{_libexecdir}/nginx/ngx_http_dav_ext_module.so;)$|\1|' %{_sysconfdir}/%{realname}/modules.conf fi %postun http-dav-ext if [ ${1} -eq 0 ]; then %{__sed} -ri 's|^(load_module %{_libexecdir}/nginx/ngx_http_dav_ext_module.so;)$|#\1|' %{_sysconfdir}/%{realname}/modules.conf fi %post http-geoip if [ ${1} -eq 1 ]; then %{__sed} -ri 's|^#(load_module %{_libexecdir}/nginx/ngx_http_geoip_module.so;)$|\1|' %{_sysconfdir}/%{realname}/modules.conf fi %postun http-geoip if [ ${1} -eq 0 ]; then %{__sed} -ri 's|^(load_module %{_libexecdir}/nginx/ngx_http_geoip_module.so;)$|#\1|' %{_sysconfdir}/%{realname}/modules.conf fi %post http-geoip2 if [ ${1} -eq 1 ]; then %{__sed} -ri 's|^#(load_module %{_libexecdir}/nginx/ngx_http_geoip2_module.so;)$|\1|' %{_sysconfdir}/%{realname}/modules.conf fi %postun http-geoip2 if [ ${1} -eq 0 ]; then %{__sed} -ri 's|^(load_module %{_libexecdir}/nginx/ngx_http_geoip2_module.so;)$|#\1|' %{_sysconfdir}/%{realname}/modules.conf fi %post http-headers-more if [ ${1} -eq 1 ]; then %{__sed} -ri 's|^#(load_module %{_libexecdir}/nginx/ngx_http_headers_more_filter_module.so;)$|\1|' %{_sysconfdir}/%{realname}/modules.conf fi %postun http-headers-more if [ ${1} -eq 0 ]; then %{__sed} -ri 's|^(load_module %{_libexecdir}/nginx/ngx_http_headers_more_filter_module.so;)$|#\1|' %{_sysconfdir}/%{realname}/modules.conf fi %post http-image-filter if [ ${1} -eq 1 ]; then %{__sed} -ri 's|^#(load_module %{_libexecdir}/nginx/ngx_http_image_filter_module.so;)$|\1|' %{_sysconfdir}/%{realname}/modules.conf fi %postun http-image-filter if [ ${1} -eq 0 ]; then %{__sed} -ri 's|^(load_module %{_libexecdir}/nginx/ngx_http_image_filter_module.so;)$|#\1|' %{_sysconfdir}/%{realname}/modules.conf fi %post http-lua if [ ${1} -eq 1 ]; then %{__sed} -ri 's|^#(load_module %{_libexecdir}/nginx/ngx_http_lua_module.so;)$|\1|' %{_sysconfdir}/%{realname}/modules.conf fi %postun http-lua if [ ${1} -eq 0 ]; then %{__sed} -ri 's|^(load_module %{_libexecdir}/nginx/ngx_http_lua_module.so;)$|#\1|' %{_sysconfdir}/%{realname}/modules.conf fi %post http-ndk if [ ${1} -eq 1 ]; then %{__sed} -ri 's|^#(load_module %{_libexecdir}/nginx/ndk_http_module.so;)$|\1|' %{_sysconfdir}/%{realname}/modules.conf fi %postun http-ndk if [ ${1} -eq 0 ]; then %{__sed} -ri 's|^(load_module %{_libexecdir}/nginx/ndk_http_module.so;)$|#\1|' %{_sysconfdir}/%{realname}/modules.conf fi %post http-njs if [ ${1} -eq 1 ]; then %{__sed} -ri 's|^#(load_module %{_libexecdir}/nginx/ngx_http_js_module.so;)$|\1|' %{_sysconfdir}/%{realname}/modules.conf fi %postun http-njs if [ ${1} -eq 0 ]; then %{__sed} -ri 's|^(load_module %{_libexecdir}/nginx/ngx_http_js_module.so;)$|#\1|' %{_sysconfdir}/%{realname}/modules.conf fi %post http-perl if [ ${1} -eq 1 ]; then %{__sed} -ri 's|^#(load_module %{_libexecdir}/nginx/ngx_http_perl_module.so;)$|\1|' %{_sysconfdir}/%{realname}/modules.conf fi %postun http-perl if [ ${1} -eq 0 ]; then %{__sed} -ri 's|^(load_module %{_libexecdir}/nginx/ngx_http_perl_module.so;)$|#\1|' %{_sysconfdir}/%{realname}/modules.conf fi %post http-xslt-filter if [ ${1} -eq 1 ]; then %{__sed} -ri 's|^#(load_module %{_libexecdir}/nginx/ngx_http_xslt_filter_module.so;)$|\1|' %{_sysconfdir}/%{realname}/modules.conf fi %postun http-xslt-filter if [ ${1} -eq 0 ]; then %{__sed} -ri 's|^(load_module %{_libexecdir}/nginx/ngx_http_xslt_filter_module.so;)$|#\1|' %{_sysconfdir}/%{realname}/modules.conf fi %post stream-geoip if [ ${1} -eq 1 ]; then %{__sed} -ri 's|^#(load_module %{_libexecdir}/nginx/ngx_stream_geoip_module.so;)$|\1|' %{_sysconfdir}/%{realname}/modules.conf fi %postun stream-geoip if [ ${1} -eq 0 ]; then %{__sed} -ri 's|^(load_module %{_libexecdir}/nginx/ngx_stream_geoip_module.so;)$|#\1|' %{_sysconfdir}/%{realname}/modules.conf fi %post stream-geoip2 if [ ${1} -eq 1 ]; then %{__sed} -ri 's|^#(load_module %{_libexecdir}/nginx/ngx_stream_geoip2_module.so;)$|\1|' %{_sysconfdir}/%{realname}/modules.conf fi %postun stream-geoip2 if [ ${1} -eq 0 ]; then %{__sed} -ri 's|^(load_module %{_libexecdir}/nginx/ngx_stream_geoip2_module.so;)$|#\1|' %{_sysconfdir}/%{realname}/modules.conf fi %post stream-njs if [ ${1} -eq 1 ]; then %{__sed} -ri 's|^#(load_module %{_libexecdir}/nginx/ngx_stream_js_module.so;)$|\1|' %{_sysconfdir}/%{realname}/modules.conf fi %postun stream-njs if [ ${1} -eq 0 ]; then %{__sed} -ri 's|^(load_module %{_libexecdir}/nginx/ngx_stream_js_module.so;)$|#\1|' %{_sysconfdir}/%{realname}/modules.conf fi %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor