forked from pool/azure-cli-core
- 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-setuptools
|
||||
BuildRequires: unzip
|
||||
BuildRequires: azure-cli-nspkg
|
||||
BuildRequires: python3-azure-nspkg
|
||||
Requires: azure-cli-nspkg
|
||||
Requires: python3-azure-nspkg
|
||||
Requires: python3-adal >= 0.4.3
|
||||
@ -63,14 +65,14 @@ python3 setup.py build
|
||||
|
||||
%install
|
||||
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
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE.txt README.rst
|
||||
%exclude %{python3_sitelib}/azure/cli/__init__.*py*
|
||||
%exclude %{python3_sitelib}/azure/cli/__pycache__/__init__.*py*
|
||||
%exclude %{python3_sitelib}/azure/__init__.*py*
|
||||
%exclude %{python3_sitelib}/azure/__pycache__/__init__.*py*
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%{python3_sitelib}/azure/cli/core
|
||||
%{python3_sitelib}/azure_cli_core-*.egg-info
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user