[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



On Mon, 31 Dec 2001, Giulio Orsero wrote:

> On Mon, 31 Dec 2001 04:41:38 -0500 (EST), you wrote:
> 
> >  first, even though i've defined:
> >  BuildRoot: %{_tmppath}/${name}-root
> >if i try to use a shortcut in the %files section of
> >  %doc README ChangeLog (etc etc)
> >
> 
> >the build looks for these doc files, and finds them, in ~/rpm/BUILD.  
> ~/rpm/BUILD
> has no meaning, unless you say you defined %_topdir as ~/rpm


sorry, i should have mentioned that i had already done that.

 
> >*not* in an RPM-specific subdirectory for this particular RPM that i'm 
> >building, but in the shared BUILD directory.  this makes no sense.  can 
> >someone explain this?  it would have made far more sense if this %doc 
> >shortcut looked in, say, the RPM-specific build root directory.
> >comments?
> 
> %doc are never searched in the BuildRoot.
> They are usually searched in
> %_topdir/BUILD/<package-directory>


that's what *i* had been told, but instead, it's searching in 
%_topdir/BUILD only.

 
> Maybe show a trimmed down spec file you are using that show the problem you
> see.

~/.rpmmacros:
-------------

%_topdir	/home/rpjday/rpm
%_tmppath	/home/rpjday/rpm/tmp

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

%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

%files
%defattr(-,root,root)
/tmp/wonderpics
%doc *README*        <----- finds file in %_topdir/BUILD





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