%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 [![PyPI version](https://badge.fury.io/py/ifstate.svg)](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 [![PyPI version](https://badge.fury.io/py/ifstate.svg)](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 [![PyPI version](https://badge.fury.io/py/ifstate.svg)](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 * Wed May 31 2023 Python_Bot - 1.8.3-1 - Package Spec generated