Re: [cx-oracle-users] Question on Cx_Oracle module on Fedora Core 3 and AIX
Brought to you by:
atuining
|
From: Mihai I. <mi...@re...> - 2004-11-29 20:27:32
|
On Mon, Nov 29, 2004 at 10:15:36AM -0700, Anthony Tuininga wrote:
> First, let me tell you that I am no expert on creating RPMs. I have
> simply been using "python setup.py bdist_rpm" and posting the results.
> They work but are fairly limited, as you already noted. :-) Misa, can
> you indicate what is different in your RPMs? If I can use a specific
> SPEC file which is more intelligent rather than the default one
> generated by distutils, I'd be quite happy to do so.
I have started from python setup.py bdist_rpm and then tailored the spec file
for my needs:
- patched cx_Oracle heavily (but the packages have been accepted for the beta
1; the only outstanding one is the rpath one which I didn't bother to submit
upstream because I thought it's too specific to the way I use cx_Oracle).
Adding patches with distutils is a pain, if even possible.
- Changelog entries are nice. rpm's changelog entries should be packaging
specific while HISTORY.txt is specific to the software that is packaged - at
least that's how I see it.
- I have the habit of not trying to invoke python directly, but using the
rpm macro %{__python} - just because I used to have both python 1.5 and
python 2.2 on the same system and I was sometimes building with the
interpreter being python2. That's not useful anymore, but I still have the
habit :-)
I just diffed my spec file vs. a bdist_rpm one, and they only seem to be
different by the two above-mentioned ones.
I have attached the rpath patch in case anybody else is interested. This will
allow one to call cx_Oracle without having to set LD_LIBRARY_PATH in order for
the linker to find libclntsh.so
Misa
|