Am Dienstag, 19. November 2019, 18:56:37 CET schrieb Brüns, Stefan:
On Dienstag, 19. November 2019 18:40:10 CET Hans-Peter Jansen wrote:
Hi,
here's a multibuild for PyCryptodome, that should result in two packages: python-pycryptodome and python-pycryptodomex:
https://build.opensuse.org/package/show/home:frispete:python/python-pycryp to dome
How do I get rid of the ":x" package?
Thanks, Pete
P.S. 1: You are also affected by the "verbatim" nature of %description:
Any %if/%else/%endif statement is replaced by blank lines, which then show up in the package description (go to the "Details" of e.g. the .src.rpm).
Oh, strange. Especially strange, that they piled up in one place?!?
To fix this, you have to put the whole %description block inside the %if..endif block. Another possiblility is to wrap the description content i a macro, IIRC, but have never used this.
Done. Good catch.
P.S. 2: Your spec mixes "_distname" / "distname".
Hrmpf ^2. Yes, that was me in a hurry. It was an attempt to fix a strange issue, when using %define namespace Cryptodome ... %files %{python_sitearch}/%{namespace}/ resulted in: [ 134s] RPM build errors: [ 134s] Directory not found: /home/abuild/rpmbuild/BUILDROOT/python- pycryptodomex-3.9.4-0.x86_64/usr/lib64/python3.7/site-packages/python3- pycryptodomexspace} in other words, it substituted %{namespace} with the %{name} macro in a local build. NO fun. I'm not even sure, which tree I should bark at with this beauty. Cheers, Pete -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org