rpmbuild

rpmbuild change compression format

别说谁变了你拦得住时间么 提交于 2019-11-27 12:19:15
问题 I try to pack some map files for our geoserver in an internal rpm package. For the build part, this is just to copy the files. I think this works as expected. But it takes terribly long to pack those 20GB of images. I've read that rpm internally compresses the data and that this can be done with several different compression algorithms. But, I don't have a clue which compression my rpm chooses and how I can influence this. I could not find any options for the rpmbuild command, nor for the

安装部署Ceph Calamari

我们两清 提交于 2019-11-27 11:23:54
根据 http://ovirt-china.org/mediawiki/index.php/%E5%AE%89%E8%A3%85%E9%83%A8%E7%BD%B2Ceph_Calamari 原文如下: Calamari是管理和监控Ceph集群的工具,并且提供REST api。 建议的部署平台是ubuntu,本文使用CentOS 6.5。 安装部署 获取calamari相关代码 # git clone https://github.com/ceph/calamari.git # git clone https://github.com/ceph/calamari-clients.git # git clone https://github.com/ceph/Diamond 生成calamari-server安装包,先yum remove prlink # yum install gcc gcc-c++ postgresql-libs python-virtualenv # cd calamari && ./build-rpm.sh 安装calamari-server # yum localinstall ../rpmbuild/RPMS/x86_64/calamari-server-<version>.rpm 使用yum可以自动解决依赖,如果手动安装依赖的可以这样: # yum

rpmbuild参数

泄露秘密 提交于 2019-11-26 01:10:00
rpmbuild -v -bb --define _topdir /common/make/../rpm --define _rpmdir %{_topdir}/RPMS/el7 --define _release 1.1.0 --define _depver 1.1 --define _description without_input_name_without_input_num_without_input_no --define _svn_revision without_svn_revision --define _VER_TYPE 1 --define _version 2016.23.11 rpmbuild参数可根据具体环境对上面参数进行更改 来源: https://blog.csdn.net/llxx1234/article/details/98743129

将源码编译打成rpm包----以nginx为例

跟風遠走 提交于 2019-11-25 16:55:18
打包流程 准备源码软件 安装rpm-build 编写编译配置文件 编译RPM包 具体步骤 1.装工具 yum install rpm-build 安装依赖包 yum -y install gcc pcre-devel zlib-devel openssl-devel rpmbuild -ba nginx.spec 会报错,没有文件和目录 但是会自动在当前目录下创建一个rpmbuild目录(注意必须在用户的家目录下,本文用root用户) 在rpmbuild目录中 SOURCES 目录中存放源码包 BUILDROOT 是一个假根,用来做rpm包时存放目录的 SPECS 存放编译配置的spec文件 RPMS 存放生成的rpm包 2.拷贝源码包 cp nginx-1.8.0.tar.gz /root/rpmbuild/SOURCES 3.新建SPEC文件 cd /root/rpmbuild/SPECS vim nginx.spec 必须是以.spec结尾 spec文件解析 Name:nginx 软件名称 Version:1.8.0 软件版本 Release: 1%{?dist} 第几次制作源码包 默认为1 可随意 Summary:nginx web server 汇总信息 #Group: 组包 License:GPL 协议 URL:www.test.com 网址 Source0:nginx