Code Monkey home page Code Monkey logo

openresty-rpm-spec's Introduction

openresty-rpm-spec

This spec file will build an RPM for OpenResty. I've only tried it on CentOS 6/7, but it will likely work on other RedHat-like Linuxes.

To build the RPM, you'll first need to set up your build environment. Typically, this means creating some directories and installing some packages:

mkdir ~/rpmbuild/{SOURCES,SPECS}
yum install -y   zlib-devel lua lua-devel lua-json lua-filesystem rpm-build make openssl-devel pcre-devel GeoIP-devel readline-devel gcc-c++ wget perl-Digest-SHA perl-Digest-MD5 perl-Data-Dumper perl-Time-HiRes

Then get the relevant files into your tree (replacing version with the appropriate version string): Note : The spec file is written for version 1.13.6.1 of openresty, edit .spec file and change version with the appropriate version :

cd ~/rpmbuild/SOURCES
wget http://openresty.org/download/openresty-{version}.tar.gz
wget https://github.com/brnt/openresty-rpm-spec/raw/master/openresty.init
cd ~/rpmbuild/SPECS
wget https://github.com/brnt/openresty-rpm-spec/raw/master/openresty.spec

Then just build the RPM:

rpmbuild -ba ~/rpmbuild/SPECS/openresty.spec

The RPM will be in ~/rpmbuild/RPMS/{platform}/ and the SRPM will be in ~/rpmbuild/SRPMS/.

openresty-rpm-spec's People

Contributors

brnt avatar bzcorn avatar ehsan310 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.