Welcome! Log In Create A New Profile

Advanced

Help needed with Nginx SRPM script

Thomas Stephen Lee
April 16, 2021 01:52AM
Hi,

I have the following script on RHEL 7


--------------Script Start---------------------

OPENSSL="openssl-1.1.1k"
NGINX_VERSION="1.19.10-1"

rpm -ivh http://nginx.org/packages/mainline/centos/7/SRPMS/nginx-$NGINX_VERSION.el7.ngx.src.rpm

sed -i "/Source12: .*/a Source100:
https://www.openssl.org/source/$OPENSSL.tar.gz"
/home/builder/rpmbuild/SPECS/nginx.spec
sed -i "s|--with-http_ssl_module|--with-http_ssl_module
--with-openssl=$OPENSSL |g" /home/builder/rpmbuild/SPECS/nginx.spec
sed -i '/%setup -q/a tar zxf %{SOURCE100}'
/home/builder/rpmbuild/SPECS/nginx.spec
sed -i '/.*Requires: openssl.*/d' /home/builder/rpmbuild/SPECS/nginx.spec
sed -i 's|%define WITH_LD_OPT .*|%define WITH_LD_OPT ""|g'
/home/builder/rpmbuild/SPECS/nginx.spec
sed -i 's| -fPIC||g' /home/builder/rpmbuild/SPECS/nginx.spec

spectool -g -R /home/builder/rpmbuild/SPECS/nginx.spec

rpmbuild -ba /home/builder/rpmbuild/SPECS/nginx.spec

--------------Script End---------------------

This Script worked with

NGINX_VERSION="1.19.9-1"

but does not work with

NGINX_VERSION="1.19.10-1"

Can you please help me with what is wrong?
I have been using this script which I got from GitHub, for the past two years.

Thanks

---
Lee
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Help needed with Nginx SRPM script

Thomas Stephen Lee April 16, 2021 01:52AM

Re: Help needed with Nginx SRPM script

Andrei Belov April 16, 2021 02:36AM

Re: Help needed with Nginx SRPM script

Thomas Stephen Lee April 16, 2021 06:02AM

Re: Help needed with Nginx SRPM script

Andrei Belov April 16, 2021 06:12AM

Re: Help needed with Nginx SRPM script

Thomas Stephen Lee April 16, 2021 08:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 195
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready