Accepting request 236476 from home:lrupp:branches:server:http

- use zip file downloaded from github directly, as requested by 
  Tomáš Chvátal

- add and include FancyIndex module (with conditional)
- explicit enable http_ssl_module

OBS-URL: https://build.opensuse.org/request/show/236476
OBS-URL: https://build.opensuse.org/package/show/server:http/nginx?expand=0&rev=45
This commit is contained in:
Tomáš Chvátal 2014-06-14 11:02:59 +00:00 committed by Git OBS Bridge
parent 2712b3de7e
commit 74eda1c420
3 changed files with 34 additions and 2 deletions

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Fri Jun 6 13:54:27 UTC 2014 - lars@linux-schulserver.de
- use zip file downloaded from github directly, as requested by
Tomáš Chvátal
-------------------------------------------------------------------
Mon May 5 10:24:04 UTC 2014 - lars@linux-schulserver.de
- add and include FancyIndex module (with conditional)
- explicit enable http_ssl_module
-------------------------------------------------------------------
Wed Mar 19 10:04:14 UTC 2014 - aj@ajaissle.de

View File

@ -38,6 +38,7 @@ Release: 0
%define ngx_tmp_scgi %{ngx_home}/scgi/
%define ngx_tmp_uwsgi %{ngx_home}/uwsgi/
%define ngx_user_group nginx
%define fancyindex_version 0.3.3
%define with_cpp_test 0
%define with_google_perftools 0
%if 0%{?suse_version} >= 1110
@ -47,6 +48,7 @@ Release: 0
# passenger is required by webyast
%define with_passenger 1
%endif
%define with_fancyindex 1
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -69,6 +71,7 @@ BuildRequires: curl-devel
BuildRequires: ruby-devel
BuildRequires: rubygem-passenger
BuildRequires: rubygem-passenger-devel-static
BuildRequires: unzip
Recommends: packageand(rubygem-passenger:rubygem-passenger-nginx)
%endif
%if 0%{?suse_version} >= 1210
@ -89,6 +92,7 @@ Source: http://nginx.org/download/nginx-%{version}.tar.gz
Source1: nginx.init
Source2: nginx.logrotate
Source3: nginx.service
Source4: https://github.com/aperezdc/ngx-fancyindex/archive/v%{fancyindex_version}.zip
Source100: nginx.rpmlintrc
# PATCH-FIX-UPSTREAM nginx-0.4.0-no_Werror.patch
Patch: nginx-0.4.0-no_Werror.patch
@ -126,7 +130,7 @@ Author:
Igor Sysoev
%prep
%setup -n %{pkg_name}-%{version}
%setup -n %{pkg_name}-%{version} -b4
%patch
%patch2
%patch3
@ -146,6 +150,12 @@ fi
%endif
%patch7
%endif
%if 0%{with_fancyindex}
mkdir -p ngx-fancyindex-%{fancyindex_version}
pushd ../ngx-fancyindex-%{fancyindex_version}
cp -r template* LICENSE *.rst $RPM_BUILD_DIR/%{pkg_name}-%{version}/ngx-fancyindex-%{fancyindex_version}/
popd
%endif
%build
./configure \
@ -184,6 +194,7 @@ fi
--with-http_gzip_static_module \
--with-http_random_index_module \
--with-http_secure_link_module \
--with-http_ssl_module \
--with-http_degradation_module \
--with-http_stub_status_module \
--with-http_perl_module \
@ -203,6 +214,9 @@ fi
%if 0%{?with_cpp_test}
--with-cpp_test_module \
%endif
%if 0%{with_fancyindex}
--add-module=../ngx-fancyindex-%{fancyindex_version} \
%endif
--with-md5=/usr \
--with-sha1=/usr \
%if 0%{?suse_version} > 1000 || 0%{?fedora_version} > 4 || 0%{?mandriva_version} > 2006
@ -297,7 +311,10 @@ make install DESTDIR="%buildroot"
%dir %attr(750,%{ngx_user_group},%{ngx_user_group}) %{ngx_tmp_scgi}
%dir %attr(750,%{ngx_user_group},%{ngx_user_group}) %{ngx_tmp_uwsgi}
%doc CHANGES*
%doc conf/ contrib/
%doc conf/ contrib/
%if 0%{with_fancyindex}
%doc ngx-fancyindex-%{fancyindex_version}/
%endif
%if 0%{?has_systemd}
%{_unitdir}/nginx.service
%endif

3
v0.3.3.zip Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5f90583b719380da4fe21f61ba868d3145221044f77f1c1997715bb0f22a1706
size 16981