mirror of https://github.com/openresty/openresty
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.9 KiB
C
69 lines
1.9 KiB
C
13 years ago
|
%define resty_prefix /opt/
|
||
|
%define resty_user nobody
|
||
|
%define resty_group nobody
|
||
|
|
||
|
%define dir_name openresty
|
||
|
|
||
9 years ago
|
Name: openresty
|
||
13 years ago
|
|
||
|
Version: 1.0.5.1
|
||
|
Release: 5
|
||
|
Summary: nginx for openresty
|
||
|
|
||
|
Group: Productivity/Networking/Web/Servers
|
||
|
License: BSD
|
||
|
URL: http://www.openresty.org/
|
||
|
|
||
9 years ago
|
Source0: openresty-%{version}rc%{release}.tar.gz
|
||
13 years ago
|
|
||
|
BuildRoot: %{build_root}
|
||
|
|
||
|
AutoReqProv: no
|
||
13 years ago
|
BuildRequires: gcc >= 3.0, openssl-devel, pcre-devel, readline-devel
|
||
|
Requires: openssl, pcre, readline
|
||
13 years ago
|
|
||
|
%description
|
||
9 years ago
|
OpenResty is a full-fledged web application server by bundling the standard Nginx core, lots of 3rd-party Nginx modules, as well as most of their external dependencie
|
||
13 years ago
|
|
||
|
%prep
|
||
9 years ago
|
#%setup -q -n openresty-%{version}
|
||
|
%setup -q -n openresty-%{version}rc%{release}
|
||
13 years ago
|
|
||
|
%build
|
||
|
#--with-pg_config=opt/pg90/bin/pg_config \
|
||
|
#--with-luajit \
|
||
|
./configure --prefix=%{resty_prefix}/%{dir_name} \
|
||
|
--with-http_postgres_module
|
||
|
|
||
|
make %{?_smp_mflags}
|
||
|
|
||
|
%install
|
||
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||
|
|
||
|
cur_dir=`pwd`
|
||
|
|
||
|
cd $RPM_BUILD_ROOT%{resty_prefix}/%{dir_name}/nginx/ && \
|
||
|
mkdir client_body_temp fastcgi_temp proxy_temp
|
||
|
|
||
|
cd $RPM_BUILD_ROOT && (find . -type f | sed -e 's|^./|/|g' > $cur_dir/%{name}.manifest)
|
||
|
cd $RPM_BUILD_ROOT && (find . -type l | sed -e 's|^./|/|g' >> $cur_dir/%{name}.manifest)
|
||
|
|
||
|
echo %{resty_prefix}/%{dir_name}/nginx/logs >> $cur_dir/%{name}.manifest
|
||
|
echo %{resty_prefix}/%{dir_name}/nginx/client_body_temp >> $cur_dir/%{name}.manifest
|
||
|
echo %{resty_prefix}/%{dir_name}/nginx/fastcgi_temp >> $cur_dir/%{name}.manifest
|
||
|
echo %{resty_prefix}/%{dir_name}/nginx/proxy_temp >> $cur_dir/%{name}.manifest
|
||
|
|
||
|
#echo %{resty_prefix}/%{dir_name}/nginx/proxy_temp >> $cur_dir/%{name}.manifest
|
||
|
|
||
|
%clean
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
%files -f %{name}.manifest
|
||
|
%defattr(-,%{resty_user},%{resty_group},-)
|
||
|
#%doc
|
||
|
|
||
|
%changelog
|
||
|
* Wed Aug 24 2011 liseen <liseen.wan@gmail.com>
|
||
|
- initial packaging
|
||
|
|