Openresty. spec

Source: Internet
Author: User
Tags geoip nginx server
Name:           openrestyVersion:        1.13.6.1Release:        2%{?dist}Summary:        OpenResty, scalable web platform by extending NGINX with LuaGroup:          System Environment/Daemons# BSD License (two clause)# http://www.freebsd.org/copyright/freebsd-license.htmlLicense:        BSDURL:            https://openresty.org/Source0:        https://openresty.org/download/openresty-%{version}.tar.gzSource1:        nginx.service#Patch0:         openresty-%{version}.patchBuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)BuildRequires:  perl-File-TempBuildRequires:  gcc, make, perl, systemtap-sdt-develBuildRequires:  openresty-zlib-devel >= 1.2.11-3BuildRequires:  openresty-openssl-devel >= 1.0.2k-1BuildRequires:  openresty-pcre-devel >= 8.40-1Requires:       openresty-zlib >= 1.2.11-3Requires:       openresty-openssl >= 1.0.2k-1Requires:       openresty-pcre >= 8.40-1# for /sbin/serviceRequires(post):  chkconfigRequires(preun): chkconfig, initscriptsAutoReqProv:        no%define orprefix            %{_usr}/local/%{name}%define zlib_prefix         %{orprefix}/zlib%define pcre_prefix         %{orprefix}/pcre%define openssl_prefix      %{orprefix}/openssl%descriptionThis package contains the core server for OpenResty. Built for productionuses.OpenResty is a full-fledged web platform by integrating the standard Nginxcore, LuaJIT, many carefully written Lua libraries, lots of high quality3rd-party Nginx modules, and most of their external dependencies. It isdesigned to help developers easily build scalable web applications, webservices, and dynamic web gateways.By taking advantage of various well-designed Nginx modules (most of whichare developed by the OpenResty team themselves), OpenResty effectivelyturns the nginx server into a powerful web app server, in which the webdevelopers can use the Lua programming language to script various existingnginx C modules and Lua modules and construct extremely high-performanceweb applications that are capable to handle 10K ~ 1000K+ connections ina single box.%package restySummary:        OpenResty command-line utility, restyGroup:          Development/ToolsRequires:       perl, openresty >= %{version}-%{release}Requires:       perl(File::Spec), perl(FindBin), perl(List::Util), perl(Getopt::Long), perl(File::Temp), perl(POSIX), perl(Time::HiRes)%if 0%{?fedora} >= 10 || 0%{?rhel} >= 6 || 0%{?centos} >= 6BuildArch:      noarch%endif%description restyThis package contains the "resty" command-line utility for OpenResty, whichruns OpenResty Lua scripts on the terminal using a headless NGINX behind thescene.OpenResty is a full-fledged web platform by integrating the standard Nginxcore, LuaJIT, many carefully written Lua libraries, lots of high quality3rd-party Nginx modules, and most of their external dependencies. It isdesigned to help developers easily build scalable web applications, webservices, and dynamic web gateways.%package docSummary:        OpenResty documentation tool, restydocGroup:          Development/ToolsRequires:       perl, perl(Getopt::Std), perl(File::Spec), perl(FindBin), perl(Cwd), perl(File::Temp), perl(Pod::Man), perl(Pod::Text)%if (!0%{?rhel} || 0%{?rhel} < 7) && !0%{?fedora}Requires:       groff%endif%if (0%{?rhel} && 0%{?rhel} >= 7) || 0%{?fedora}Requires:       groff-base%endifProvides:       restydoc, restydoc-index, md2pod.pl%if 0%{?fedora} >= 10 || 0%{?rhel} >= 6 || 0%{?centos} >= 6BuildArch:      noarch%endif%description docThis package contains the official OpenResty documentation index andthe "restydoc" command-line utility for viewing it.OpenResty is a full-fledged web platform by integrating the standard Nginxcore, LuaJIT, many carefully written Lua libraries, lots of high quality3rd-party Nginx modules, and most of their external dependencies. It isdesigned to help developers easily build scalable web applications, webservices, and dynamic web gateways.%package opmSummary:        OpenResty Package ManagerGroup:          Development/ToolsRequires:       perl, openresty >= %{version}-%{release}, perl(Digest::MD5)Requires:       openresty-doc >= %{version}-%{release}, openresty-resty >= %{version}-%{release}Requires:       curl, tar, gzip#BuildRequires:  perl(Digest::MD5)Requires:       perl(Encode), perl(FindBin), perl(File::Find), perl(File::Path), perl(File::Spec), perl(Cwd), perl(Digest::MD5), perl(File::Copy), perl(File::Temp), perl(Getopt::Long)%if 0%{?fedora} >= 10 || 0%{?rhel} >= 6 || 0%{?centos} >= 6BuildArch:      noarch%endif%description opmThis package provides the client side tool, opm, for OpenResty Pakcage Manager (OPM).%prep%setup -q -n "openresty-%{version}"#%patch0 -p1%build./configure     --prefix="%{orprefix}"     --with-cc-opt="-DNGX_LUA_ABORT_AT_PANIC -I%{zlib_prefix}/include -I%{pcre_prefix}/include -I%{openssl_prefix}/include"     --with-ld-opt="-L%{zlib_prefix}/lib -L%{pcre_prefix}/lib -L%{openssl_prefix}/lib -Wl,-rpath,%{zlib_prefix}/lib:%{pcre_prefix}/lib:%{openssl_prefix}/lib"     --with-pcre-jit     --without-http_rds_json_module     --without-http_rds_csv_module     --without-lua_rds_parser     --with-stream     --with-stream_ssl_module     --with-stream_ssl_preread_module     --with-http_v2_module     --without-mail_pop3_module     --without-mail_imap_module     --without-mail_smtp_module     --with-http_stub_status_module     --with-http_realip_module     --with-http_addition_module     --with-http_auth_request_module     --with-http_secure_link_module     --with-http_random_index_module     --with-http_gzip_static_module     --with-http_sub_module     --with-http_dav_module     --with-http_flv_module     --with-http_mp4_module     --with-http_gunzip_module     --with-threads     --with-luajit-xcflags=‘-DLUAJIT_NUMMODE=2 -DLUAJIT_ENABLE_LUA52COMPAT‘     --with-dtrace-probes     --with-http_geoip_module     --pid-path=/run/nginx.pid     %{?_smp_mflags}make %{?_smp_mflags}%installrm -rf %{buildroot}make install DESTDIR=%{buildroot}rm -rf %{buildroot}%{orprefix}/luajit/share/manrm -rf %{buildroot}%{orprefix}/luajit/lib/libluajit-5.1.amkdir -p %{buildroot}/usr/sbinmkdir -p %{buildroot}/usr/binmkdir -p %{buildroot}/var/logmkdir -p %{buildroot}/etcln -sf %{orprefix}/bin/resty %{buildroot}/usr/bin/ln -sf %{orprefix}/bin/restydoc %{buildroot}/usr/bin/ln -sf %{orprefix}/bin/opm %{buildroot}/usr/bin/ln -sf %{orprefix}/nginx/sbin/nginx %{buildroot}/usr/sbin/nginxln -sf %{orprefix}/nginx/conf %{buildroot}/etc/nginxln -sf %{orprefix}/nginx/logs %{buildroot}/var/log/nginxmkdir -p %{buildroot}/usr/lib/systemd/system%{__install} -p -m 0755 %{SOURCE1} %{buildroot}/usr/lib/systemd/system/nginx.service# to silence the check-rpath errorexport QA_RPATHS=$[ 0x0002 ]%cleanrm -rf %{buildroot}%post#/sbin/chkconfig --add %{name}/usr/bin/systemctl daemon-reload%preunif [ $1 = 0 ]; then    #/sbin/service nginx stop >/dev/null 2>&1    #/sbin/chkconfig --del %{name}    /usr/bin/systemctl disable nginx    /usr/bin/systemctl stop nginxfi%files%defattr(-,root,root,-)/etc/nginx/var/log/nginx/usr/lib/systemd/system/nginx.service/usr/sbin/nginx%{orprefix}/bin/openresty%{orprefix}/site/lualib/%{orprefix}/luajit/*%{orprefix}/lualib/*%{orprefix}/nginx/html/*%{orprefix}/nginx/logs/%{orprefix}/nginx/sbin/*%{orprefix}/nginx/tapset/*%config(noreplace) %{orprefix}/nginx/conf/*%{orprefix}/COPYRIGHT%files resty%defattr(-,root,root,-)/usr/bin/resty%{orprefix}/bin/resty%files doc%defattr(-,root,root,-)/usr/bin/restydoc%{orprefix}/bin/restydoc%{orprefix}/bin/restydoc-index%{orprefix}/bin/md2pod.pl%{orprefix}/bin/nginx-xml2pod%{orprefix}/pod/*%{orprefix}/resty.index%files opm%defattr(-,root,root,-)/usr/bin/opm%{orprefix}/bin/opm%{orprefix}/site/manifest/%{orprefix}/site/pod/%changelog* Tue May 8 2018 RainFlying 1.13.6.1-2- Set pid file location to /run/nginx.pid by default- Created symlinks /etc/nginx, /usr/sbin/nginx, /var/log/nginx- Changed to use sysemd- Enabled geoip module* Sun Nov 12 2017 Yichun Zhang (agentzh) 1.13.6.1-1- upgraded openresty to 1.13.6.1.* Thu Sep 21 2017 Yichun Zhang (agentzh) 1.11.2.5-2- enabled -DNGX_LUA_ABORT_AT_PANIC by default.* Thu Aug 17 2017 Yichun Zhang (agentzh) 1.11.2.5-1- upgraded OpenResty to 1.11.2.5.* Tue Jul 11 2017 Yichun Zhang (agentzh) 1.11.2.4-1- upgraded OpenResty to 1.11.2.4.* Sat May 27 2017 Yichun Zhang (agentzh) 1.11.2.3-14- bugfix: the openresty-opm subpackage did not depend on openresty-doc and openresty-resty.* Sat May 27 2017 Yichun Zhang (agentzh) 1.11.2.3-14- centos 6 and opensuse do not have the groff-base package.* Sat May 27 2017 Yichun Zhang (agentzh) 1.11.2.3-13- openresty-doc now depends on groff-base.* Thu May 25 2017 Yichun Zhang (agentzh) 1.11.2.3-12- added missing groff/pod2txt/pod2man dependencies for openresty-doc.* Thu May 25 2017 Yichun Zhang (agentzh) 1.11.2.3-11- added missing perl dependencies for openresty-opm, openresty-resty, and openresty-doc.* Sun May 21 2017 Yichun Zhang (agentzh) 1.11.2.3-10- removed the geoip nginx module since GeoIP is not available everywhere.* Fri Apr 21 2017 Yichun Zhang (agentzh)- upgrade to the OpenResty 1.11.2.3 release: http://openresty.org/en/changelog-1011002.html* Sat Dec 24 2016 Yichun Zhang- init script: explicity specify the runlevels 345.* Wed Dec 14 2016 Yichun Zhang- opm missing runtime dependencies curl, tar, and gzip.- enabled http_geoip_module by default.* Fri Nov 25 2016 Yichun Zhang- opm missing runtime dependency perl(Digest::MD5)* Thu Nov 17 2016 Yichun Zhang- upgraded OpenResty to 1.11.2.2.* Fri Aug 26 2016 Yichun Zhang- use dual number mode in our luajit builds which should usuallybe faster for web application use cases.* Wed Aug 24 2016 Yichun Zhang- bump OpenResty version to 1.11.2.1.* Tue Aug 23 2016 zxcvbn4038- use external packages openresty-zlib and openresty-pcre through dynamic linking.* Thu Jul 14 2016 Yichun Zhang- enabled more nginx standard modules as well as threads and file aio.* Sun Jul 10 2016 makerpm- initial build for OpenResty 1.9.15.1.

  

Openresty. spec

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.