Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > 1ec10f275b3f0b9393daa9c528f1d285 > files > 15

nginx-1.10.3-1.2.mga6.src.rpm

%define nginx_user nginx
%define nginx_group %{nginx_user}
%define nginx_home /var/lib/nginx
%define nginx_home_tmp %{nginx_home}/tmp
%define nginx_logdir /var/log/nginx
%define nginx_confdir %{_sysconfdir}/nginx
%define nginx_datadir %{_datadir}/nginx
%define nginx_webroot %{nginx_datadir}/html

Summary:	Robust, small and high performance http and reverse proxy server
Name:		nginx
Version:	1.10.3
%define subrel 2
Release:	%mkrel 1
Group:		System/Servers
# BSD License (two clause)
# http://www.freebsd.org/copyright/freebsd-license.html
License:	BSD
URL:		http://nginx.net/
Source0:	http://nginx.org/download/nginx-%{version}.tar.gz
Source1:	http://nginx.org/download/nginx-%{version}.tar.gz.asc
Source3:	%{name}.logrotate
Source4:	%{name}.sysconfig
Source5:	%{name}.service

Source6:	nginx.conf
Source7:	default.conf
Source8:	ssl.conf
Source9:	virtual.conf
Source100:	index.html
Source101:	poweredby.png
Source102:	nginx-logo.png
Source103:	50x.html
Source104:	404.html
Patch10:	nginx-1.6.2_CVE-2017-7529.patch
Patch11:	nginx-1.10.3-CVE-2018-16843.patch
Patch12:	nginx-1.10.3-CVE-2018-16844.patch
Patch13:	nginx-1.10.3-CVE-2018-16845.patch

Requires(post):	rpm-helper >= 0.24.8-1
Requires(preun):	rpm-helper >= 0.24.8-1
BuildRequires:	GeoIP-devel
BuildRequires:	gd-devel
BuildRequires:	libxslt-devel
BuildRequires:	openssl-devel
BuildRequires:	pcre-devel
BuildRequires:	zlib-devel
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::Embed)
Requires:	pcre
Requires:	openssl
Provides:	webserver

%description
Nginx [engine x] is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3
proxy server written by Igor Sysoev.

%prep
%setup -q
%autopatch -p1

%build
%serverbuild
# nginx does not utilize a standard configure script.  It has its own
# and the standard configure options cause the nginx configure script
# to error out.  This is is also the reason for the DESTDIR environment
# variable.  The configure script(s) have been patched (Patch1 and
# Patch2) in order to support installing into a build environment.
export DESTDIR=%{buildroot}
./configure \
    --prefix=%{nginx_datadir} \
    --sbin-path=%{_sbindir}/%{name} \
    --conf-path=%{nginx_confdir}/%{name}.conf \
    --error-log-path=%{nginx_logdir}/error.log \
    --http-log-path=%{nginx_logdir}/access.log \
    --http-client-body-temp-path=%{nginx_home_tmp}/client_body \
    --http-proxy-temp-path=%{nginx_home_tmp}/proxy \
    --http-fastcgi-temp-path=%{nginx_home_tmp}/fastcgi \
    --http-uwsgi-temp-path=%{nginx_home_tmp}/uwsgi \
    --http-scgi-temp-path=%{nginx_home_tmp}/scgi \
    --pid-path=/run/%{name}.pid \
    --lock-path=/run/lock/subsys/%{name} \
    --user=%{nginx_user} \
    --group=%{nginx_group} \
    --with-threads \
    --with-file-aio \
    --with-ipv6 \
    --with-http_ssl_module \
    --with-http_v2_module \
    --with-http_realip_module \
    --with-http_addition_module \
    --with-http_xslt_module \
    --with-http_image_filter_module \
    --with-http_geoip_module \
    --with-http_sub_module \
    --with-http_dav_module \
    --with-http_flv_module \
    --with-http_mp4_module \
    --with-http_gunzip_module \
    --with-http_gzip_static_module \
    --with-http_random_index_module \
    --with-http_secure_link_module \
    --with-http_degradation_module \
    --with-http_stub_status_module \
    --with-http_perl_module \
    --with-mail \
    --with-mail_ssl_module \
    --with-stream \
    --with-stream_ssl_module \
    --with-cc-opt="$CFLAGS $(pcre-config --cflags)" 

%make

%install
%make_install INSTALLDIRS=vendor

%{__install} -d -m 755 %{buildroot}%{_sysconfdir}/logrotate.d
%{__install} -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

