diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-29 13:38:16 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-29 13:38:16 +0000 |
| commit | 1618e8f7c451d2313847fc8ff99be69f7c91442f (patch) | |
| tree | 4fd8d6f9818cf37e1972bd7957fd37e0e0669749 | |
| parent | 4c665aa1a28434885f74debb61913c4a1ce920b6 (diff) | |
automatic import of python-ifstate
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-ifstate.spec | 134 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 136 insertions, 0 deletions
@@ -0,0 +1 @@ +/ifstate-1.8.3.tar.gz diff --git a/python-ifstate.spec b/python-ifstate.spec new file mode 100644 index 0000000..36f97bc --- /dev/null +++ b/python-ifstate.spec @@ -0,0 +1,134 @@ +%global _empty_manifest_terminate_build 0 +Name: python-ifstate +Version: 1.8.3 +Release: 1 +Summary: Manage host interface settings in a declarative manner +License: GPL3+ +URL: https://ifstate.net/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d6/20/79bbb2fc7311e4954f365b857b4825655e63291b96c117241f799d15a2dd/ifstate-1.8.3.tar.gz +BuildArch: noarch + +Requires: python3-jsonschema +Requires: python3-pyroute2 +Requires: python3-pyyaml +Requires: python3-pygments +Requires: python3-wgnlpy + +%description +# IfState + +[](https://badge.fury.io/py/ifstate) + +A python library to configure (linux) host interfaces in a declarative manner. +It is a frontend for the kernel netlink protocol using +[pyroute2](https://pyroute2.org/) and aims to be as powerful as the +iproute2/bridge/ethtool/tc/wireguard commands. + +It was written for interface configuration on lightweight software defined linux +routers **without** using any additional network management daemon like +[Network-Manager](https://gitlab.freedesktop.org/NetworkManager/NetworkManager) or +[systemd-networkd](https://www.freedesktop.org/software/systemd/man/systemd-networkd.service.html). + +Can be used with deployment and automation tools like +[ansible](https://github.com/ansible/ansible) since it's declarative and +operates idempotent. + +[More...](https://ifstate.net/) + + +%package -n python3-ifstate +Summary: Manage host interface settings in a declarative manner +Provides: python-ifstate +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-ifstate +# IfState + +[](https://badge.fury.io/py/ifstate) + +A python library to configure (linux) host interfaces in a declarative manner. +It is a frontend for the kernel netlink protocol using +[pyroute2](https://pyroute2.org/) and aims to be as powerful as the +iproute2/bridge/ethtool/tc/wireguard commands. + +It was written for interface configuration on lightweight software defined linux +routers **without** using any additional network management daemon like +[Network-Manager](https://gitlab.freedesktop.org/NetworkManager/NetworkManager) or +[systemd-networkd](https://www.freedesktop.org/software/systemd/man/systemd-networkd.service.html). + +Can be used with deployment and automation tools like +[ansible](https://github.com/ansible/ansible) since it's declarative and +operates idempotent. + +[More...](https://ifstate.net/) + + +%package help +Summary: Development documents and examples for ifstate +Provides: python3-ifstate-doc +%description help +# IfState + +[](https://badge.fury.io/py/ifstate) + +A python library to configure (linux) host interfaces in a declarative manner. +It is a frontend for the kernel netlink protocol using +[pyroute2](https://pyroute2.org/) and aims to be as powerful as the +iproute2/bridge/ethtool/tc/wireguard commands. + +It was written for interface configuration on lightweight software defined linux +routers **without** using any additional network management daemon like +[Network-Manager](https://gitlab.freedesktop.org/NetworkManager/NetworkManager) or +[systemd-networkd](https://www.freedesktop.org/software/systemd/man/systemd-networkd.service.html). + +Can be used with deployment and automation tools like +[ansible](https://github.com/ansible/ansible) since it's declarative and +operates idempotent. + +[More...](https://ifstate.net/) + + +%prep +%autosetup -n ifstate-1.8.3 + +%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-ifstate -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 1.8.3-1 +- Package Spec generated @@ -0,0 +1 @@ +9bb0b231d3b49119d5753eca2b99935f ifstate-1.8.3.tar.gz |
