Mailinglist Archive: opensuse-packaging (127 mails)

< Previous Next >
[opensuse-packaging] Re: Creating meta-packages for python2/3 from a single spec
Hi Jan!

On 08/21/2017 01:02 PM, jan matejek wrote:
On 18.8.2017 17:11, John Paul Adrian Glaubitz wrote:
I tried using this technique for the meta-package as well. However, that didn't
because python-rpm-macros expects a to be present which, of course, I
don't> have in an effectively empty package.

no, python-rpm-macros don't expect, they don't ever touch it unless
you use %python_build

That's odd. I basically took the current version of my package [1], commented
out the Source directives and the %python_build directives and it fails with:

what error are you seeing? what you are trying to do looks valid and should
work with singlespec
as is.

[ 19s] + /usr/bin/python2 build '--executable=/usr/bin/python2 -s'
[ 19s] /usr/bin/python2: can't open file '': [Errno 2] No such file
or directory
[ 19s] error: Bad exit status from /var/tmp/rpm-tmp.f17BNP (%build)

I'm attaching a diff with the changes I made, then ran "osc build".


Index: python-azure-sdk.spec
--- python-azure-sdk.spec (revision 194700736005f345eb14da771d463ebd)
+++ python-azure-sdk.spec (working copy)
@@ -24,13 +24,13 @@
License: MIT
Group: Development/Languages/Python
-Source1: LICENSE.txt
-Patch1: a_drop-compatible-releases-operator.patch
+#Source1: LICENSE.txt
+#Patch1: a_drop-compatible-releases-operator.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
-BuildRequires: unzip
+#BuildRequires: unzip
Requires: python-azure-batch < 4.0.0
Requires: python-azure-batch >= 3.0.0
Requires: python-azure-datalake-store < 1.0.0
@@ -64,19 +64,19 @@
All packages in this bundle have been tested with Python 2.7, 3.3, 3.4, 3.5
and 3.6.

-%setup -q -n azure-2.0.0
-%patch1 -p1
+#%setup -q -n azure-2.0.0
+#%patch1 -p1

-install -m 644 %{SOURCE1} %{_builddir}/azure-2.0.0
+#install -m 644 %{SOURCE1} %{_builddir}/azure-2.0.0


-%files %{python_files}
-%doc LICENSE.txt README.rst
+#%files #%{python_files}
+#%doc LICENSE.txt README.rst


< Previous Next >
Follow Ups