Add %build section

Signed-off-by: lizhuo <lizhuo@xfusion.com>
This commit is contained in:
lizhuo 2025-04-18 03:46:53 +00:00 committed by Gitee
parent 7115ab3618
commit d8710b3f80
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