diff --git a/libcbor.spec b/libcbor.spec new file mode 100644 index 0000000000000000000000000000000000000000..241ac46e20f36b319b40e9cd9a5e63d342786861 --- /dev/null +++ b/libcbor.spec @@ -0,0 +1,63 @@ +%define anolis_release 1 +Name: libcbor +Version: 0.7.0 +Release: %{anolis_release}%{?dist} +Summary: A CBOR parsing library + +License: MIT +URL: http://libcbor.org +Source0: https://github.com/PJK/%{name}/archive/v%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: python3-breathe +BuildRequires: python3-sphinx +BuildRequires: python3-sphinx_rtd_theme +BuildRequires: make + +%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 + + +%build +%cmake -B . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFFIX="/usr" ./ +%make_build cbor_shared +cd doc +make man + + +%install +%make_install +mkdir -p %{buildroot}%{_mandir}/man1 +cp doc/build/man/* %{buildroot}%{_mandir}/man1 + +%ldconfig_scriptlets + + +%files +%license LICENSE.md +%doc README.md +%{_libdir}/libcbor.so.0* +%{_mandir}/man1/libcbor.1* + +%files devel +%{_includedir}/cbor.h +%{_includedir}/cbor/*.h +%{_includedir}/cbor/internal/*.h +%{_libdir}/libcbor.so +%{_libdir}/pkgconfig/libcbor.pc + +%changelog +* Wed Mar 23 2022 Chunmei Xu - 0.7.0-1 +- init from upstream 0.7.0 diff --git a/v0.7.0.tar.gz b/v0.7.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..436420d9d7aae675907ade242e74d7de7e166499 Binary files /dev/null and b/v0.7.0.tar.gz differ