parent
e754ce11f2
commit
b074711b52
25
nginx.spec
25
nginx.spec
@ -18,16 +18,10 @@
|
|||||||
%global with_aio 1
|
%global with_aio 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?fedora} >= 16 || 0%{?rhel} >= 7
|
|
||||||
%global with_systemd 1
|
|
||||||
%else
|
|
||||||
%global with_systemd 0
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: nginx
|
Name: nginx
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 1.6.0
|
Version: 1.6.0
|
||||||
Release: 4%{?dist}
|
Release: 3%{?dist}
|
||||||
|
|
||||||
Summary: A high performance web server and reverse proxy server
|
Summary: A high performance web server and reverse proxy server
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
@ -74,7 +68,7 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $ve
|
|||||||
Requires(pre): shadow-utils
|
Requires(pre): shadow-utils
|
||||||
Provides: webserver
|
Provides: webserver
|
||||||
|
|
||||||
%if 0%{?with_systemd}
|
%if 0%{?fedora} >= 16
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
Requires(post): systemd
|
Requires(post): systemd
|
||||||
Requires(preun): systemd
|
Requires(preun): systemd
|
||||||
@ -113,7 +107,7 @@ export DESTDIR=%{buildroot}
|
|||||||
--http-fastcgi-temp-path=%{nginx_home_tmp}/fastcgi \
|
--http-fastcgi-temp-path=%{nginx_home_tmp}/fastcgi \
|
||||||
--http-uwsgi-temp-path=%{nginx_home_tmp}/uwsgi \
|
--http-uwsgi-temp-path=%{nginx_home_tmp}/uwsgi \
|
||||||
--http-scgi-temp-path=%{nginx_home_tmp}/scgi \
|
--http-scgi-temp-path=%{nginx_home_tmp}/scgi \
|
||||||
%if 0%{?with_systemd}
|
%if 0%{?fedora} >= 16
|
||||||
--pid-path=/run/nginx.pid \
|
--pid-path=/run/nginx.pid \
|
||||||
--lock-path=/run/lock/subsys/nginx \
|
--lock-path=/run/lock/subsys/nginx \
|
||||||
%else
|
%else
|
||||||
@ -164,7 +158,7 @@ find %{buildroot} -type f -name .packlist -exec rm -f '{}' \;
|
|||||||
find %{buildroot} -type f -name perllocal.pod -exec rm -f '{}' \;
|
find %{buildroot} -type f -name perllocal.pod -exec rm -f '{}' \;
|
||||||
find %{buildroot} -type f -empty -exec rm -f '{}' \;
|
find %{buildroot} -type f -empty -exec rm -f '{}' \;
|
||||||
find %{buildroot} -type f -iname '*.so' -exec chmod 0755 '{}' \;
|
find %{buildroot} -type f -iname '*.so' -exec chmod 0755 '{}' \;
|
||||||
%if 0%{?with_systemd}
|
%if 0%{?fedora} >= 16
|
||||||
install -p -D -m 0644 %{SOURCE10} \
|
install -p -D -m 0644 %{SOURCE10} \
|
||||||
%{buildroot}%{_unitdir}/nginx.service
|
%{buildroot}%{_unitdir}/nginx.service
|
||||||
%else
|
%else
|
||||||
@ -207,7 +201,7 @@ getent passwd %{nginx_user} > /dev/null || \
|
|||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%if 0%{?with_systemd}
|
%if 0%{?fedora} >= 16
|
||||||
%systemd_post nginx.service
|
%systemd_post nginx.service
|
||||||
%else
|
%else
|
||||||
if [ $1 -eq 1 ]; then
|
if [ $1 -eq 1 ]; then
|
||||||
@ -222,7 +216,7 @@ if [ $1 -eq 2 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%if 0%{?with_systemd}
|
%if 0%{?fedora} >= 16
|
||||||
%systemd_preun nginx.service
|
%systemd_preun nginx.service
|
||||||
%else
|
%else
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
@ -232,7 +226,7 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%if 0%{?with_systemd}
|
%if 0%{?fedora} >= 16
|
||||||
%systemd_postun nginx.service
|
%systemd_postun nginx.service
|
||||||
%else
|
%else
|
||||||
if [ $1 -eq 2 ]; then
|
if [ $1 -eq 2 ]; then
|
||||||
@ -248,7 +242,7 @@ fi
|
|||||||
%{_mandir}/man3/nginx.3pm*
|
%{_mandir}/man3/nginx.3pm*
|
||||||
%{_mandir}/man8/nginx.8*
|
%{_mandir}/man8/nginx.8*
|
||||||
%{_mandir}/man8/nginx-upgrade.8*
|
%{_mandir}/man8/nginx-upgrade.8*
|
||||||
%if 0%{?with_systemd}
|
%if 0%{?fedora} >= 16
|
||||||
%{_unitdir}/nginx.service
|
%{_unitdir}/nginx.service
|
||||||
%else
|
%else
|
||||||
%{_initrddir}/nginx
|
%{_initrddir}/nginx
|
||||||
@ -281,9 +275,6 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Jul 29 2014 Warren Togami <warren@slickage.com> - 1:1.6.0-4
|
|
||||||
- systemd is fedora 16+ or EL7
|
|
||||||
|
|
||||||
* Wed Jul 02 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 1:1.6.0-3
|
* Wed Jul 02 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 1:1.6.0-3
|
||||||
- Fix FTBFS on aarch64 (#1115559)
|
- Fix FTBFS on aarch64 (#1115559)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user