Hi, ONce again for taking this on....HELP..... On 02/17/2017 12:31 PM, jan matejek wrote:
Dear packagers,
<snip>
Conversion steps:
0. If you want to build for anything other than Factory, you need to include compatibility shims. This definition of the %python_module macro goes on top of your spec: %{?!python_module:%define python_module() python-%1 python3-%1} and a buildrequire: BuildRequires: python-rpm-macros
1. Wrap all your "BuildRequires: python-something": BuildRequires: %{python_module something} Do not do this in Requires or any other fields. If you have a buildrequire that should only apply to one python, say, python-enum34 only for python 2, do not wrap it.
2. At the end of the spec preamble, before %description, place the macro: %python_subpackages on a line by itself
Got this far only :( For an upcoming project I need python-datrie which currently only exists in d:l:p3 thus rather than create more things to be converted I figured I'd try myself on the single-spec use and get the package moved to d:l:p To start with I started copying things so I don't fiddle myself into a corner where rm -rf is my only recourse... So I copied (osc copypac) from d:l:p3 to home:rjschwei [1]. I set up the spec file to be single-spec to the point where I thought it should work. Locally I copied the setup into my checked out d:l:p project directory and then tried to build, but: -> osc build openSUSE_Factory unresolvable: nothing provides python2-pytest-runner However pytest-runner has already been moved to single-spec [2] thus I would expect python2-pytest-runner to be there. Confused..... Help is appreciated, Robert [1] https://build.opensuse.org/package/show/home:rjschwei/python-datrie [2] https://build.opensuse.org/package/view_file/devel:languages:python/python-p... -- Robert Schweikert MAY THE SOURCE BE WITH YOU Distinguished Architect LINUX Team Lead Public Cloud rjschwei@suse.com IRC: robjo