diff --git a/pyang-swagger-1.0.tar.gz b/pyang-swagger-1.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..41982f1ae7ae98fe2ae61d9eff06a15d28aed22c Binary files /dev/null and b/pyang-swagger-1.0.tar.gz differ diff --git a/pyang-swagger.spec b/pyang-swagger.spec new file mode 100644 index 0000000000000000000000000000000000000000..39b2aadc40c1db9cdd2b2cfab238a8766e9efebc --- /dev/null +++ b/pyang-swagger.spec @@ -0,0 +1,34 @@ +%global debug_package %{nil} +%global pyang_plugin_dir usr/lib/python3.8/site-packages/pyang/plugins + +Name: pyang-swagger +Version: 1.0 +Release: 1%{?dist} +Summary: A pyang plugin to obtain the RESTCONF API from a yang model + +License: Apache +URL: https://github.com/polycube-network/pyang-swagger +Source0: %{name}-%{version}.tar.gz + +BuildRequires: python3-devel +Requires: python3-pyang + +%description +a pyang plugin to obtain the RESTCONF API from a yang model + +%prep +%autosetup + +%build + +%install +install -d %{buildroot}/%{pyang_plugin_dir} +install pyang/plugins/swagger.py %{buildroot}/%{pyang_plugin_dir} + +%files +%exclude /usr/lib/python3.8/site-packages/pyang/plugins/__pycache__/*.pyc +/%{pyang_plugin_dir}/swagger.py + +%changelog +* Sun Nov 15 2020 Robertxw 1.0-1 +- init packet