Mailinglist Archive: opensuse-packaging (127 mails)

< Previous Next >
Re: [opensuse-packaging] Re: Creating meta-packages for python2/3 from a single spec
On 08/21/2017 03:46 PM, John Paul Adrian Glaubitz wrote:
(you might get interesting results with the commented out %files section as
well)

hope this helps

Definitely. Thanks a lot for the quick help!

Hmm. So, I have followed your advice and properly commented out %python_build
and
so on. While it now builds fine, it actually just generates the source RPM.

I thoroughly checked whether I missed something obvious but I couldn't find
anything. With the changes in the diff, I just get the source RPM.

Any ideas?

Adrian
Index: python-azure-sdk.spec
===================================================================
--- python-azure-sdk.spec (revision 194700736005f345eb14da771d463ebd)
+++ python-azure-sdk.spec (working copy)
@@ -24,8 +24,8 @@
License: MIT
Group: Development/Languages/Python
Url: https://github.com/Azure/azure-sdk-for-python
-Source:
https://files.pythonhosted.org/packages/source/a/azure/azure-2.0.0.zip
-Source1: LICENSE.txt
+#Source:
https://files.pythonhosted.org/packages/source/a/azure/azure-2.0.0.zip
+#Source1: LICENSE.txt
Patch1: a_drop-compatible-releases-operator.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
@@ -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.

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

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

%install
-%python_install
+#%%python_install

-%files %{python_files}
-%defattr(-,root,root,-)
-%doc LICENSE.txt README.rst
-%{python_sitelib}/*
+#%%files %{python_files}
+#%%defattr(-,root,root,-)
+#%%doc LICENSE.txt README.rst
+#%%{python_sitelib}/*

%changelog

< Previous Next >
Follow Ups