On Tuesday 24 August 2004 17:10, Jeff Pitman wrote:
I was going to recommend this one liner:
sed 's/\(.*\.pyo\)/%ghost \1/' < INSTALLED_FILES >
INSTALLED_FILES.ghostbusted
%files -f INSTALLED_FILES.ghostbusted
%doc README INSTALL LICENSE
%dir %{_libdir}/python?.?/site-packages/blah
%dir %{_libdir}/python?.?/site-packages/blah/subblah
For directories, I found something similar to this useful:
find %{_datadir}/%{name}-%{version} -type d |
while read d; do echo "%dir $d"; done >>INSTALLED_FILES
find %{_libdir}/python%{pybasever}/site-packages/foo -type d |
while read d; do echo "%dir $d"; done >>INSTALLED_FILES
take care,
--
-jeff