Accepting request 864407 from devel:languages:python:azure

- Fix issues with Python multi-flavor builds
  + Create directories using %pythond_expand in %install section
  + Use canonical %{python_sitelib} path in %files section (forwarded request 864352 from glaubitz)

OBS-URL: https://build.opensuse.org/request/show/864407
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-azure-mgmt-datalake-nspkg?expand=0&rev=5
This commit is contained in:
Dominique Leuenberger 2021-01-22 20:51:13 +00:00 committed by Git OBS Bridge
commit a84b1fafed
2 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Jan 19 14:52:47 UTC 2021 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Fix issues with Python multi-flavor builds
+ Create directories using %pythond_expand in %install section
+ Use canonical %{python_sitelib} path in %files section
-------------------------------------------------------------------
Thu Nov 26 11:07:08 UTC 2020 - Robert Schweikert <rjschwei@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-azure-mgmt-datalake-nspkg
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -60,15 +60,14 @@ install -m 644 %{SOURCE1} %{_builddir}/azure-mgmt-datalake-nspkg-%{version}
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
mkdir -p %{buildroot}%{python2_sitelib}/azure/mgmt/datalake
mkdir -p %{buildroot}%{python3_sitelib}/azure/mgmt/datalake
%python_expand mkdir -p %{buildroot}%{$python_sitelib}/azure/mgmt/datalake
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst
%license LICENSE.txt
%python2_only %{python2_sitelib}/azure/mgmt/datalake
%python3_only %dir %{python3_sitelib}/azure/mgmt/datalake
%dir %{python_sitelib}/azure/mgmt/datalake
%python2_only %{python_sitelib}/azure/mgmt/datalake
%{python_sitelib}/azure_mgmt_datalake_nspkg-*.egg-info
%changelog