!2 sync package to 21.09 from master

From: @orange-snn
Reviewed-by: @yangzhao_kl
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2021-09-01 02:09:32 +00:00 committed by Gitee
commit 181173c9a4
3 changed files with 42 additions and 0 deletions

BIN
libyang-1.6.1.tar.gz Normal file

Binary file not shown.

38
python-libyang.spec Normal file
View File

@ -0,0 +1,38 @@
%define debug_package %{nil}
%define pypi_name libyang
Name: python-libyang
Version: 1.6.1
Release: 1
Summary: Python CFFI bindings to libyang.
License: MIT
URL: https://github.com/CESNET/libyang-python
Source0: https://files.pythonhosted.org/packages/20/23/0b2445f42452f548401ae90f434d5e531e15a131f42570467fc722906c1e/%{pypi_name}-%{version}.tar.gz
BuildRequires: python3-devel python3-setuptools libyang python3-cffi libyang-devel
%description
Python CFFI bindings to libyang.
%package -n python3-libyang
Summary: python3 pacakge of %{pypi_name}
Requires: python3 libyang python3-cffi
%description -n python3-%{pypi_name}
python3 pacakge of %{pypi_name}.
%prep
%autosetup -n %{pypi_name}-%{version}
%build
%py3_build
%install
%py3_install
%files -n python3-%{pypi_name}
%{python3_sitearch}/*
%changelog
* Thu Aug 26 2021 orange-snn<songnannan2@huawei.com> - 1.6.1-1
- Package init

4
python-libyang.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: pypi
src_repo: libyang
tag_prefix: "^v"
separator: "."