!17 Add %build section

From: @lizhuocc 
Reviewed-by: @chenwei_kernel 
Signed-off-by: @chenwei_kernel
This commit is contained in:
openeuler-ci-bot 2025-04-18 09:19:02 +00:00 committed by Gitee
commit fb5585f6d8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: libyang
Version: 1.0.184
Release: 6
Release: 7
Summary: YANG data modeling language library
Url: https://github.com/CESNET/libyang
Source: %{url}/archive/%{name}-%{version}.tar.gz
@ -71,6 +71,7 @@ written (and providing API) in C.
%prep
%autosetup -n %{name}-%{version} -p1
%build
mkdir build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
@ -129,6 +130,9 @@ cp -r doc/html %{buildroot}/%{_docdir}/libyang/html
%{python3_sitearch}/__pycache__/yang*
%changelog
* Fri Apr 18 2025 lizhuo <lizhuo@xfusion.com> - 1.0.184-7
- Add %build section
* Tue Mar 07 2023 zhouwenpei <zhouwenpei@h-partners.com> - 1.0.184-6
- remove debug_package %{nil} to strip files and provide debug packages