Mailinglist Archive: opensuse-packaging (116 mails)

< Previous Next >
Re: [opensuse-packaging] No %if inside %with?
On 12/10/2017 09:30 PM, Bruno Friedmann wrote:
If i remember I've been hit by this perhaps using %python3_only %python2_only
it could work ?
Isn't that the shorthand for the same feature but in %files? I get these
errors then:
[    9s]     Unknown option s in python2_only()
[    9s]     Unknown option s in python3_only()

I've been almost pretty sure this kind of writing would have work
# A full language is needed to make test successful
# C.UTF-8 used normally on obs is not enough
%{python_expand #Try to build lang
export LANG=en_US.UTF-8
$python test -s test$(echo "%{py_ver}" | cut -d "." -f1)
Using en_US.UTF-8 does not work too. I tried that already several times,
but in a `osc chroot` session it does.

Moving `%if %{with tests}` inside the %check as pointed out off-list,
does not help too.


python programming - mail server - photo - video -
cryptographic key at and on public keyservers

< Previous Next >