[Fedora-packaging] recursively adding files/folders in %files

Kamal Ahmed kamal2222ahmed at yahoo.com
Wed May 9 14:51:10 UTC 2012

Is there a way to add all files recursively in the %files macro ?
I tried :

%dir %{python_sitelib}/%{name}
but that just adds the target directory in the rpm.

in my %install macro, i have:

mkdir -p -m 755 %{buildroot}/%{python_sitelib}/%{name}
python -m compileall pcore/
cp -r pcore/*.pyc %{buildroot}/%{python_sitelib}/%{name}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/packaging/attachments/20120509/1b2d885b/attachment.html>

More information about the packaging mailing list