相关开发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. bootstrap兼容IE

    这种响应式的布局正是通过CSS3的媒体查询(Media Query)功能实现的,根据不同的分辨率来匹配不同的样式.IE8浏览器并不支持这一优秀的Css3特性,Bootstrap在开发文档中写了如何使用 ...

  2. 1.1、Mybatis一级缓存测试

    package me.gacl.test; import me.gacl.domain.User; import me.gacl.util.MyBatisUtil; import org.apache ...

  3. THP Transparent HugePages关闭

    ambari 安装Hortonworks HDP 时在检测host异常 The following hosts have Transparent Huge Pages (THP) enabled.TH ...

  4. VBA实现随意输入组合码,查询唯一标识码

    记录背景: 需要在excel中查询出组合码,对应的唯一标识码. 举例 组合码:4+5+6+9+1*2   标识码:A1 界面随意输入组合码:1*2+4+5+6+9  输出标识码:A1 VBA实现: P ...

  5. 整理:sql语句优化之SQL Server

    . 增加服务器CPU个数;但是必须明白并行处理串行处理更需要资源例如内存.使用并行还是串行程是MsSQL自动评估选择的.单个任务分解成多个任务,就可 以在处理器上运行.例如耽搁查询的排序.连接.扫描和 ...

  6. sorted函数

    我们需要对List.Dict进行排序,Python提供了两个方法对给定的List L进行排序,方法1.用List的成员函数sort进行排序,在本地进行排序,不返回副本方法2.用built-in函数so ...

  7. Jquery 1.11.1 Checkbox checked 判断

    if($(this).prop('checked'))

  8. ###《Effective STL》--Chapter7

    点击查看Evernote原文. #@author: gr #@date: 2014-08-31 #@email: forgerui@gmail.com Chapter7 在程序中使用STL Topic ...

  9. Poj/OpenJudge 1042 Gone Fishing

    1.链接地址: http://bailian.openjudge.cn/practice/1042/ http://poj.org/problem?id=1042 2.题目: Gone Fishing ...

  10. [翻译][MVC 5 + EF 6] 11:实现继承

    原文:Implementing Inheritance with the Entity Framework 6 in an ASP.NET MVC 5 Application 1.选择继承映射到数据库 ...