[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] Add a "make rpmball" target



On Mon, Mar 03, George Dunlap wrote:


> +%install
> +rm -rf \$RPM_BUILD_ROOT
> +mkdir -p \$RPM_BUILD_ROOT

Newer rpms are supposed to do that automatically, but I dont know what
"newer" actually means. And certainly it does not hurt to keep this.

> +cd %{_xenroot}
> +dist/install.sh \$RPM_BUILD_ROOT/
> +
> +cd \$RPM_BUILD_ROOT
> +
> +# Don't include xen-syms
> +rm -f boot/xen-syms*
> +# Remove all the "linked" xen-*.gz files
> +rm -f \$(find boot/ -type l)

"find $paht -type l -delete"?

> +%files
> +%defattr(-,root,root,-)
> +/*

In this case, to avoid package conflicts, add some tags like:

Obsoletes: xen-libs
Obsoletes: xen-tools


Also "Release: unstable" could be some automatically increasing number,
like 'date +%s'. This avoids the need for "rpm -Uvh --force xen.rpm".
Not sure how package managers deal with missing digits in the Release:
tag. If in doubt, set it to 0.


Olaf

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.