Compare commits
10 Commits
0cdd489190
...
abe68ef044
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
abe68ef044 | ||
|
|
ab5403e1ab | ||
|
|
947104957d | ||
|
|
024c664e50 | ||
|
|
40d91eadcb | ||
|
|
d658d5460e | ||
|
|
2a147edf68 | ||
|
|
85822217b0 | ||
|
|
71766aeff6 | ||
|
|
ca7a5c21ae |
49
libcbor.spec
Normal file
49
libcbor.spec
Normal file
@ -0,0 +1,49 @@
|
||||
Name: libcbor
|
||||
Version: 0.10.2
|
||||
Release: 1
|
||||
Summary: A CBOR parsing library
|
||||
License: MIT
|
||||
URL: http://libcbor.org
|
||||
Source0: https://github.com/PJK/%{name}/archive/v%{version}.tar.gz
|
||||
|
||||
BuildRequires: cmake gcc-c++ make libcmocka-devel
|
||||
|
||||
%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}
|
||||
sed -i 's|${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/pkgconfig|${CMAKE_INSTALL_LIBDIR}/pkgconfig|' src/CMakeLists.txt
|
||||
|
||||
%build
|
||||
%cmake . -DCMAKE_BUILD_TYPE=Release -DWITH_TESTS=ON
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%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
|
||||
|
||||
%changelog
|
||||
* 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
|
||||
11
libcbor.yaml
Normal file
11
libcbor.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
version_control: github
|
||||
src_repo: PJK/libcbor
|
||||
tag_prefix: "^"
|
||||
separator: "."
|
||||
git_url: https://github.com/PJK/libcbor.git
|
||||
name: libcbor
|
||||
source_dir: factory
|
||||
destination_dir: master
|
||||
obs_from:openEuler: Factory
|
||||
obs_to:openEuler: Mainline
|
||||
data: "2022.12.16"
|
||||
BIN
v0.10.2.tar.gz
Normal file
BIN
v0.10.2.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user