--- nginx-lua.spec.orig 2015-04-21 15:34:33.000000000 +0000 +++ nginx-lua.spec 2015-09-03 09:29:25.648410139 +0000 @@ -56,14 +56,16 @@ # end of distribution specific definitions +%define cname nginx + Summary: High performance web server -Name: nginx +Name: %{cname}-lua Version: 1.8.0 -Release: 1%{?dist}.ngx +Release: 1%{?dist}.rdemo Vendor: nginx inc. URL: http://nginx.org/ -Source0: http://nginx.org/download/%{name}-%{version}.tar.gz +Source0: http://nginx.org/download/%{cname}-%{version}.tar.gz Source1: logrotate Source2: nginx.init Source3: nginx.sysconf @@ -77,7 +79,7 @@ License: 2-clause BSD-like license -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildRoot: %{_tmppath}/%{cname}-%{version}-%{release}-root BuildRequires: zlib-devel BuildRequires: pcre-devel @@ -99,7 +101,7 @@ %endif %prep -%setup -q +%setup -q -n %{cname}-%{version} %build ./configure \ @@ -134,13 +136,15 @@ --with-mail_ssl_module \ --with-file-aio \ --with-ipv6 \ + --add-module=/ngx_devel_kit-0.2.19 \ + --add-module=/lua-nginx-module-0.9.16 \ --with-debug \ %{?with_spdy:--with-http_spdy_module} \ --with-cc-opt="%{optflags} $(pcre-config --cflags)" \ $* make %{?_smp_mflags} -%{__mv} %{_builddir}/%{name}-%{version}/objs/nginx \ - %{_builddir}/%{name}-%{version}/objs/nginx.debug +%{__mv} %{_builddir}/%{cname}-%{version}/objs/nginx \ + %{_builddir}/%{cname}-%{version}/objs/nginx.debug ./configure \ --prefix=%{_sysconfdir}/nginx \ --sbin-path=%{_sbindir}/nginx \ @@ -173,6 +177,8 @@ --with-mail_ssl_module \ --with-file-aio \ --with-ipv6 \ + --add-module=/ngx_devel_kit-0.2.19 \ + --add-module=/lua-nginx-module-0.9.16 \ %{?with_spdy:--with-http_spdy_module} \ --with-cc-opt="%{optflags} $(pcre-config --cflags)" \ $* @@ -235,7 +241,7 @@ $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/nginx %endif -%{__install} -m644 %{_builddir}/%{name}-%{version}/objs/nginx.debug \ +%{__install} -m644 %{_builddir}/%{cname}-%{version}/objs/nginx.debug \ $RPM_BUILD_ROOT%{_sbindir}/nginx.debug %clean