Re: Some Python Packaging Questions

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

 



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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux