ce64fb3
Name:           leveldb
Igor Gnatenko 8404cba
Version:        1.18
0f5f546
Release:        5%{?dist}
ce64fb3
Summary:        A fast and lightweight key/value database library by Google
ce64fb3
License:        BSD
Igor Gnatenko 8404cba
URL:            https://github.com/google/leveldb
Igor Gnatenko 8404cba
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Igor Gnatenko 8404cba
Igor Gnatenko 8404cba
# available in https://github.com/fusesource/leveldbjni/blob/leveldb.patch
Igor Gnatenko 8404cba
Patch0001:      0001-Allow-leveldbjni-build.patch
a04e332
# https://github.com/fusesource/leveldbjni/issues/34
a04e332
# https://code.google.com/p/leveldb/issues/detail?id=184
a04e332
# Add DB::SuspendCompactions() and DB:: ResumeCompactions() methods
Igor Gnatenko 8404cba
Patch0002:      0002-Added-a-DB-SuspendCompations-and-DB-ResumeCompaction.patch
bfc0460
# Cherry-picked from Basho's fork
Igor Gnatenko 8404cba
Patch0003:      0003-allow-Get-calls-to-avoid-copies-into-std-string.patch
Igor Gnatenko 8404cba
# https://groups.google.com/d/topic/leveldb/SbVPvl4j4vU/discussion
Igor Gnatenko 8404cba
Patch0004:      0004-bloom_test-failure-on-big-endian-archs.patch
ce9f2c4
Igor Gnatenko 8404cba
BuildRequires:  make
Igor Gnatenko 8404cba
BuildRequires:  gcc
Igor Gnatenko 8404cba
BuildRequires:  gcc-c++
Igor Gnatenko 8404cba
BuildRequires:  snappy-devel
ce9f2c4
ce9f2c4
%description
ce9f2c4
LevelDB is a fast key-value storage library written at Google that provides an
ce9f2c4
ordered mapping from string keys to string values.
ce9f2c4
ce9f2c4
%package devel
Igor Gnatenko 8404cba
Summary:        Development files for %{name}
Igor Gnatenko 8404cba
Requires:       %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
ce9f2c4
ce9f2c4
%description devel
Igor Gnatenko 8404cba
%{summary}.
ce9f2c4
ce9f2c4
%prep
Igor Gnatenko 8404cba
%autosetup -p1
Igor Gnatenko 8404cba
cat > %{name}.pc << EOF
Igor Gnatenko 8404cba
prefix=%{_prefix}
Igor Gnatenko 8404cba
exec_prefix=${prefix}
Igor Gnatenko 8404cba
libdir=%{_libdir}
Igor Gnatenko 8404cba
includedir=%{_includedir}
Igor Gnatenko 8404cba
Igor Gnatenko 8404cba
Name: %{name}
Igor Gnatenko 8404cba
Description: %{summary}
Igor Gnatenko 8404cba
Version: %{version}
Igor Gnatenko 8404cba
Libs: -l%{name}
Igor Gnatenko 8404cba
EOF
Igor Gnatenko 8404cba
Igor Gnatenko 8404cba
%global configure() {                  \
Igor Gnatenko 8404cba
  export OPT="-DNDEBUG"                \
Igor Gnatenko 8404cba
  export CFLAGS="%{optflags}"          \
Igor Gnatenko 8404cba
  export CXXFLAGS="%{optflags}"        \
Igor Gnatenko 8404cba
  export LDFLAGS="%{__global_ldflags}" \
Igor Gnatenko 8404cba
}
ce9f2c4
ce9f2c4
%build
Igor Gnatenko 8404cba
%configure
Igor Gnatenko 8404cba
%make_build
ce9f2c4
ce9f2c4
%install
Igor Gnatenko 8404cba
mkdir -p %{buildroot}{%{_libdir}/pkgconfig,%{_includedir}}
Igor Gnatenko 8404cba
cp -a lib%{name}.so* %{buildroot}%{_libdir}/
Igor Gnatenko 8404cba
cp -a include/%{name}/ %{buildroot}%{_includedir}/
Igor Gnatenko 8404cba
cp -a %{name}.pc %{buildroot}%{_libdir}/pkgconfig/
ce9f2c4
ce9f2c4
%check
Igor Gnatenko 8404cba
%configure
Igor Gnatenko 8404cba
make %{?_smp_mflags} check
ce9f2c4
ce9f2c4
%post -p /sbin/ldconfig
ce9f2c4
%postun -p /sbin/ldconfig
ce9f2c4
ce9f2c4
%files
Igor Gnatenko 8404cba
%license LICENSE
ce9f2c4
%{_libdir}/lib%{name}.so.*
ce9f2c4
ce9f2c4
%files devel
Igor Gnatenko 8404cba
%doc doc/ README
ce9f2c4
%{_includedir}/%{name}/
ce9f2c4
%{_libdir}/lib%{name}.so
ce9f2c4
%{_libdir}/pkgconfig/%{name}.pc
ce9f2c4
ce9f2c4
%changelog
0f5f546
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.18-5
0f5f546
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
0f5f546
db6f99c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.18-4
db6f99c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
db6f99c
be54592
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.18-3
be54592
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
be54592
b549f6e
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.18-2
b549f6e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b549f6e
Igor Gnatenko 8404cba
* Sun Aug 07 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.18-1
Igor Gnatenko 8404cba
- Update to 1.18 (RHBZ #1306611)
Igor Gnatenko 8404cba
- Cleanups and fixes in spec
Igor Gnatenko 8404cba
e32dfcc
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-11
e32dfcc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e32dfcc
c8cc787
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.0-10
c8cc787
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c8cc787
ccd6396
* Thu May 14 2015 Tomas Hozza <thozza@redhat.com> - 1.12.0-9
ccd6396
- rebuild with newer gcc to resolve linking issues with Ceph
ccd6396
e45adf3
* Sun Mar  1 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.12.0-8
e45adf3
- F-23: rebuild for gcc5 ABI change
e45adf3
9ff2556
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.0-7
9ff2556
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
9ff2556
5259192
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.0-6
5259192
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5259192
62c1718
* Sun Aug 25 2013 Peter Lemenkov <lemenkov@gmail.com> - 1.12.0-5
62c1718
- Don't build with assertions
62c1718
21933ec
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.0-4
21933ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
21933ec
bfc0460
* Wed Jul 10 2013 Peter Lemenkov <lemenkov@gmail.com> - 1.12.0-3
bfc0460
- Backported Basho's patch (see rhbz#982980)
bfc0460
a04e332
* Mon Jul 01 2013 gil cattaneo <puntogil@libero.it> 1.12.0-2
a04e332
- add SuspendCompactions and ResumeCompactions methods for allow leveldbjni build
a04e332
ce64fb3
* Sat Jun 29 2013 gil cattaneo <puntogil@libero.it> - 1.12.0-1
ce64fb3
- update to 1.12.0
ce64fb3
68cc469
* Wed Feb 27 2013 gil cattaneo <puntogil@libero.it> - 1.9.0-1
68cc469
- update to 1.9.0
68cc469
cdab6fc
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-6
cdab6fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
cdab6fc
2dd12f2
* Thu Feb 07 2013 Karsten Hopp <karsten@redhat.com> 1.7.0-5
2dd12f2
- temporarily ignore result of self checks on PPC* (rhbz #908800)
2dd12f2
48f8bb7
* Thu Nov 29 2012 gil cattaneo <puntogil@libero.it> - 1.7.0-4
48f8bb7
- Applied patch for allow leveldbjni build
48f8bb7
19650f9
* Sat Oct 27 2012 Peter Lemenkov <lemenkov@gmail.com> - 1.7.0-3
19650f9
- Dirty workarounds for failed tests on ARM
19650f9
2b4f7b2
* Sat Oct 27 2012 Peter Lemenkov <lemenkov@gmail.com> - 1.7.0-2
2b4f7b2
- Restored patch no.2
2b4f7b2
2b4f7b2
* Sat Oct 27 2012 Peter Lemenkov <lemenkov@gmail.com> - 1.7.0-1
2b4f7b2
- Ver. 1.7.0 (API/ABI compatible bugfix release)
2b4f7b2
92087ef
* Tue Aug 21 2012 Dan HorĂ¡k <dan[at]danny.cz> - 1.5.0-4
92087ef
- add workaround for big endians eg. s390(x)
92087ef
67bf4cc
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-3
67bf4cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
67bf4cc
ce9f2c4
* Wed Jul 11 2012 Peter Lemenkov <lemenkov@gmail.com> - 1.5.0-2
ce9f2c4
- Cleaned up spec by removing EL5-related stuff
ce9f2c4
- Added notes about the patches
ce9f2c4
ce9f2c4
* Fri Jun 15 2012 Peter Lemenkov <lemenkov@gmail.com> - 1.5.0-1
ce9f2c4
- Ver. 1.5.0
ce9f2c4
ce9f2c4
* Thu May 17 2012 Peter Lemenkov <lemenkov@gmail.com> - 1.4.0-1
ce9f2c4
- Initial package