[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: still confusion with the %doc directive in a spec file
- From: rpjday <rpjday mindspring com>
- To: <rpm-list redhat com>
- Subject: Re: still confusion with the %doc directive in a spec file
- Date: Mon, 31 Dec 2001 06:01:46 -0500 (EST)
On Mon, 31 Dec 2001, Giulio Orsero wrote:
> On Mon, 31 Dec 2001 05:12:09 -0500 (EST), you wrote:
>
> >spec file:
> >----------
> >Summary: WonderPics, a collection of images
> >Name: wonderpics
> >Version: 1.0
> >Release: 1
> >Copyright: GPL
> >Group: Amusements/Graphics
> >BuildArch: noarch
> >BuildRoot: %{_tmppath}/%{name}-root
> >URL: http://www.wonderpicsrus.com/wonderpics
> >Distribution: whatever
> >Vendor: WonderpicsRUs, Inc.
> >Packager: fred@wonderpicsrus.com
> >Provides: WonderPics
> >Requires: ee
>
> Where's the "Source" tag?
> I think that if you use "Source", then rpm will untar the source in a dir
> (expecting the untarred dource dir will have some specific name) and sets up
> internal variables to search for %doc into that dir.
> If you don't use the usual setup, that variable will be empty and so fall
> back into common BUILD dir
>
> >%description
> >This package contains WonderPics, just random images as
> >a test for building a noarch RPM.
> >%prep
> >exit 0
> >%build
> >exit 0
> >%install
> >exit 0
> >%clean
> >exit 0
>
> The %setup macro is also missing.
>
> So it seems the test rpm/spec you are using is not ok to test rpm
> capabilities since it's not standard.
but what i'm doing is demonstrating a *really* trivial way to create a
noarch rpm, for which there is no source, and no %setup (not to mention,
as you can see above, pretty much little of anything else.)
i realize that typical spec files will have these steps, but the fact
that i don't should not cause the build to act in unpredictable ways,
such as looking for %doc files in the wrong location.
rday
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]