%{__install} -d -m 755 %{buildroot}%{_sysconfdir}/sysconfig
%{__install} -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/%{name}

%{__install} -d -m 755 %{buildroot}%{_unitdir}
%{__install} -m 644 %{SOURCE5} %{buildroot}%{_unitdir}

%{__install} -m 644 %{SOURCE6} %{buildroot}%{nginx_confdir}

%{__install} -d -m 0755 %{buildroot}%{nginx_confdir}/conf.d
%{__install} -m 644 %{SOURCE7} %{SOURCE8} %{SOURCE9} \
    %{buildroot}%{nginx_confdir}/conf.d

%{__install} -d -m 0755 %{buildroot}%{nginx_home_tmp}
%{__install} -d -m 0755 %{buildroot}%{nginx_logdir}
%{__install} -d -m 0755 %{buildroot}%{nginx_webroot}

%{__install} -p -m 0644 %{SOURCE100} %{SOURCE101} %{SOURCE102} \
			%{SOURCE103} %{SOURCE104} \
			%{buildroot}%{nginx_webroot}

# add current version
perl -pi -e "s|_VERSION_|%{version}|g" %{buildroot}%{nginx_webroot}/index.html

# convert to UTF-8 all files that give warnings.
for textfile in CHANGES; do
    mv $textfile $textfile.old
    iconv --from-code ISO8859-1 --to-code UTF-8 --output $textfile $textfile.old
    rm -f $textfile.old
done

