|
发表于 2004-11-25 22:14:51
|
显示全部楼层
Re: 请教这个spec有什么问题??
[quote:82aa85d71f="tingxx"]Name:kdocker
Summary:KDocker will help you dock any application in the system tray
Version:1.0rc2
Release:1mgc
Group:Applications/System
License:GPL
Source:%{name}-%{version}.tar.bz2
BuildRoot:%{_tmppath}/%{name}-%{version}-%{release}-root
URL:http:://kdocker.sourceforge.net <--怎么有两个冒号?
Prefix:%{_sysconfdir} <--你的软件难道要安装到 /usr/etc 下面?
Requires: qt <--只需要 qt?至少还需要 XFree86 吧?
Packager:tingxx<[email protected]>
%description
Docker will help you dock any application in the system tray. This means you
can dock openoffice, xmms, firefox, thunderbolt, eclipse, anything! Just point
and click. Works for both KDE and GNOME (In fact it should work for most modern
window managers that support NET WM Specification. I believe it works for XFCE,
for instance).
%prep
%setup -n %{name}
qmake <--这里通常都是 %configure + 参数,很少有软件不需要配置,你先看看软件的 install 文件里的说明
%build
make <--按你的意思,这里应该用 qmake
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=%{_prefix} install <-- 对不起,是我的疏忽误导了你,应该是 make DESTDIR=$RPM_BUILD_ROOT install
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
%post
%files
%defattr(-,root,root)
%{_bindir}
%{_datadir}
<--你确信软件向系统内的 /usr/bin 和 /usr/share 安装文件?你在前面可是指定把所有东西都安装到 /usr/etc 下面了。
%changelog
<--这里为什么不写日志?
打包的是一个基于qmake的程序,最后的结果总是
Processing files: kdocker-1.0rc2-1mgc
error: File not found: /var/tmp/kdocker-1.0rc2-1mgc-root/usr/bin
error: File not found: /var/tmp/kdocker-1.0rc2-1mgc-root/usr/share
Processing files: kdocker-debuginfo-1.0rc2-1mgc
RPM build errors:
File not found: /var/tmp/kdocker-1.0rc2-1mgc-root/usr/bin
File not found: /var/tmp/kdocker-1.0rc2-1mgc-root/usr/share[/quote] |
|