Accepting request 1043661 from home:ojkastl_buildservice:Branch_systemsmanagement_ansible
- disable automatic generation of RPM dependencies from files in collections The files are not meant to be executed on the Ansible controller (i.e. the machine where this package is being installed), but rather on the targets that get modified. So e.g. python2 is not needed as a dependency on the ansible controller - do no longer change shebangs in files from collections OBS-URL: https://build.opensuse.org/request/show/1043661 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:ansible/ansible?expand=0&rev=9
This commit is contained in:
parent
75062c5e8c
commit
b5421d386e
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Dec 18 20:23:17 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>
|
||||||
|
|
||||||
|
- disable automatic generation of RPM dependencies from files in collections
|
||||||
|
The files are not meant to be executed on the Ansible controller
|
||||||
|
(i.e. the machine where this package is being installed), but rather
|
||||||
|
on the targets that get modified. So e.g. python2 is not needed as
|
||||||
|
a dependency on the ansible controller
|
||||||
|
- do no longer change shebangs in files from collections
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Dec 8 14:32:29 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>
|
Thu Dec 8 14:32:29 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>
|
||||||
|
|
||||||
|
11
ansible.spec
11
ansible.spec
@ -51,6 +51,10 @@ BuildRequires: ansible-core >= 2.14.1
|
|||||||
|
|
||||||
Requires: %{ansible_python}-base >= 3.9
|
Requires: %{ansible_python}-base >= 3.9
|
||||||
Requires: ansible-core >= 2.14.1
|
Requires: ansible-core >= 2.14.1
|
||||||
|
|
||||||
|
# Do not check any files in collections for requires
|
||||||
|
%global __requires_exclude_from ^%{ansible_python_sitelib}/.*$
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -70,13 +74,6 @@ done
|
|||||||
# fix for wrong shebang:
|
# fix for wrong shebang:
|
||||||
sed -i 's|/Users/kbreit/Documents/Programming/ansible_collections/cisco/meraki/venv/bin/python|%{_bindir}/%{ansible_python_executable}|g' ansible_collections/cisco/meraki/scripts/sublime-build/build.py.generic
|
sed -i 's|/Users/kbreit/Documents/Programming/ansible_collections/cisco/meraki/venv/bin/python|%{_bindir}/%{ansible_python_executable}|g' ansible_collections/cisco/meraki/scripts/sublime-build/build.py.generic
|
||||||
|
|
||||||
# Replace all #!/usr/bin/env lines to use #!/usr/bin/$1 directly.
|
|
||||||
find ./ -type f -exec \
|
|
||||||
sed -i '1s|^#!%{_bindir}/env |#!%{_bindir}/|' {} \;
|
|
||||||
|
|
||||||
find ./ -type f -exec \
|
|
||||||
sed -i '1s|python$|%{ansible_python_executable}|' {} \;
|
|
||||||
|
|
||||||
# remove .keep and .gitignore files
|
# remove .keep and .gitignore files
|
||||||
find ./ansible_collections/ -iname .gitignore -delete
|
find ./ansible_collections/ -iname .gitignore -delete
|
||||||
find ./ansible_collections/ -iname .keep -delete
|
find ./ansible_collections/ -iname .keep -delete
|
||||||
|
Loading…
Reference in New Issue
Block a user