install -d %{buildroot}%{_mandir}/man8
install -m0644 man/*.8 %{buildroot}%{_mandir}/man8/

%pre
%_pre_useradd %{nginx_user} %{nginx_home} /bin/false

%post
%_post_service %{nginx_user}

%preun
%_preun_service %{nginx_user}

%postun
%_postun_userdel %{nginx_user}

%files
%doc LICENSE CHANGES README
%{nginx_datadir}
%{_sbindir}/%{name}
%{_mandir}/man3/%{name}.3pm*
%{_mandir}/man8/*
%{_unitdir}/%{name}.service
%dir %{nginx_confdir}
%dir %{nginx_confdir}/conf.d
%config(noreplace) %{nginx_confdir}/conf.d/*.conf
%config(noreplace) %{nginx_confdir}/win-utf
%config(noreplace) %{nginx_confdir}/%{name}.conf.default
%config(noreplace) %{nginx_confdir}/scgi_params
%config(noreplace) %{nginx_confdir}/scgi_params.default
%config(noreplace) %{nginx_confdir}/fastcgi.conf
%config(noreplace) %{nginx_confdir}/fastcgi.conf.default
%config(noreplace) %{nginx_confdir}/mime.types.default
%config(noreplace) %{nginx_confdir}/fastcgi_params
%config(noreplace) %{nginx_confdir}/fastcgi_params.default
%config(noreplace) %{nginx_confdir}/koi-win
%config(noreplace) %{nginx_confdir}/koi-utf
%config(noreplace) %{nginx_confdir}/%{name}.conf
%config(noreplace) %{nginx_confdir}/mime.types
%config(noreplace) %{nginx_confdir}/uwsgi_params
%config(noreplace) %{nginx_confdir}/uwsgi_params.default
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{perl_vendorarch}/auto/%{name}
%{perl_vendorarch}/%{name}.pm
%attr(-,%{nginx_user},%{nginx_group}) %dir %{nginx_home}
%attr(-,%{nginx_user},%{nginx_group}) %dir %{nginx_home_tmp}
%attr(-,root,adm) %dir %{nginx_logdir}


%changelog
* Thu Nov 15 2018 mrambo3501 <mrambo3501> 1.10.3-1.2.mga6
+ Revision: 1330035
- add rediffed upstream patches which fix CVE-2018-1684[3-4] (mga#23821)
- add upstream patch which fixes CVE-2018-16845
- added upstream patch which fixes CVE-2017-7529

* Wed Feb 01 2017 luigiwalser <luigiwalser> 1.10.3-1.mga6
+ Revision: 1084450
- 1.10.3

* Wed Nov 30 2016 mrambo3501 <mrambo3501> 1.10.2-2.mga6
+ Revision: 1071347
- change log directory ownership to fix CVE-2016-1247

* Tue Oct 18 2016 luigiwalser <luigiwalser> 1.10.2-1.mga6
+ Revision: 1061962
- 1.10.2

* Tue May 31 2016 luigiwalser <luigiwalser> 1.10.1-1.mga6
+ Revision: 1019630
- 1.10.1 (fixes CVE-2016-4450)

* Thu May 26 2016 luigiwalser <luigiwalser> 1.10.0-2.mga6
+ Revision: 1018738
+ rebuild (emptylog)

* Wed May 25 2016 tv <tv> 1.11.0-1.mga6
+ Revision: 1018246
+ rebuild (emptylog)

* Wed Apr 27 2016 tv <tv> 1.10.0-1.mga6
+ Revision: 1006712
- 1.10.0

* Fri Apr 22 2016 tv <tv> 1.9.15-1.mga6
+ Revision: 1005273
- 1.9.15

* Fri Apr 22 2016 tv <tv> 1.9.14-1.mga6
+ Revision: 1004906
- 1.9.14

* Wed Mar 02 2016 umeabot <umeabot> 1.9.12-2.mga6
+ Revision: 983801
- Rebuild for openssl

* Wed Mar 02 2016 oden <oden> 1.9.12-1.mga6
+ Revision: 983103
- 1.9.12

* Wed Jan 27 2016 luigiwalser <luigiwalser> 1.9.10-1.mga6
+ Revision: 928264
- 1.9.10

* Fri Dec 18 2015 oden <oden> 1.9.9-1.mga6
+ Revision: 911635
- 1.9.9

* Thu Jun 25 2015 tv <tv> 1.6.2-7.mga6
+ Revision: 843435
- rebuild with soname-ified perl

* Tue Jun 23 2015 sander85 <sander85> 1.6.2-6.mga6
+ Revision: 840465
- Rebuild for perl 5.22

* Mon Feb 16 2015 oden <oden> 1.6.2-5.mga5
+ Revision: 815158
- rebuilt for libgd-2.1.1

* Wed Oct 15 2014 umeabot <umeabot> 1.6.2-4.mga5
+ Revision: 749897
- Second Mageia 5 Mass Rebuild

* Thu Oct 09 2014 tv <tv> 1.6.2-3.mga5
+ Revision: 737725
- rebuild for new perl

* Tue Sep 16 2014 umeabot <umeabot> 1.6.2-2.mga5
+ Revision: 682881
- Mageia 5 Mass Rebuild
+ luigiwalser <luigiwalser>
- 1.6.2 (fixes CVE-2014-3616)

* Mon Sep 01 2014 luigiwalser <luigiwalser> 1.6.1-1.mga5
+ Revision: 670758
- 1.6.1 (fixes CVE-2014-3556)

* Tue Jun 03 2014 pterjan <pterjan> 1.6.0-2.mga5
+ Revision: 630783
- Rebuild for perl 5.20

* Fri Apr 25 2014 thatsamguy <thatsamguy> 1.6.0-1.mga5
+ Revision: 617716
- update to new stable branch and release v1.6.0

* Wed Mar 19 2014 thatsamguy <thatsamguy> 1.5.12-1.mga5
+ Revision: 605596
- update to latest release 1.5.12 (fixes CVE-2014-0133)

* Tue Feb 11 2014 thatsamguy <thatsamguy> 1.5.10-1.mga5
+ Revision: 589567
- update to latest mainline release v1.5.10

* Tue Feb 04 2014 tv <tv> 1.4.4-2.mga5
+ Revision: 581925
- rebuild for new perl

* Wed Nov 20 2013 thatsamguy <thatsamguy> 1.4.4-1.mga4
+ Revision: 552017
- new version 1.4.4 to fix security issue (CVE-2013-4547)

* Tue Oct 22 2013 umeabot <umeabot> 1.4.3-4.mga4
+ Revision: 545013
- Mageia 4 Mass Rebuild

* Tue Oct 15 2013 thatsamguy <thatsamguy> 1.4.3-3.mga4
+ Revision: 500479
-revert to 1.4.3
-bump rel to 3 for prev logrotate fix
- remove obsolete file
- enable auth_request module
- switch logrotate to use systemd commands
- new version 1.5.6

* Thu Oct 10 2013 thatsamguy <thatsamguy> 1.4.3-2.mga4
+ Revision: 494697
-fixed conf file install location
-fixed log restart during logrotate
-enabled spdy module
-enabled gunzip module
-spec file cleanup

* Wed Oct 09 2013 guillomovitch <guillomovitch> 1.4.3-1.mga4
+ Revision: 494108
- new version 1.4.3

* Wed Aug 28 2013 tv <tv> 1.2.9-5.mga4
+ Revision: 472742
- rebuild for new perl

* Wed May 29 2013 tv <tv> 1.2.9-4.mga4
+ Revision: 430245
- rebuild for new perl

* Tue May 28 2013 luigiwalser <luigiwalser> 1.2.9-3.mga4
+ Revision: 429683
- re-add poweredby.png (used in index.html)

* Tue May 28 2013 oden <oden> 1.2.9-2.mga4
+ Revision: 429295
- rebuilt against libgd.so.3

* Mon May 13 2013 luigiwalser <luigiwalser> 1.2.9-1.mga3
+ Revision: 413086
- 1.2.9 (fixes CVE-2013-2070)

* Wed Mar 20 2013 tv <tv> 1.2.6-3.mga3
+ Revision: 404178
- rebuild for new perl...
+ umeabot <umeabot>
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Fri Jan 04 2013 luigiwalser <luigiwalser> 1.2.6-1.mga3
+ Revision: 338529
- 1.2.6

* Sat Dec 01 2012 fwang <fwang> 1.2.5-2.mga3
+ Revision: 323813
- rebuild for new pcre

* Thu Nov 15 2012 fwang <fwang> 1.2.5-1.mga3
+ Revision: 317995
- new version 1.2.5

* Wed Sep 26 2012 fwang <fwang> 1.2.4-1.mga3
+ Revision: 297827
- new version 1.2.4

* Sat Sep 08 2012 guillomovitch <guillomovitch> 1.2.3-1.mga3
+ Revision: 290421
- new version

* Wed Aug 29 2012 tv <tv> 1.2.2-3.mga3
+ Revision: 285543
- rebuild for new perl

* Thu Aug 09 2012 tv <tv> 1.2.2-2.mga3
+ Revision: 280274
- drop sysv service

* Wed Jul 04 2012 fwang <fwang> 1.2.2-1.mga3
+ Revision: 267695
- new version 1.2.2

* Sat Jun 09 2012 shlomif <shlomif> 1.2.1-1.mga3
+ Revision: 258749
- New version - 1.2.1

* Wed May 30 2012 jquelin <jquelin> 1.2.0-2.mga3
+ Revision: 250255
- rebuild for perl 5.16

* Mon May 28 2012 fwang <fwang> 1.2.0-1.mga3
+ Revision: 247662
- new version 1.2.0

* Sat Apr 28 2012 tmb <tmb> 1.0.15-2.mga2
+ Revision: 233820
- Require rpm-helper >= 0.24.8-1 for systemd support

* Thu Apr 19 2012 fwang <fwang> 1.0.15-1.mga2
+ Revision: 231795
- new version 1.0.15

* Mon Mar 19 2012 guillomovitch <guillomovitch> 1.0.14-2.mga2
+ Revision: 224503
- drop last mandriva references (#3815)

* Mon Mar 19 2012 guillomovitch <guillomovitch> 1.0.14-1.mga2
+ Revision: 224303
+ rebuild (emptylog)

* Thu Mar 15 2012 guillomovitch <guillomovitch> 1.0.10-2.mga2
+ Revision: 223512
- sync configuration files with fedora package
- drop useless apache dependency
- spec cleanup
- systemd support

* Mon Jan 09 2012 fwang <fwang> 1.0.10-1.mga2
+ Revision: 193691
- new version 1.0.10

* Fri Nov 04 2011 fwang <fwang> 1.0.9-1.mga2
+ Revision: 162665
- new version 1.0.9

* Thu Oct 20 2011 tv <tv> 1.0.8-2.mga2
+ Revision: 156981
- rebuild for new perl

* Sun Oct 02 2011 fwang <fwang> 1.0.8-1.mga2
+ Revision: 150974
- new version 1.0.8

* Sun Sep 18 2011 dmorgan <dmorgan> 1.0.6-2.mga2
+ Revision: 144695
- Change apache-conf require

* Wed Aug 31 2011 fwang <fwang> 1.0.6-1.mga2
+ Revision: 136890
- new version 1.0.6

* Wed Jul 20 2011 fwang <fwang> 1.0.5-1.mga2
+ Revision: 127063
- rediff conf patch
- add signature
- new version 1.0.5

* Thu Jun 16 2011 tv <tv> 1.0.4-1.mga2
+ Revision: 108442
- new relase
- vendor is mga not mdv
- s/mdv/mga/

* Sat Jun 11 2011 jquelin <jquelin> 1.0.0-2.mga2
+ Revision: 103442
- perl 5.14

* Wed Apr 13 2011 tv <tv> 1.0.0-1.mga1
+ Revision: 84509
- new release

* Sun Feb 20 2011 dmorgan <dmorgan> 0.9.3-1.mga1
+ Revision: 54507
- imported package nginx