zoukankan      html  css  js  c++  java
  • tengine2.1.0RPM包制做 tengine-2.1.0.spec配置

    [root@DB SPECS]# cat tengine-2.1.0.spec
    Name: tengine
    Version: 2.1.0
    Release: 1%{?dist}
    Summary: tengine rmp package production
    Group: Applications/Archiving
    License: GPLv2
    URL:  http://tengine.taobao.org
    Source:  http://tengine.taobao.org/download/tengine-2.1.0.tar.gz
    BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
    BuildRequires: gcc
    Requires: gcc gcc-c++ autoconf automake
    %description
    Custom tengine rpm package
    %prep
    rm -rf $RPM_BUILD_DIR/tengine-2.1.0
    tar fx $RPM_SOURCE_DIR/tengine-2.1.0.tar.gz
    %build
    cd tengine-2.1.0
    ./configure --prefix=/apps/tengine-2.1.0 
     --user=www --group=www 
     --with-pcre=/data/tengin安装包/pcre-8.38 
     --with-openssl=/data/tengin安装包/openssl-1.0.2j 
     --with-jemalloc=/data/tengin安装包/jemalloc-3.6.0 
     --with-http_realip_module 
     --with-http_concat_module 
     --with-zlib=/data/tengin安装包/zlib-1.2.8 
     --add-module=/data/tengin安装包/ngx_cache_purge-2.1
    
    make %{?_smp_mflags}
    %install
    rm -rf %{buildroot}
    cd tengine-2.1.0
    make install DESTDIR=%{buildroot}
    %clean
    rm -rf %{buildroot}
    %files
    %defattr(-,root,root,-)
    /apps/tengine-2.1.0
    
  • 相关阅读:
    bzoj 1188 [HNOI2007]分裂游戏(SG函数,博弈)
    poj 3710 Christmas Game(树上的删边游戏)
    poj 1704 Georgia and Bob(阶梯博弈)
    110 最小路径和
    109 数字三角形
    63 搜索旋转排序数组II
    62 搜索旋转排序数组
    61 搜索区间
    58 四数之和
    关于初始值的问题
  • 原文地址:https://www.cnblogs.com/bass6/p/7081510.html
Copyright © 2011-2022 走看看