2015-08-14 09:55:38 +00:00
|
|
|
# The files themselves are in several subdirectories and need to be prefixed wit this.
|
|
|
|
%global archive_path libraries/lib%{name}
|
|
|
|
|
2014-05-27 13:40:26 +00:00
|
|
|
Name: lmdb
|
2015-12-03 08:32:22 +00:00
|
|
|
Version: 0.9.17
|
|
|
|
Release: 1%{?dist}
|
2014-05-27 13:40:26 +00:00
|
|
|
Summary: Memory-mapped key-value database
|
|
|
|
|
|
|
|
License: OpenLDAP
|
|
|
|
URL: http://symas.com/mdb/
|
2015-08-14 09:55:38 +00:00
|
|
|
Source: https://github.com/LMDB/lmdb/archive/LMDB_%{version}.tar.gz
|
2014-05-27 13:40:26 +00:00
|
|
|
# Patch description in the corresponding file
|
|
|
|
Patch0: lmdb-make.patch
|
2014-06-26 08:36:50 +00:00
|
|
|
Patch1: lmdb-s390-check.patch
|
2014-05-27 13:40:26 +00:00
|
|
|
|
|
|
|
BuildRequires: doxygen
|
|
|
|
|
|
|
|
%description
|
|
|
|
LMDB is an ultra-fast, ultra-compact key-value embedded data
|
2015-11-25 10:24:38 +00:00
|
|
|
store developed by Symas for the OpenLDAP Project. By using memory-mapped files,
|
2014-05-27 13:40:26 +00:00
|
|
|
it provides the read performance of a pure in-memory database while still
|
|
|
|
offering the persistence of standard disk-based databases, and is only limited
|
|
|
|
to the size of the virtual address space.
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
Summary: Shared libraries for %{name}
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
The %{name}-libs package contains shared libraries necessary for running
|
|
|
|
applications that use %{name}.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation files for %{name}
|
|
|
|
BuildArch: noarch
|
|
|
|
Group: Documentation
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
The %{name}-doc package contains automatically generated documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2015-08-14 09:55:38 +00:00
|
|
|
%setup -q -n %{name}-LMDB_%{version}
|
2014-05-27 13:40:26 +00:00
|
|
|
%patch0 -p1 -b .make
|
2014-06-26 08:36:50 +00:00
|
|
|
%patch1 -p1 -b .s390-check
|
2014-05-27 13:40:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2015-08-14 09:55:38 +00:00
|
|
|
pushd %{archive_path}
|
2014-05-27 13:40:26 +00:00
|
|
|
make XCFLAGS="%{optflags}" %{?_smp_mflags}
|
|
|
|
# Build doxygen documentation
|
|
|
|
doxygen
|
|
|
|
# remove unpackaged files
|
|
|
|
rm -f Doxyfile
|
|
|
|
rm -rf man # Doxygen generated manpages
|
2015-08-14 09:55:38 +00:00
|
|
|
popd
|
2014-05-27 13:40:26 +00:00
|
|
|
|
|
|
|
%install
|
2015-08-14 09:55:38 +00:00
|
|
|
pushd %{archive_path}
|
2014-05-27 13:40:26 +00:00
|
|
|
# make install expects existing directory tree
|
2014-07-14 07:43:44 +00:00
|
|
|
mkdir -m 0755 -p %{buildroot}%{_prefix}{/bin,/include}
|
|
|
|
mkdir -m 0755 -p %{buildroot}{%{_libdir},%{_mandir}/man1}
|
2014-05-27 13:40:26 +00:00
|
|
|
make DESTDIR=%{buildroot} prefix=%{_prefix} libprefix=%{_libdir} manprefix=%{_mandir} install
|
2015-08-14 09:55:38 +00:00
|
|
|
popd
|
2014-05-27 13:40:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
%check
|
2015-08-14 09:55:38 +00:00
|
|
|
pushd %{archive_path}
|
2014-05-27 13:40:26 +00:00
|
|
|
rm -rf testdb
|
|
|
|
LD_LIBRARY_PATH=$PWD make test
|
2015-08-14 09:55:38 +00:00
|
|
|
popd
|
2014-05-27 13:40:26 +00:00
|
|
|
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
|
|
%files libs
|
2015-08-14 09:55:38 +00:00
|
|
|
%doc %{archive_path}/COPYRIGHT
|
|
|
|
%doc %{archive_path}/CHANGES
|
|
|
|
%license %{archive_path}/LICENSE
|
2014-05-27 13:40:26 +00:00
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
|
|
|
%files doc
|
2015-08-14 09:55:38 +00:00
|
|
|
%doc %{archive_path}/html
|
|
|
|
%doc %{archive_path}/COPYRIGHT
|
|
|
|
%doc %{archive_path}/CHANGES
|
|
|
|
%license %{archive_path}/LICENSE
|
2014-05-27 13:40:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2015-12-03 08:32:22 +00:00
|
|
|
* Thu Dec 03 2015 Jan Staněk <jstanek@redhat.com> - 0.9.17-1
|
|
|
|
- Update to 0.9.17
|
|
|
|
|
2015-11-25 10:24:38 +00:00
|
|
|
* Wed Nov 25 2015 Jan Staněk <jstanek@redhat.com> - 0.9.16-2
|
|
|
|
- Return the name 'Symas' into description
|
|
|
|
|
2015-08-14 09:55:38 +00:00
|
|
|
* Fri Aug 14 2015 Jan Staněk <jstanek@redhat.com> - 0.9.16-1
|
|
|
|
- Updated to 0.9.16
|
|
|
|
|
2015-06-17 18:24:29 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.14-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-12-11 09:16:53 +00:00
|
|
|
* Thu Dec 11 2014 Jan Staněk <jstanek@redhat.com> - 0.9.14-1
|
|
|
|
- Updated to 0.9.14
|
|
|
|
|
2014-08-17 07:29:01 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.13-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-07-18 08:43:05 +00:00
|
|
|
* Fri Jul 18 2014 Jan Stanek <jstanek@redhat.com> - 0.9.13-1
|
|
|
|
- Updated to 0.9.13
|
|
|
|
|
2014-07-14 07:43:44 +00:00
|
|
|
* Mon Jul 14 2014 Jan Stanek <jstanek@redhat.com> - 0.9.11-4
|
|
|
|
- Changed install instruction to be compatible with older coreutils (#1119084)
|
|
|
|
|
2014-06-26 08:36:50 +00:00
|
|
|
* Thu Jun 26 2014 Jan Stanek <jstanek@redhat.com> - 0.9.11-3
|
|
|
|
- Added delay in testing which was needed on s390* arches (#1104232)
|
|
|
|
|
2014-06-07 06:38:25 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.11-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-27 13:40:26 +00:00
|
|
|
* Tue May 27 2014 Jan Stanek <jstanek@redhat.com> - 0.9.11-1
|
|
|
|
- Initial Package
|