slightly OOT: packaging Python 2.1b1 in RPM

Steven Haryanto steven at haryan.to
Wed Mar 21 02:50:13 EST 2001


Sorry to bother everyone. This has been solved. rpm did
implicitly compress manpages after %install
(using /usr/lib/rpm/brp-compress script), so I compress
them manually at %install.

Steve

At 3/20/2001 01:15 PM, Steven Haryanto wrote:
>I am packaging Python 2.1b1 on RedHat 6.2, rpm 3.0.5, using
>spec file modified from Jeremy's beopen-python.spec for
>BeOpen-Python 2.0.
>
>In the very latest step of %install, I generate an automatic
>file list using find:
>
>find $RPM_BUILD_ROOT/ -type f | grep -v 'file-list\.txt' | \
>     sed -e "s|^$RPM_BUILD_ROOT||g" > file-list.txt
>find $RPM_BUILD_ROOT/usr/lib/python2.1/ \
>     $RPM_BUILD_ROOT/usr/include/python2.1/ -type d | \
>     sed -e "s|^$RPM_BUILD_ROOT|%dir |g" >> file-list.txt
>
>and feed it to %files:
>
>%files -f file-list.txt
>
>so I can be pretty sure that the package will not be missing
>any file.
>
>However, when rpm is scanning for files, /usr/man/man1/python.1
>is not found because it has been compressed and becomes
>/usr/man/man1/python.1.gz. This must happen after the %install,
>since 'find' still lists the uncompressed one.
>
>Any hint why/what program did this?
>
>Thanks,
>Steve





More information about the Python-list mailing list