Mailinglist Archive: opensuse-packaging (116 mails)

< Previous Next >
Re: [opensuse-packaging] Bug in singlespec?
Does it work when you put the `%define skip_python2 1` at the top?
Otherwise all the build requirements and sub-packages are already
created with python2


On 12/03/2017 09:59 AM, Axel Braun wrote:
Morning,

I was building a new package, setup was made as for singlespec, but by
definition
%define skip_python2 1
it should only be py3.

I noticed a build failure for Leap 42.3, while Tumbleweed builds fine.
The error is:

[ 3s] -----------------------------------------------------------------
[ 3s] I have the following modifications for gnuhealth-thalamus.spec:
[ 3s] -----------------------------------------------------------------
[ 3s] ----- building gnuhealth-thalamus.spec (user abuild)
[ 3s] -----------------------------------------------------------------
[ 3s] -----------------------------------------------------------------
[ 3s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --
nosignature /home/abuild/rpmbuild/SOURCES/gnuhealth-thalamus.spec
[ 3s] error: line 82: Package does not exist: %files -n python-gnuhealth-
thalamus

No idea why it asks for this file, it was defined nowhere....
I have rewritten the specfile for Python3 only , and then it builds for Leap
42.3 as well.

See: https://build.opensuse.org/package/show/Application:ERP:Tryton:4.2/
gnuhealth-thalamus

I guess this is an error in the singlespec macros?

Best regards
Axel


< Previous Next >
Follow Ups
References