diff --git a/libcbor.spec b/libcbor.spec index f9be2b1317201db848c776683ba6ba999c7bfe93..5d0ee192dffcb52ed8d5be56dcce0bc2c88ee7cc 100644 --- a/libcbor.spec +++ b/libcbor.spec @@ -1,6 +1,7 @@ -%define anolis_release 3 +%define anolis_release 1 + Name: libcbor -Version: 0.7.0 +Version: 0.10.2 Release: %{anolis_release}%{?dist} Summary: A CBOR parsing library @@ -14,7 +15,8 @@ BuildRequires: gcc-c++ BuildRequires: python3-breathe BuildRequires: python3-sphinx BuildRequires: python3-sphinx_rtd_theme -BuildRequires: make +BuildRequires: make +BuildRequires: libcbor %description libcbor is a C library for parsing and generating CBOR. @@ -35,44 +37,46 @@ Requires: %{name} = %{version}-%{release} The %{name}-devel contains libraries and header files for %{name}. %prep -%setup -q - +%autosetup -n %{name}-%{version} +sed -i 's|${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/pkgconfig|${CMAKE_INSTALL_LIBDIR}/pkgconfig|' src/CMakeLists.txt %build %cmake -B . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFFIX="/usr" ./ -%make_build cbor_shared +%make_build cd doc make man %install %make_install -mkdir -p %{buildroot}%{_mandir}/man1 -cp doc/build/man/* %{buildroot}%{_mandir}/man1 +cp -r %{_libdir}/libcbor.so.0* %{buildroot}/%{_libdir}/ +mkdir -p %{buildroot}%{_mandir}/man3 +cp doc/build/man/* %{buildroot}%{_mandir}/man3 %generate_compatibility_deps -%ldconfig_scriptlets - - %files %dir %{abidir} %license LICENSE.md %{_libdir}/libcbor.so.0* %{abidir}/libcbor.dump -%{_mandir}/man1/libcbor.1* %files doc %doc README.md + %files devel %{_includedir}/cbor.h %{_includedir}/cbor/*.h %{_includedir}/cbor/internal/*.h %{_libdir}/libcbor.so %{_libdir}/pkgconfig/libcbor.pc +%{_mandir}/man3/libcbor.3* %changelog +* Thu Feb 16 2023 chen_yu_ao - 0.10.2-1 +- update version to 0.10.2 + * Tue Oct 25 2022 mgb01105731 - 0.7.0-3 - optimise spec file diff --git a/v0.10.2.tar.gz b/v0.10.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..00d3f5f0af46e7664eb9a2e6bac52a14365616a1 Binary files /dev/null and b/v0.10.2.tar.gz differ diff --git a/v0.7.0.tar.gz b/v0.7.0.tar.gz deleted file mode 100644 index 436420d9d7aae675907ade242e74d7de7e166499..0000000000000000000000000000000000000000 Binary files a/v0.7.0.tar.gz and /dev/null differ