diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-18 04:45:45 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-18 04:45:45 +0000 |
| commit | 7061ab1b0f097274762effcaf3ca7be5fb4e9a79 (patch) | |
| tree | 374444defd19637c4b83e080db6e564a91ae1ddf | |
| parent | ce53d80939b5f95a47fbd5d84f39604897203376 (diff) | |
automatic import of python-salt-sproxy
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-salt-sproxy.spec | 88 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 90 insertions, 0 deletions
@@ -0,0 +1 @@ +/salt-sproxy-2022.10.0.tar.gz diff --git a/python-salt-sproxy.spec b/python-salt-sproxy.spec new file mode 100644 index 0000000..4f81825 --- /dev/null +++ b/python-salt-sproxy.spec @@ -0,0 +1,88 @@ +%global _empty_manifest_terminate_build 0 +Name: python-salt-sproxy +Version: 2022.10.0 +Release: 1 +Summary: Salt plugin for managing devices and applications, without running (Proxy) Minions +License: Apache License 2.0 +URL: https://github.com/mirceaulinic/salt-sproxy +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/09/45/afa96c88b2b9ccee93c0cd4ffaa741d3d812c327284ad5321c5cb0c300f4/salt-sproxy-2022.10.0.tar.gz +BuildArch: noarch + +Requires: python3-salt +Requires: python3-progressbar2 +Requires: python3-cherrypy +Requires: python3-junos-eznc +Requires: python3-napalm +Requires: python3-pynetbox +Requires: python3-netmiko + +%description +Salt plugin for interacting with network devices, without running Minions. + This is NOT a SaltStack product. + This package may eventually be integrated in a future version of the + official Salt releases, in this form or slightly different. + +%package -n python3-salt-sproxy +Summary: Salt plugin for managing devices and applications, without running (Proxy) Minions +Provides: python-salt-sproxy +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-salt-sproxy +Salt plugin for interacting with network devices, without running Minions. + This is NOT a SaltStack product. + This package may eventually be integrated in a future version of the + official Salt releases, in this form or slightly different. + +%package help +Summary: Development documents and examples for salt-sproxy +Provides: python3-salt-sproxy-doc +%description help +Salt plugin for interacting with network devices, without running Minions. + This is NOT a SaltStack product. + This package may eventually be integrated in a future version of the + official Salt releases, in this form or slightly different. + +%prep +%autosetup -n salt-sproxy-2022.10.0 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-salt-sproxy -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 2022.10.0-1 +- Package Spec generated @@ -0,0 +1 @@ +de1e2a4ddea3af27d63b34dccbaa433e salt-sproxy-2022.10.0.tar.gz |
