相关开发RPM的包要安装

Summary: the Firt RPM of Sky
Name: hellow
Version: 0.1
Release:
Vendor: PA soft(aguncn@.com)
License: GPL
Group: Application/Text
Source0: hellow-.tar.gz
#Patch0:hellow-.patch

%description

My test hellow

%prep

.tar.gz

#%path -p0

%build

cd $RPM_BUILD_DIR/hellow

#./configure

make

%install

cd $RPM_BUILD_DIR/hellow

make install

%clean

rm -rf $RPM_BUILD_DIR/hellow

%files

%defattr(-,root,root)
/usr/bin/hellow

%doc $PRM_BULD_DIR/hellow/readme

%changelog

rpmbuild -ba hellow-0.1-1.spec输出:

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.iA1hvb
+ umask
+ cd /root/rpmbuild/BUILD
+ .tar.gz
hellow/
hellow/Makefile
hellow/hellow.c
hellow/readme
+ exit
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.hosypk
+ umask
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD/hellow
+ make
make: Nothing to be done for `all'.
+ exit
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.N7lkmt
+ umask
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD/hellow
+ make install
cp hellow /usr/bin
+ /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip
+ /usr/lib/rpm/brp-strip-static-archive
+ /usr/lib/rpm/brp-strip-comment-note
Processing files: hellow-.x86_64
error: File not found: /root/rpmbuild/BUILDROOT/hellow-.x86_64/usr/bin/hellow
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.GVUVqC
+ umask
+ cd /root/rpmbuild/BUILD
+ DOCDIR=/root/rpmbuild/BUILDROOT/hellow-.x86_64/usr/share/doc/hellow-0.1
+ export DOCDIR
+ .x86_64/usr/share/doc/hellow-0.1
+ /bin/.x86_64/usr/share/doc/hellow-0.1
+ .x86_64/usr/share/doc/hellow-0.1
cp: cannot stat `/hellow/readme': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.GVUVqC (%doc)

RPM build errors:
    File not found: /root/rpmbuild/BUILDROOT/hellow-.x86_64/usr/bin/hellow
    Bad exit status from /var/tmp/rpm-tmp.GVUVqC (%doc)

未完善,以后再测试

RPM包制作最简单样例的更多相关文章

  1. RPM包制作方法

    一.RPM介绍 RPM 前是Red Hat Package Manager 的缩写,本意是Red Hat 软件包管理,顾名思义是Red Hat 贡献出来的软件包管理:现在应为RPM Package M ...

  2. velocity简单样例

    velocity简单样例整体实现须要三个步骤,详细例如以下: 1.创建一个Javaproject 2.导入须要的jar包 3.创建须要的文件 ============================= ...

  3. php-7.1.0 rpm包制作

    nginx-1.8.0 rpm包制作见上篇文章:http://www.cnblogs.com/xiaoming279/p/6251149.html spec文件 Name: php Version: ...

  4. RPM包制作教程

    一.RPM介绍 RPM 前是Red Hat Package Manager 的缩写,本意是Red Hat 软件包管理,顾名思义是Red Hat 贡献出来的软件包管理:现在应为RPM Package M ...

  5. rpm包制作(待实验)

    作者:firefoxbug 时间:July 18, 2014 rpm包命名规范 对于rpm包的命名符合如下规范. %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm N ...

  6. extern外部方法使用C#简单样例

    外部方法使用C#简单样例 1.添加引用using System.Runtime.InteropServices; 2.声明和实现的连接[DllImport("kernel32", ...

  7. spring事务详解(二)简单样例

    系列目录 spring事务详解(一)初探事务 spring事务详解(二)简单样例 spring事务详解(三)源码详解 spring事务详解(四)测试验证 spring事务详解(五)总结提高 一.引子 ...

  8. 自己定义隐式转换和显式转换c#简单样例

    自己定义隐式转换和显式转换c#简单样例 (出自朱朱家园http://blog.csdn.net/zhgl7688) 样例:对用户user中,usernamefirst name和last name进行 ...

  9. rpm包制作介绍

    RPM(Rpm Package Management)在ReadHat等发行版下被用作软件包管理程序,其将某个软件相关的文件置入一个.rpm包中,用rpm命令,我们可以方便地完成Linux下软件安装. ...

随机推荐

  1. Mysql数据库的索引原理

    写在前面:索引对查询的速度有着至关重要的影响,理解索引也是进行数据库性能调优的起点.考虑如下情况,假设数据库中一个表有10^6条记录,DBMS的页面大小为4K,并存储100条记录.如果没有索引,查询将 ...

  2. Android 调用webService(.net平台)

    什么是webservice? Web service是一个平台独立的,低耦合的,自包含的.基于可编程的web的应用程序,可使用开放的XML(标准通用标记语言下的一个子集)标准来描述.发布.发现.协调和 ...

  3. WebService开发常用功能详解

    一.WebService中常用的属性(Attributes)1. Web Service(Web服务)提供以下三个属性.    Namespace:此属性的值包含 XML Web Service的默认 ...

  4. struts2 package元素配置(转载)

    package 元素的所有属性及对应功能: Attribute Required Description name yes key to for other packages to reference ...

  5. error RC1205: invalid code page

    Get followings error and warnings when building project: error RC1205: invalid code pagewarning C400 ...

  6. Where does Windows store MSI files for uninstallation?

    Original link: Where does Windows store MSI files for uninstallation? Following content are only use ...

  7. js搜索框 js仿百度搜索 js下拉框 jQuery.Autocomplete使用

    做了一个网站,需要根据文本框的输入模糊搜索数据库内容给出提示供用户选择,就找到了jQuery.Autocomplete 效果如下图: 该插件托管在github上,具体地址:https://github ...

  8. PH获取当前url路径及服务器路径汇总 (url 获取当前路径 服务器路径)

    以下是整理的一些, php中获取路径的小知识, 希望对你有所帮助! 1,$_SERVER["QUERY_STRING"] 说明:查询(query)的字符串 2,$_SERVER[& ...

  9. C++ Vector

    在c++中,vector是一个十分有用的容器,下面对这个容器做一下总结. 1 基本操作 (1)头文件#include<vector>. (2)创建vector对象,vector<in ...

  10. mysql 查看数据库大小

    select table_schema, concat(truncate(sum(data_length)/1024/1024,2),' mb') as data_size,concat(trunca ...