unowned dirs

Ville Skyttä ville.skytta at iki.fi
Wed Oct 20 21:35:52 UTC 2010


On Thursday 21 October 2010, Neal Becker wrote:

> Right now I have:
> %dir %{python_sitearch}/mercurial
> %dir %{python_sitearch}/hgext
> 
> I guess owning the parent dirs is not sufficient?

Right.

> I could auto-generate a list of directories, but don't know what to do with
> it.
>
> Right now, I auto-generate lists of files, which are then used as:
> %files -f %{name}-base+hg.lang.files

Something like this in an appropriate place in %install should work 
(untested):

find $RPM_BUILD_ROOT%{python_sitearch}/{mercurial,hgext}/* -type d \
| sed -e "s|^$RPM_BUILD_ROOT\(.*\)|%%dir \1|" >> %{name}-base+hg.lang.files

(Or drop the "/*" and the explicitly listed mercurial and hgext %dir's you now 
have in %files.)


More information about the devel mailing list