-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
89f926d
commit 3bc24ae
Showing
3 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,5 +102,6 @@ install( | |
) | ||
|
||
if (NOT BUILD_QCBOR_TEST STREQUAL "OFF") | ||
enable_testing() | ||
add_subdirectory(test) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Guidelines from https://docs.fedoraproject.org/en-US/packaging-guidelines/CMake/ | ||
|
||
Name: qcbor | ||
Version: 1.5.0 | ||
Release: 0%{?dist} | ||
Summary: A CBOR encoder/decoder library | ||
URL: https://github.com/laurencelundblade/QCBOR | ||
License: BSD-3-Clause | ||
Source0: %{URL}/archive/refs/tags/v1.5.tar.gz | ||
|
||
BuildRequires: cmake | ||
BuildRequires: gcc | ||
|
||
%description | ||
Comprehensive, powerful, commercial-quality CBOR encoder and decoder | ||
that is still suited for small devices. | ||
|
||
|
||
%package devel | ||
Summary: Development files for the QCBOR library | ||
Requires: %{name}%{?_isa} = %{version} | ||
%description devel | ||
Development files needed to build and link to the QCBOR library. | ||
|
||
|
||
%prep | ||
%setup -q -n QCBOR-1.5 | ||
%cmake -DBUILD_QCBOR_TEST=APP | ||
|
||
|
||
%build | ||
%cmake_build | ||
|
||
%install | ||
%cmake_install | ||
|
||
|
||
%check | ||
# TODO use %ctest when supported by QCBOR config | ||
./%{_vpath_builddir}/test/qcbortest | ||
|
||
|
||
%files | ||
%license LICENSE | ||
%doc README.md | ||
%{_libdir}/*.so.* | ||
|
||
%files devel | ||
%license LICENSE | ||
%doc README.md | ||
%{_includedir}/qcbor | ||
%{_libdir}/*.so | ||
|
||
|
||
%changelog | ||
* Fri Dec 20 2024 Laurence Lundblade <[email protected]> - 1.5.0-0 | ||
- Initial library RPM packaging. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters