[Distutils] distutils bdist_rpm and %postun section of spec file

A. Cavallo a.cavallo at cavallinux.eu
Thu Sep 17 23:07:17 CEST 2009


Hi,
as rule of thumb (followed now by all major distros) you should not put any 
script in %postun, %postinst etc sections.

Regards,
Antonio

> Hello,
> I am looking for some advise in creating rpm package using bdist_rpm.
> I have managed to create post_install part using information
> http://stackoverflow.com/questions/1321270/how-to-extend-distutils-with-a-s
>imple-post-install-script Now i would like to add some code to %postun part
> of spec file to revert changes done by my post_install command.
> Is there a way to add it in setup.py or do i have to manually edit spec
> file?


More information about the Distutils-SIG mailing list