81e56e4
%global forgeurl https://github.com/facebook/rocksdb
85f049a
81e56e4
Name:    rocksdb
5be070a
Version: 6.26.1
b495d87
Release: 3%{?dist}
81e56e4
Summary: A Persistent Key-Value Store for Flash and RAM Storage
85f049a
81e56e4
License: GPLv2 or ASL 2.0 and BSD
81e56e4
URL:     %{forgeurl}
85f049a
b7d33aa
a7793d2
# Fails to build on x86:
b7d33aa
# https://bugzilla.redhat.com/show_bug.cgi?id=1875284
a7793d2
#
a7793d2
# Fails to build on armv7hl:
a7793d2
# https://bugzilla.redhat.com/show_bug.cgi?id=1997416
e56f668
ExcludeArch: %{ix86} armv7hl
b7d33aa
81e56e4
BuildRequires: gcc-c++
81e56e4
BuildRequires: gflags-devel
81e56e4
BuildRequires: make
81e56e4
a111d01
#Optional compression
a111d01
BuildRequires: bzip2-devel
a111d01
BuildRequires: lz4-devel
a111d01
BuildRequires: snappy-devel
a111d01
BuildRequires: zlib-devel
a111d01
BuildRequires: libzstd-devel
a111d01
7c793bc
BuildRequires: /usr/bin/perl
7c793bc
BuildRequires: /usr/bin/python3
7c793bc
81e56e4
%forgemeta
81e56e4
Source: %{forgesource}
81e56e4
810ab10
# https://bugzilla.redhat.com/show_bug.cgi?id=1923386
810ab10
# https://github.com/facebook/rocksdb/issues/8021
810ab10
Patch0: gcc-c++-false-positive-warning.patch
810ab10
e56f668
# https://bugzilla.redhat.com/show_bug.cgi?id=1997426
e56f668
# https://github.com/facebook/rocksdb/issues/8698
e56f668
Patch1: toku_time-s390x.patch
e56f668
85f049a
%description
81e56e4
RocksDB is a library that forms the core building block for a fast key value
85f049a
server, especially suited for storing data on flash drives. It has a
85f049a
Log-Structured-Merge-Database (LSM) design with flexible trade offs between
85f049a
Write-Amplification-Factor (WAF), Read-Amplification-Factor (RAF) and
81e56e4
Space-Amplification-Factor (SAF). It has multi-threaded compaction, making it
85f049a
specially suitable for storing multiple terabytes of data in a single database.
85f049a
85f049a
%package devel
85f049a
Summary: Development files for rocksdb
85f049a
Requires: %{name}%{?_isa} = %{version}-%{release}
85f049a
85f049a
%description devel
7c793bc
Development files for rocksdb.
85f049a
85f049a
85f049a
%prep
81e56e4
%forgesetup
85f049a
810ab10
%patch0 -p1
e56f668
%patch1 -p1
810ab10
85f049a
%build
81e56e4
%{set_build_flags}
81e56e4
PORTABLE=1 USE_RTTI=1 %{make_build} shared_lib
85f049a
85f049a
%install
62174d0
make install-shared PREFIX=%{_prefix} LIBDIR=%{_libdir} DESTDIR=%{buildroot}
85f049a
85f049a
%files
81e56e4
%doc README.md
ae1d536
%license COPYING
81e56e4
%license LICENSE.Apache
81e56e4
%license LICENSE.leveldb
81e56e4
%{_libdir}/librocksdb.so.6
e261914
%{_libdir}/librocksdb.so.6.26
e261914
%{_libdir}/librocksdb.so.6.26.1
85f049a
85f049a
85f049a
%files devel
81e56e4
%doc README.md
81e56e4
%license COPYING
81e56e4
%license LICENSE.Apache
81e56e4
%license LICENSE.leveldb
85f049a
%{_libdir}/librocksdb.so
0a958b2
%{_libdir}/pkgconfig/rocksdb.pc
81e56e4
%{_includedir}/rocksdb
85f049a
85f049a
%changelog
b495d87
* Fri May 13 2022 Carl George <carl@george.computer> - 6.26.1-3
b495d87
- Rebuilt to fix the upgrade path from the epel8-next rebuild
b495d87
- Resolves: rhbz#2058448
b495d87
- Related: rhbz#2035143
b495d87
7bc1729
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.26.1-2
7bc1729
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
7bc1729
5be070a
* Thu Dec 02 2021 Jonny Heggheim <hegjon@gmail.com> - 6.26.1-1
a014541
- Updated to version 6.26.1
5be070a
1846e21
* Thu Oct 14 2021 Jonny Heggheim <hegjon@gmail.com> - 6.25.1-1
a014541
- Updated to version 6.25.1
1846e21
- Enabled compression support
1846e21
e56f668
* Wed Aug 25 2021 Yaakov Selkowitz <yselkowi@redhat.com> - 6.22.1-3
e56f668
- Enabled s390x https://bugzilla.redhat.com/show_bug.cgi?id=1997426
e56f668
a7793d2
* Wed Aug 25 2021 Jonny Heggheim <hegjon@gmail.com> - 6.22.1-2
a7793d2
- Disabled armv7hl https://bugzilla.redhat.com/show_bug.cgi?id=1997416
a7793d2
- Disabled s390x https://bugzilla.redhat.com/show_bug.cgi?id=1997426
a7793d2
56f879a
* Mon Aug 02 2021 Jonny Heggheim <hegjon@gmail.com> - 6.22.1-1
56f879a
- Updated to version 6.22.1
56f879a
e3d4c82
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.20.3-2
e3d4c82
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
e3d4c82
7c793bc
* Thu May 06 2021 Jonny Heggheim <hegjon@gmail.com> - 6.20.3-1
7c793bc
- Updated to 6.20.3
7c793bc
cf1d6ea
* Thu Apr 01 2021 Jonathan Wakely <jwakely@redhat.com> - 6.15.5-2
cf1d6ea
- Rebuilt for removed libstdc++ symbols (#1937698)
cf1d6ea
6e64e06
* Wed Mar 03 2021 Jonny Heggheim <hegjon@gmail.com> - 6.15.5-1
6e64e06
- Updated to version 6.15.5
6e64e06
f030611
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.13.3-2
f030611
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f030611
0a958b2
* Sun Oct 25 2020 Jonny Heggheim <hegjon@gmail.com> - 6.13.3-1
0a958b2
- Updated to version 6.13.3
0a958b2
b7d33aa
* Thu Sep 03 2020 Jonny Heggheim <hegjon@gmail.com> - 6.11.4-3
b7d33aa
- Disable building on x86 due to compile errors
b7d33aa
81e56e4
* Sat Jul 25 2020 Jonny Heggheim <hegjon@gmail.com> - 6.11.4-2
81e56e4
- Use RTTI
81e56e4
81e56e4
* Wed Jul 22 2020 Jonny Heggheim <hegjon@gmail.com> - 6.11.4-1
81e56e4
- Updated to 6.11.4
81e56e4
78e1de8
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.7.3-4
78e1de8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
78e1de8
861353b
* Wed Mar 07 2018 Adam Williamson <awilliam@redhat.com> - 5.7.3-3
861353b
- Rebuild to fix GCC 8 mis-compilation
861353b
  See https://da.gd/YJVwk ("GCC 8 ABI change on x86_64")
861353b
e02c1a6
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.7.3-2
e02c1a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e02c1a6
ae1d536
* Tue Sep 26 2017 Matej Mužila <mmuzila@redhat.com> - 5.7.3-1
ae1d536
- Update to version 5.7.3
ae1d536
1db329a
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-3
1db329a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
1db329a
7866517
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-2
7866517
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7866517
85f049a
* Tue Jan 24 2017 Matej Muzila <mmuzila@redhat.com> 5.2.1-1
85f049a
- Packaged rocksdb