rpmbuild制作rpm包入门
2017-08-22 18:12
363 查看
一个简单的nginx.spec文件。(纯粹的理解spec文件的意思,制作出来的rpm包不能正常使用)
切割线,暂时没时间解释。
[root@www nginx]# cat nginx.spec Name: nginx Version: 1.2.9 Release: 1%{?dist} Summary: nginx-server web Group: Applications/Archiving License: GPL URL: https://www.nginx.org Source0: http://nginx.org/download/%{name}-%{version}.tar.gz #BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gcc Requires: pcre,pcre-devel,openssl,openssl-devel %description This is a web server soft. %prep %setup -q -n %{name}-%{version} %build ./configure make %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) /usr/local/nginx/ #%attr(0755,root,root) /etc/rc.d/init.d/nginx %config(noreplace) /usr/local/nginx/conf/nginx.conf %config(noreplace) /usr/local/nginx/conf/fastcgi_params %doc %changelog………………………………………………
切割线,暂时没时间解释。
相关文章推荐
- Centos下使用rpmbuild以及checkinstall制作RPM包
- rpmbuild制作rpm 包
- rpmbuild 制作rpm包
- rpmbuild制作rpm包
- Linux Rpmbuild 包制作
- 使用rpmbuild制作签名RPM包
- rhel7 rpmbuild 制作二进制程序安装包(.rpm) 简单示例
- 精通RPM之--制作篇(rpmbuild)
- linux rpm 包制作 - 使用 rpmbuild
- rpmbuild制作rpm包
- rpmbuild制作3
- 使用rpm-build制作nginx的rpm包 推荐
- 制作rpm包--rpm-build安装
- 网页制作入门
- 一堂课玩转rpm包的制作
- fpm来制作rpm包
- Visual Studio DSL 入门 14---用Wix制作安装程序
- rpm包如何制作-个人经验
- 源码包制作rpm包