代码拉取完成,页面将自动刷新
Name: libcbor
Version: 0.11.0
Release: 2
Summary: A CBOR parsing library
License: MIT
URL: https://libcbor.org
Source0: https://github.com/PJK/%{name}/archive/v%{version}.tar.gz
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: python3-breathe
BuildRequires: python3-sphinx
BuildRequires: python3-sphinx_rtd_theme
BuildRequires: make
BuildRequires: pkgconfig(cmocka)
%description
libcbor is a C library for parsing and generating CBOR.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel contains libraries and header files for %{name}.
%prep
%autosetup -n %{name}-%{version}
%build
%cmake -DCMAKE_BUILD_TYPE=Release -DWITH_TESTS=ON
%cmake_build
cd doc
make man
%install
%cmake_install
mkdir -p %{buildroot}%{_mandir}/man3
cp doc/build/man/libcbor.3 %{buildroot}%{_mandir}/man3/
%files
%license LICENSE.md
%doc README.md
%{_libdir}/libcbor.so.0*
%files devel
%{_includedir}/cbor.h
%{_includedir}/cbor/*.h
%{_includedir}/cbor/internal/*.h
%{_libdir}/libcbor.so
%{_libdir}/pkgconfig/libcbor.pc
%{_libdir}/cmake/libcbor
%{_mandir}/man3/*
%changelog
* Tue Nov 05 2024 Funda Wang <fundawang@yeah.net> - 0.11.0-2
- adopt to new cmake macro
* Wed Jul 17 2024 kywqs <weiqingsong@kylinos.cn> - 0.11.0-1
- Update version to 0.11.0
- Include the cmake directory in the devel package
* Tue Feb 27 2024 wangshuo <wangshuo@kylinos.cn> - 0.10.2-1
- Update version to 0.10.2
* Wed May 11 2022 yangchenguang <yangchenguang@uniontech.com> - 0.9.0-1
- Package Init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。