initial commit of CRoaring

Signed-off-by: Christian Goll <cgoll@suse.com>
This commit is contained in:
Christian Goll 2025-02-12 11:05:08 +01:00
commit 7664470dc0
No known key found for this signature in database
GPG Key ID: 1C8A3C66D870B18B
2 changed files with 118 additions and 0 deletions

19
CRoaring.changes Normal file
View File

@ -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 <cgoll@suse.com>
- initial commit of roaring version 4.1.2

99
CRoaring.spec Normal file
View File

@ -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