Mailinglist Archive: opensuse-packaging (250 mails)

< Previous Next >
Re: [opensuse-packaging] python modules as noarch
  • From: "Hans-Peter Jansen" <hpj@xxxxxxxxx>
  • Date: Sat, 8 Aug 2009 15:42:35 +0200
  • Message-id: <200908081542.35962.hpj@xxxxxxxxx>
Am Samstag, 8. August 2009 schrieb Hans-Peter Jansen:
Dear Jan,

Am Montag, 3. August 2009 schrieb Jan Matejek:
Packages keeping their own filelists in spec files will break -
distutils/setuptools will install into purelib directory, but
%py_sitelib macro is pointing into platlib.
Such packages need to be changed - either by using --record-rpm, or if
that is not possible, using the new macros adopted from Fedora.
%python_sitelib points to /usr/lib/python2.6/site-packages
%python_sitearch is /usr/lib64/python2.6/site-packages (same thing as
%py_sitelib, actually).

I've been bitten by this now:


and what I dislike from this fact is that this needs ugly conditionals
for factory.

Much better would have been: add these macros to all distros we care
about, then we could have been using these macros everywhere..

Could somebody give me an hint, how this conditional look like?

%if 0%suse_factory

Okay, now I do use a construct like this:

%if 0%suse_version > 1110
BuildArch: noarch
%define py_sitedir %python_sitelib

Unfortunately, rpmlint thinks, this is not such a great idea:

python-logilab-common.src:32: W: invalid-suse-version-check 1110
The specfile contains a comparison of %suse_version against a suse release
that does not exist. Please double check.

Anybody with an advice here?

To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups