Skip to content

Commit

Permalink
Rename package to nginx-lua-waf and set conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnjack committed Feb 2, 2024
1 parent 5fbdc24 commit e2c2f99
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions nginx.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%global nginx_user nginx
%global nginx_user nginx
%global nginx_moduledir %{_libdir}/nginx/modules
%global nginx_moduleconfdir %{_datadir}/nginx/modules
%global nginx_srcdir %{_usrsrc}/%{name}-%{version}-%{release}
Expand All @@ -16,12 +16,13 @@
# By default downloading of sources is disabled
%undefine _disable_source_fetch

Name: nginx
Summary: High performance web server
Name: nginx-lua-waf
Summary: High performance web server nginx with lua and modsecurity plugins
Version: 1.25.3
Release: 2%{?dist}
Release: 3%{?dist}
Conflicts: nginx nginx-mimetypes nginx-core luajit

Source0: https://nginx.org/download/%{name}-%{version}.tar.gz
Source0: https://nginx.org/download/nginx-%{version}.tar.gz
Source1: nginx.service
Source2: nginx.logrotate
Source3: nginx.conf
Expand All @@ -46,7 +47,7 @@ efficiency, and flexibility. This build includes lua and modsecurity plugins.

%prep
cp %{SOURCE1} %{SOURCE2} %{SOURCE3} .
%setup -q
%setup -n nginx-%{version}
# Unpack all lua dependencies
tar -xzvf %{SOURCE100} -C %{_builddir}
%global SOURCE100 %{_builddir}/lua-nginx-module-%{lua_nginx_module_version}
Expand Down

0 comments on commit e2c2f99

Please sign in to comment.