[Spacewalk-list] python-hwdata: Build debian package with debbuild
Robert Paschedag
robert.paschedag at web.de
Wed Dec 12 14:52:16 UTC 2018
Hi everybody,
someone has successfully created a python-hwdata debian package according to the documentation within .../client/debian/DEBIAN-HOWTO
I was able to successfully build the other packages....but the python-hwdata does not work.
I get the following error
root at 0000000:~/debbuild/SPECS# LANG=C debbuild -ba -vv python-hwdata.spec
This is debbuild, version 18.11.1
Unknown tag '%py' at line 134 of python-hwdata.spec
root at 0000000:~/debbuild/SPECS#
These are the lines (line numbers from vim)
....
130 %endif # with python3
131
132 %build
133 %if %{with python2}
134 %py2_build
135 %endif # with python2
136
137 %if %{with python3}
...
So the %py2_build does somehow not work (exist)
Corresponding files within the .spec file are
...
44 %{!?py2_build: %global py2_build CFLAGS="%{optflags}" %{__python2} setup.py build}
45 %{!?py2_install: %global py2_install %{__python2} setup.py install %{?pyinstflags} --skip-build --root %{buildroot} %{?pytargetflags}}
46 %{!?py3_build: %global py3_build CFLAGS="%{optflags}" %{__python3} setup.py build}
47 %{!?py3_install: %global py3_install %{__python3} setup.py install %{?pyinstflags} --skip-build --root %{buildroot} %{?pytargetflags}}
48
49 %{!?py3dir: %global py3dir %{_builddir}/python3-%{name}-%{version}-%{release}}
...
Can someone give me a hint, what is wrong within the definition above?
Robert
More information about the Spacewalk-list
mailing list