- Add namespace packages to BuildRequires
- Remove namespace files in %install target - Explicitly specify Python files of the package in %files OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/azure-cli-core?expand=0&rev=4
This commit is contained in:
parent
9309855ff4
commit
ec19a5a7c8
@ -27,6 +27,8 @@ Source1: LICENSE.txt
|
|||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
|
BuildRequires: azure-cli-nspkg
|
||||||
|
BuildRequires: python3-azure-nspkg
|
||||||
Requires: azure-cli-nspkg
|
Requires: azure-cli-nspkg
|
||||||
Requires: python3-azure-nspkg
|
Requires: python3-azure-nspkg
|
||||||
Requires: python3-adal >= 0.4.3
|
Requires: python3-adal >= 0.4.3
|
||||||
@ -63,14 +65,14 @@ python3 setup.py build
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
python3 setup.py install --root=%{buildroot} --prefix=%{_prefix} --install-lib=%{python3_sitelib}
|
python3 setup.py install --root=%{buildroot} --prefix=%{_prefix} --install-lib=%{python3_sitelib}
|
||||||
|
rm -rf %{buildroot}%{python3_sitelib}/azure/cli/__init__.*
|
||||||
|
rm -rf %{buildroot}%{python3_sitelib}/azure/cli/__pycache__
|
||||||
|
rm -rf %{buildroot}%{python3_sitelib}/azure/__init__.*
|
||||||
|
rm -rf %{buildroot}%{python3_sitelib}/azure/__pycache__
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE.txt README.rst
|
%doc LICENSE.txt README.rst
|
||||||
%exclude %{python3_sitelib}/azure/cli/__init__.*py*
|
%{python3_sitelib}/azure/cli/core
|
||||||
%exclude %{python3_sitelib}/azure/cli/__pycache__/__init__.*py*
|
%{python3_sitelib}/azure_cli_core-*.egg-info
|
||||||
%exclude %{python3_sitelib}/azure/__init__.*py*
|
|
||||||
%exclude %{python3_sitelib}/azure/__pycache__/__init__.*py*
|
|
||||||
%{python3_sitelib}/*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user