Mailinglist Archive: opensuse-packaging (116 mails)

< Previous Next >
Re: [opensuse-packaging] Converting a package to singlespec: two questions
Hi Lee,

On 11.12.2017 19:46, Lee Duncan wrote:
On 12/11/2017 03:51 AM, Sebastian wrote:
On 12/11/2017 01:36 AM, Lee Duncan wrote:
1. The package is called "targetcli-fb". Since this does not follow the
"pyton-PACKAGENAME" convention, what should the python3 version of the
package be called? Perhaps something like targetcli-fb-python3? or
"python3-targetcli-fb"? I don't like either.

Is it a package intended to be used only by end-users or does it provide
some library for other programs?

Yes, only by end-users, as it is at the top of it's software stack, i.e.
no other packages "require" this one, but it requires others, all of
which are available in both python2 and python3 now.

This package currently has several parts:

- the python support library, which needs to be either python2 or
python3 (i.e. in /usr/lib/python*/site-lib/...)

- the man pages

- some other docs that go with all free software (like COPYING, README, etc)

- a user-level command (python script) that goes in /usr/bin

- some meta-data runtime directories (like /etc/target)

- A systemd "unit" file

The first 4 items in this list could be handled by a singlespec
approach, but not the meta-data directory tree nor the systemd unit file.

Theses can go into a common package which both (python2- and python3-) packages Require. So you would have 4 binary packages:

- python2-targetcli-fb (which Provides targetcli-fb and Requires python-targetcli-fb-common)
- python3-targetcli-fb (which Requires python-targetcli-fb-common)
- python-tagetcli-fb-common
- python-targetcli-fb-doc

An example (without the -doc package) would be https://build.opensuse.org/package/show/devel:languages:python/python-websockify

Best,

Tom
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >