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

A. Cavallo a.cavallo at cavallinux.eu
Sun Sep 20 12:13:17 CEST 2009

> It is not mentioned in Fedora guidelines
> http://fedoraproject.org/wiki/Packaging/Guidelines#Packaging_Guidelines

Neither is explicitly said on any other linux distro: it is experience coming 
from building rpms that span across distros and releases.

If you type rpm -qa --scripts on a running (failrly recent) rpm based distro 
you'll notice how little scripting is going on: mostly on core packages where 
the target is well defined.

> Ok, how would you handle creating symlink in setup.py? and removing it of
> course when uninstalling rpm. That is my goal.
> I managed to create symlink with setup.py but can not find any option for
> removing, which is i think correct as there is no uninstall option for
> setup.py.

That's the scope foe the %file description, unless you're not creating an 
sdk/library in which case other rules apply. And yes none of these "rules" are 
documented (as far I know): it is just experience.


More information about the Distutils-SIG mailing list