Blame SPECS/leveldb.spec

2d5d9c
%undefine __cmake_in_source_build
2d5d9c
Name:           leveldb
2d5d9c
Version:        1.23
5a100f
Release:        4%{?dist}
2d5d9c
Summary:        A fast and lightweight key/value database library by Google
2d5d9c
License:        BSD
2d5d9c
URL:            https://github.com/google/leveldb
2d5d9c
Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
2d5d9c
2d5d9c
# available in https://github.com/fusesource/leveldbjni/blob/leveldb.patch
2d5d9c
Patch0001:      0001-Allow-leveldbjni-build.patch
2d5d9c
# https://github.com/fusesource/leveldbjni/issues/34
2d5d9c
# https://code.google.com/p/leveldb/issues/detail?id=184
2d5d9c
# Add DB::SuspendCompactions() and DB:: ResumeCompactions() methods
2d5d9c
Patch0002:      0002-Added-a-DB-SuspendCompations-and-DB-ResumeCompaction.patch
2d5d9c
# Cherry-picked from Basho's fork
2d5d9c
Patch0003:      0003-allow-Get-calls-to-avoid-copies-into-std-string.patch
2d5d9c
# https://groups.google.com/d/topic/leveldb/SbVPvl4j4vU/discussion
2d5d9c
Patch0004:      0004-bloom_test-failure-on-big-endian-archs.patch
2d5d9c
# -fno-rtti breaks ABI compatibility
2d5d9c
Patch0006:      0006-revert-no-rtti.patch
2d5d9c
2d5d9c
BuildRequires:  cmake
2d5d9c
BuildRequires:  gcc
2d5d9c
BuildRequires:  gcc-c++
2d5d9c
BuildRequires:  make
2d5d9c
BuildRequires:  snappy-devel
2d5d9c
BuildRequires:  sqlite-devel
2d5d9c
2d5d9c
%description
2d5d9c
LevelDB is a fast key-value storage library written at Google that provides an
2d5d9c
ordered mapping from string keys to string values.
2d5d9c
2d5d9c
%package devel
2d5d9c
Summary:        Development files for %{name}
2d5d9c
Requires:       cmake-filesystem
2d5d9c
Requires:       %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
2d5d9c
2d5d9c
%description devel
2d5d9c
%{summary}.
2d5d9c
2d5d9c
%prep
2d5d9c
%autosetup -p1
2d5d9c
2d5d9c
cat > %{name}.pc << EOF
2d5d9c
prefix=%{_prefix}
2d5d9c
exec_prefix=${prefix}
2d5d9c
libdir=%{_libdir}
2d5d9c
includedir=%{_includedir}
2d5d9c
2d5d9c
Name: %{name}
2d5d9c
Description: %{summary}
2d5d9c
Version: %{version}
2d5d9c
Libs: -l%{name}
2d5d9c
EOF
2d5d9c
2d5d9c
2d5d9c
%build
2d5d9c
%cmake -DLEVELDB_BUILD_TESTS:BOOL=OFF \
2d5d9c
       -DLEVELDB_BUILD_BENCHMARKS:BOOL=OFF
