[FZH] FZUG 的编译环境

Li Junliang lijunliang_dna at aliyun.com
Sat Jun 13 02:22:59 UTC 2015


对spec不是很熟悉,不过可以参考以下链接
http://lists.gnu.org/archive/html/viewmail-info/2012-06/msg00034.html

从该邮件上看,自动下载源代码需要在%pre阶段做一些额外处理,不提供对应文件是会报错。

我一般都还是将对应源代码下载到SOURCES下。

在 2015-06-13六的 09:09 +0800,Zhenbo Li写道:
> 我下载了这个 spec
> https://raw.githubusercontent.com/FZUG/repo/master/rpms/SPECS/wiznote
> /wiznote.spec
> 
> $ rpmbuild -ba wiznote.spec
> error: File /home/lizhenbo/rpmbuild/SOURCES/WizQTClient
> -8addfa1.tar.gz:
> No such file or directory
> 
> 我看了一下 spec 文件,
> URL:        https://github.com/WizTeam/WizQTClient
> Source0:    https://github.com/WizTeam/WizQTClient/archive/%{_commit}
> /%{repo}-%{_shortcommit}.tar.gz
> 
> 不应该可以自动下载源代码吗?
> 请问,我应该如何编译出该 rpm 包呢?
> 谢谢
> 
> 在 2015年6月13日 上午12:07,xiaofeng <wasphin在gmail.com> 写道:
> > 2015-06-09 20:36 GMT+08:00 Dee.H.Y <dongfengweixiao在gmail.com>:
> > 
> > > 我要是没有记错,rpmbuild -a foo.spec 可以从spec生成src.rpm
> > 
> > 
> > 在 Source 齐全的情况下, rpmbuild -s xx.spec 是可以产生对应 src.rpm 的,
> > 但是需要有所有的 Source;
> > 
> >  copr 下应该有提供简便的命令, 至少 fedpkg 下是有的,
> > 下面是文档链接, 没怎么仔细看
> > 
> > https://fedorahosted.org/copr/wiki/UserDocs
> > 
> > --
> > xiaofeng
> > 
> > --
> > gpg key fingerprint:
> > 2048R/5E63005B
> > C84F 671F 70B7 7330 4726  5EC8 02BC CBA2 5E63 005B
> > 
> > Distribution: Fedora 17 (Beefy Miracle)
> > Fedora Project <https://fedoraproject.org/>
> > --
> > trans-zh_cn mailing list
> > trans-zh_cn在lists.fedoraproject.org
> > https://admin.fedoraproject.org/mailman/listinfo/trans-zh_cn
> > --
> > Fedora中文郵件列表:
> > https://admin.fedoraproject.org/mailman/listinfo/chinese
> 
> 
> 
> -- 
> Have a nice day!
> Zhenbo Li
> --
> Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese


More information about the Chinese mailing list