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

Michał Klich michal at michalklich.com
Sun Sep 20 13:59:18 CEST 2009


Dnia niedziela 20 września 2009 o 12:30:15 A. Cavallo napisał(a):
> > > Symlink is pointing to x86_64 arch file, i would like to have noarch
> > > rpm. It is pointing to /usr/bin/consolehelper as application needs to
> > > be run with root rights.
> > > I might be doing something wrong here but this is my first package.
> >
> > Although the target (/usr/bin/consolehelper) of the symlink is a
> > compiled binary and thus architecture-specific, the symlink's path and
> > thus the symlink itself is architecture-independent, so it ought to be
> > possible to create a noarch rpm.
> 
> Is it this relevant? In a typical system there're quite few packages: why
> bother to this level of detail?

For sake of space and having two packages i prefer to have it noarch.


> 
> > However, reading the consolehelper manpage, it looks like you may also
> > need to set up files under /etc/pam.d/ (not my area of expertise)
> >
> > (ii) You can write a generic setup.py script, and also write a .spec
> > file.  You then create the symlink in the specfile, and add it to the %
> > files section.  In Fedora we have a script "rpmdev-newspec" that makes
> 
> Cool I wish know this before: is available to the public?

Pakcege is called rpmdevtools, but this is in Fedora it may be different in 
other distro.

> 
> > it easy to create new boilerplate .spec files for a setup.py file.
> 
> Agree, it looks the old way of bdist_rpm hasn't quite catched up with rpm
> packaging recently.
> 
> > The
> > downside to this approach is that you now have a .spec file separate
> > from your setup.py, and have to maintain both.  It makes sense in our
> > world where Python is only one of many technologies, and rpm is the
> > native packaging format (for good or ill).
> 
> It is not a big burden: I can easily manages several packages at once on my
> python distro (http://pyvm.sourceforge.net).
> 
> If I can recommend I'd go for the SuSE build service: this will make easier
>  to experiment the "hands off" build a real rpm.
Looks promising, i will try that.
Thanks

> 
> Regards,
> Antonio
> 
> 
> 
> 
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
> 

-- 
Michał Klich

klich.michal at gmail.com
michal at michalklich.com
http://www.michalklich.com


More information about the Distutils-SIG mailing list