From 7664470dc07e64b1ab4da43a9f81e73fd6ba1d57 Mon Sep 17 00:00:00 2001 From: Christian Goll Date: Wed, 12 Feb 2025 11:05:08 +0100 Subject: [PATCH] initial commit of CRoaring Signed-off-by: Christian Goll --- CRoaring.changes | 19 ++++++++++ CRoaring.spec | 99 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 118 insertions(+) create mode 100644 CRoaring.changes create mode 100644 CRoaring.spec diff --git a/CRoaring.changes b/CRoaring.changes new file mode 100644 index 0000000..cae9505 --- /dev/null +++ b/CRoaring.changes @@ -0,0 +1,19 @@ +------------------------------------------------------------------- +Fri Jan 24 14:27:10 UTC 2025 - cgoll@suse.com + +- Update to version 4.2.1: + * version 4.2.1 + * Update README.md + * separating out the 32-bit and 64-bit fuzzers (#672) + * Bump github/codeql-action from 3.26.6 to 3.26.10 (#671) + * adding roaring64 to fuzzer as a step toward solving issue 662 (#670) + * release candidate 4.2.0 (#668) + * fix issue 666 (#667) + * Improve consistency in the C++ interface (#653) + * version bump + * Deserialization/validation unit tests (#665) + +------------------------------------------------------------------- +Tue Sep 10 14:54:30 UTC 2024 - Christian Goll + +- initial commit of roaring version 4.1.2 diff --git a/CRoaring.spec b/CRoaring.spec new file mode 100644 index 0000000..e158e98 --- /dev/null +++ b/CRoaring.spec @@ -0,0 +1,99 @@ +# +# spec file for package CRoaring +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define sonum 17 + +Name: CRoaring +Version: 4.2.1 +Release: 0 +Summary: Roaring bitmaps in C (and C++) +License: MIT +URL: https://github.com/RoaringBitmap/CRoaring +Source: https://github.com/RoaringBitmap/CRoaring/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: cmake +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: libcmocka-cmake +BuildRequires: libcmocka-devel +BuildRequires: pkgconfig +Requires: libroaring%{sonum} +Provides: roaring + +%description +Portable Roaring bitmaps in C (and C++) with full support for your favorite +compiler (GNU GCC, LLVM's clang, Visual Studio, Apple Xcode, Intel oneAPI). +Included in the Awesome C list of open source C software. + +%package -n libroaring%{sonum} +Summary: Roaring bitmaps in C (and C++) +Requires: CRoaring = %version + +%description -n libroaring%{sonum} +Portable Roaring bitmaps in C (and C++) with full support for your favorite +compiler (GNU GCC, LLVM's clang, Visual Studio, Apple Xcode, Intel oneAPI). +Included in the Awesome C list of open source C software. + +%package -n roaring-devel +Summary: Roaring bitmaps in C (and C++) +Requires: CRoaring = %version + +%description -n roaring-devel +Portable Roaring bitmaps in C (and C++) with full support for your favorite +compiler (GNU GCC, LLVM's clang, Visual Studio, Apple Xcode, Intel oneAPI). +Included in the Awesome C list of open source C software. + +%prep +%autosetup -p1 + +%build +%cmake \ + -DFETCHCONTENT_FULLY_DISCONNECTED=ON \ + -DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS \ + -DROARING_BUILD_LTO=ON \ + -DROARING_USE_CPM=OFF \ + %{nil} + +%cmake_build + +%install +%cmake_install + +# remove unfunctional cmake includes +rm -r %{buildroot}%{_libdir}/cmake/roaring + +%check +%ctest + +%post -n libroaring%{sonum} -p /sbin/ldconfig +%postun -n libroaring%{sonum} -p /sbin/ldconfig + +%files +%license LICENSE +%doc README.md + +%files -n libroaring%{sonum} +%{_libdir}/libroaring.so.%{sonum} +%{_libdir}/libroaring.so.%{version} + +%files -n roaring-devel +%{_includedir}/roaring +%{_libdir}/libroaring.so +#%{_libdir}/cmake/roaring +%{_libdir}/pkgconfig/roaring.pc + +%changelog