On Mon, 2009-06-08 at 14:43 -0400, Aristeu Rozanski wrote: > Currently, the spec has *fc* hardcoded to the hardlink command. Not sure if > it wouldn't be better just use /usr/src/kernels/*. > > --- > kernel.spec | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > --- spec-diffs.orig/kernel.spec 2009-06-08 12:35:34.000000000 -0400 > +++ spec-diffs/kernel.spec 2009-06-08 14:36:12.000000000 -0400 > @@ -1630,7 +1630,12 @@ if [ "$HARDLINK" != "no" -a -x /usr/sbin > then\ > (cd /usr/src/kernels/%{KVERREL}%{?1:.%{1}} &&\ > /usr/bin/find . -type f | while read f; do\ > - hardlink -c /usr/src/kernels/*.fc*.*/$f $f\ > + if [ -n "%{?rhel}" ]\ > + then\ > + hardlink -c /usr/src/kernels/*.el*.*/$f $f\ > + else\ > + hardlink -c /usr/src/kernels/*.fc*.*/$f $f\ > + fi\ > done)\ > fi\ > %{nil} Could just do %{dist} instead of .fc* and .el* I suspect. - ajax
_______________________________________________ Fedora-kernel-list mailing list Fedora-kernel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-kernel-list