Am Donnerstag, 22. Juni 2006 12:55 schrieb Jan Engelhardt:
> dumb.spec:
>
> Name: dumb-a
> Version: 0
> Release: 0
> License: WTFPL
> Summary: Foo
> Group: What
> BuildRoot: %_tmppath/%name-%version-%build
>
> %description
>
> %install
> mkdir -p "%{buildroot}/etc/dumb";
> echo %name >"%{buildroot}/etc/dumb/stamp";
>
> %files
> /etc/dumb
>
>
> You might try with that.
>
>
>
> Jan Engelhardt
You're right: I get a conflict warning. Now here's my example, where I didn't
get one. I have used a different version of ib_core.ko. Maybe it is dependent
on what kind of files are being packed? In this example, it is a kernel
module.
[EMAIL PROTECTED] /root # less /usr/src/packages/SPECS/fileconflictstest.spec
Name: fileconflictstest
Version: 1.0
Release: 1
Summary: fileconflictstest
Group: System/Packages
License: GPL
Source0: bla.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
fileconflictstest
%prep
%setup -q
%build
mkdir -p \
%{buildroot}/lib/modules/2.6.16.13-4-smp/kernel/drivers/infiniband/core/
%install
cp ib_core.ko \
%{buildroot}/lib/modules/2.6.16.13-4-smp/kernel/drivers/infiniband/core/
%clean
%files
%defattr(-, root, root)
/lib/modules/2.6.16.13-4-smp/kernel/drivers/infiniband/core/ib_core.ko
--
Ask five economists and you'll get five different explanations (six if
one went to Harvard).
-- Edgar R. Fiedler
--
__
________________________________________creating IT solutions
Dr. Oliver Tennert
Senior Solutions Engineer
CAx Professional Services
science + computing ag
phone +49(0)7071 9457-598 Hagellocher Weg 71-75
fax +49(0)7071 9457-411 D-72070 Tuebingen, Germany
[EMAIL PROTECTED] www.science-computing.de
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]