python-libyang/python-libyang.spec
付善庆 101b4e12db Enable debuginfo for fix strip
Signed-off-by: 付善庆 <fushanqing@kylinos.cn>
(cherry picked from commit e6b96ffb49dc2b3a669d0dcbe6a5d7c3539e6a18)
2023-06-16 14:47:33 +08:00

41 lines
973 B
RPMSpec

%define pypi_name libyang
Name: python-libyang
Version: 1.6.1
Release: 2
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 Dec 08 2022 fushanqing <fushanqing@kylinos.cn> - 1.6.1-2
- Enable debuginfo for fix strip
* Thu Aug 26 2021 orange-snn<songnannan2@huawei.com> - 1.6.1-1
- Package init