2d5d9c
%cmake_build
2d5d9c
2d5d9c
2d5d9c
%install
2d5d9c
%cmake_install
2d5d9c
2d5d9c
mkdir -p %{buildroot}%{_libdir}/pkgconfig
2d5d9c
cp -a %{name}.pc %{buildroot}%{_libdir}/pkgconfig/
2d5d9c
2d5d9c
2d5d9c
%check
2d5d9c
%ctest
2d5d9c
2d5d9c
2d5d9c
%ldconfig_scriptlets
2d5d9c
2d5d9c
2d5d9c
%files
2d5d9c
%license LICENSE
2d5d9c
%doc AUTHORS README.md NEWS
2d5d9c
%{_libdir}/lib%{name}.so.*
2d5d9c
2d5d9c
2d5d9c
%files devel
2d5d9c
%doc doc/ CONTRIBUTING.md TODO
2d5d9c
%{_includedir}/%{name}/
2d5d9c
%{_libdir}/lib%{name}.so
2d5d9c
%{_libdir}/pkgconfig/%{name}.pc
2d5d9c
%{_libdir}/cmake/%{name}/
2d5d9c
2d5d9c
2d5d9c
%changelog
5a100f
* Wed Sep 15 2021 Kaleb S. KEITHLEY <kkeithle@redhat.com> - 1.23-4
5a100f
- rebuild from git+lookaside
5a100f
2d5d9c
* Thu Aug 05 2021 Björn Esser <besser82@fedoraproject.org> - 1.23-3
2d5d9c
- Apply patch droppping -fno-rtti properly
2d5d9c
2d5d9c
* Thu Aug 5 2021 Kefu Chai <tchaikov@gmail.com> - 1.23-2
2d5d9c
- drop -fno-rtti in CMAKE_CXX_FLAGS
2d5d9c
2d5d9c
* Fri Jul 30 2021 Kefu Chai <tchaikov@gmail.com> - 1.23-1
2d5d9c
- Update to 1.23
2d5d9c
2d5d9c
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.22-4
2d5d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2d5d9c
2d5d9c
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.22-3
2d5d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2d5d9c
2d5d9c
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.22-2
2d5d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2d5d9c
2d5d9c
* Sun Mar 29 2020 Kefu Chai <tchaikov@gmail.com> - 1.22-1
2d5d9c
- Update to 1.22
2d5d9c
2d5d9c
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.21-3
2d5d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2d5d9c
2d5d9c
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.21-2
2d5d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2d5d9c
2d5d9c
* Tue Apr 09 2019 Peter Lemenkov <lemenkov@gmail.com> - 1.21-1
2d5d9c
- Update to 1.21
2d5d9c
2d5d9c
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.20-4
2d5d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2d5d9c
2d5d9c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.20-3
2d5d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2d5d9c
2d5d9c
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.20-2
2d5d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2d5d9c
2d5d9c
* Mon Oct 23 2017 Stephen Gallagher <sgallagh@redhat.com> - 1.20-1
2d5d9c
- Update to 1.20
2d5d9c
- Disable parallel make invocation to prevent build failures
2d5d9c
2d5d9c
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.18-5
2d5d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
2d5d9c
2d5d9c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.18-4
2d5d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2d5d9c
2d5d9c
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.18-3
2d5d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
2d5d9c
2d5d9c
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.18-2
2d5d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2d5d9c
2d5d9c
* Sun Aug 07 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.18-1
2d5d9c
- Update to 1.18 (RHBZ #1306611)
2d5d9c
- Cleanups and fixes in spec
2d5d9c
2d5d9c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-11
2d5d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2d5d9c
2d5d9c
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.0-10
2d5d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2d5d9c
2d5d9c
* Thu May 14 2015 Tomas Hozza <thozza@redhat.com> - 1.12.0-9
2d5d9c
- rebuild with newer gcc to resolve linking issues with Ceph
2d5d9c
2d5d9c
* Sun Mar  1 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.12.0-8
2d5d9c
- F-23: rebuild for gcc5 ABI change
2d5d9c
2d5d9c
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.0-7
2d5d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2d5d9c
2d5d9c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.0-6
2d5d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2d5d9c
2d5d9c
* Sun Aug 25 2013 Peter Lemenkov <lemenkov@gmail.com> - 1.12.0-5
2d5d9c
- Don't build with assertions
2d5d9c
2d5d9c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.0-4
2d5d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2d5d9c
2d5d9c
* Wed Jul 10 2013 Peter Lemenkov <lemenkov@gmail.com> - 1.12.0-3
2d5d9c
- Backported Basho's patch (see rhbz#982980)
2d5d9c
2d5d9c
* Mon Jul 01 2013 gil cattaneo <puntogil@libero.it> 1.12.0-2
2d5d9c
- add SuspendCompactions and ResumeCompactions methods for allow leveldbjni build
2d5d9c
2d5d9c
* Sat Jun 29 2013 gil cattaneo <puntogil@libero.it> - 1.12.0-1
2d5d9c
- update to 1.12.0
2d5d9c
2d5d9c
* Wed Feb 27 2013 gil cattaneo <puntogil@libero.it> - 1.9.0-1
2d5d9c
- update to 1.9.0
2d5d9c
2d5d9c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-6
2d5d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2d5d9c
2d5d9c
* Thu Feb 07 2013 Karsten Hopp <karsten@redhat.com> 1.7.0-5
2d5d9c
- temporarily ignore result of self checks on PPC* (rhbz #908800)
2d5d9c
2d5d9c
* Thu Nov 29 2012 gil cattaneo <puntogil@libero.it> - 1.7.0-4
2d5d9c
- Applied patch for allow leveldbjni build
2d5d9c
2d5d9c
* Sat Oct 27 2012 Peter Lemenkov <lemenkov@gmail.com> - 1.7.0-3
2d5d9c
- Dirty workarounds for failed tests on ARM
2d5d9c
2d5d9c
* Sat Oct 27 2012 Peter Lemenkov <lemenkov@gmail.com> - 1.7.0-2
2d5d9c
- Restored patch no.2
2d5d9c
2d5d9c
* Sat Oct 27 2012 Peter Lemenkov <lemenkov@gmail.com> - 1.7.0-1
2d5d9c
- Ver. 1.7.0 (API/ABI compatible bugfix release)
2d5d9c
2d5d9c
* Tue Aug 21 2012 Dan Horák <dan[at]danny.cz> - 1.5.0-4
2d5d9c
- add workaround for big endians eg. s390(x)
2d5d9c
2d5d9c
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-3
2d5d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2d5d9c
2d5d9c
* Wed Jul 11 2012 Peter Lemenkov <lemenkov@gmail.com> - 1.5.0-2
2d5d9c
- Cleaned up spec by removing EL5-related stuff
2d5d9c
- Added notes about the patches
2d5d9c
2d5d9c
* Fri Jun 15 2012 Peter Lemenkov <lemenkov@gmail.com> - 1.5.0-1
2d5d9c
- Ver. 1.5.0
2d5d9c
2d5d9c
* Thu May 17 2012 Peter Lemenkov <lemenkov@gmail.com> - 1.4.0-1
2d5d9c
- Initial package