1 Star 0 Fork 0

jhon-hsu/libcbor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
libcbor.spec 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
jhon-hsu 提交于 2021-08-27 11:21 . commit
Name: libcbor
Version: 0.5.0
Release: 1%{?dist}
Summary: A CBOR parsing library
Group: System Environment/Libraries
License: MIT
URL: http://libcbor.org
Source0: libcbor-%{version}.tar.gz
BuildRequires: cmake, gcc, gcc-c++, python3-sphinx, python3-breathe
%description
libcbor is a C library for parsing and generating CBOR.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel contains libraries and header files for %{name}.
%prep
%setup -q
%cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFFIX="/usr" ./
%build
%make_build cbor_shared
cd doc
make man
%install
%make_install
mkdir -p %{buildroot}%{_mandir}/man1
cp doc/build/man/* %{buildroot}%{_mandir}/man1
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%{_libdir}/libcbor.so.?
%{_libdir}/libcbor.so.?.?.?
%doc README.md
%{_mandir}/man1/libcbor.1.gz
%license LICENSE.md
%files devel
%{_includedir}/cbor.h
%{_includedir}/cbor/*.h
%{_includedir}/cbor/internal/*.h
%{_libdir}/libcbor.so
%{_libdir}/pkgconfig/libcbor.pc
%changelog
* Wed Jul 19 2017 Marek Tamaskovic <[email protected]> 0.5.0-1
- Init package.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jhon-hsu/libcbor.git
[email protected]:jhon-hsu/libcbor.git
jhon-hsu
libcbor
libcbor
master

搜索帮助