Blame SPECS/lmdb.spec

547c0b
Name:           lmdb
547c0b
Version:        0.9.29
547c0b
Release:        3%{?dist}
547c0b
Summary:        Memory-mapped key-value database
547c0b
License:        OpenLDAP
547c0b
URL:            http://symas.com/mdb
547c0b
547c0b
# Main source is retrieved from OpenLDAP GitLab
547c0b
%global forgeurl    https://git.openldap.org/openldap/openldap
547c0b
%global tag         LMDB_%{version}
547c0b
# Tag checkout includes commit in archive name
547c0b
%global commit      8ad7be2510414b9506ec9f9e24f24d04d9b04a1a
547c0b
# The files themselves are in several subdirectories and need to be prefixed wit this.
547c0b
%global archive_path libraries/lib%{name}
547c0b
547c0b
Source0:        %{forgeurl}/-/archive/%{tag}.tar.gz
547c0b
Source1:        lmdb.pc.in
547c0b
# Patch description in the corresponding file
547c0b
Patch0:         lmdb-make.patch
547c0b
Patch1:         lmdb-s390-check.patch
547c0b
547c0b
BuildRequires:  make
547c0b
BuildRequires:  gcc
547c0b
BuildRequires:  doxygen
547c0b
547c0b
%description
547c0b
LMDB is an ultra-fast, ultra-compact key-value embedded data
547c0b
store developed by Symas for the OpenLDAP Project. By using memory-mapped files,
547c0b
it provides the read performance of a pure in-memory database while still
547c0b
offering the persistence of standard disk-based databases, and is only limited
547c0b
to the size of the virtual address space.
547c0b
547c0b
%package        libs
547c0b
Summary:        Shared libraries for %{name}
547c0b
547c0b
%description    libs
547c0b
The %{name}-libs package contains shared libraries necessary for running
547c0b
applications that use %{name}.
547c0b
547c0b
%package        devel
547c0b
Summary:        Development files for %{name}
547c0b
Requires:       %{name}%{?_isa} = %{version}-%{release}
547c0b
547c0b
%description    devel
547c0b
The %{name}-devel package contains libraries and header files for
547c0b
developing applications that use %{name}.
547c0b
547c0b
%package        doc
547c0b
Summary:        Documentation files for %{name}
547c0b
BuildArch:      noarch
547c0b
547c0b
%description    doc
547c0b
The %{name}-doc package contains automatically generated documentation for %{name}.
547c0b
547c0b
547c0b
%prep
547c0b
%autosetup -p1 -n openldap-%{tag}-%{commit}
547c0b
547c0b
547c0b
%build
547c0b
pushd %{archive_path}
547c0b
%set_build_flags
547c0b
%make_build XCFLAGS="%{build_cflags}"
547c0b
# Build doxygen documentation
547c0b
doxygen
547c0b
# remove unpackaged files
547c0b
rm -f Doxyfile
547c0b
rm -rf man # Doxygen generated manpages
547c0b
popd
547c0b
547c0b
%install
547c0b
pushd %{archive_path}
547c0b
# make install expects existing directory tree
547c0b
mkdir -m 0755 -p %{buildroot}{%{_bindir},%{_includedir}}
547c0b
mkdir -m 0755 -p %{buildroot}{%{_libdir}/pkgconfig,%{_mandir}/man1}
547c0b
%make_install prefix=%{_prefix} libdir=%{_libdir} mandir=%{_mandir}
547c0b
popd
547c0b
547c0b
# Install pkgconfig file
547c0b
sed -e 's:@PREFIX@:%{_prefix}:g' \
547c0b
    -e 's:@EXEC_PREFIX@:%{_exec_prefix}:g' \
547c0b
    -e 's:@LIBDIR@:%{_libdir}:g' \
547c0b
    -e 's:@INCLUDEDIR@:%{_includedir}:g' \
547c0b
    -e 's:@PACKAGE_VERSION@:%{version}:g' \
547c0b
    %{SOURCE1} >lmdb.pc
547c0b
install -Dpm 0644 -t %{buildroot}%{_libdir}/pkgconfig lmdb.pc
547c0b
547c0b
%check
547c0b
%if 0%{?rhel} == 6 && "%{_arch}" == "ppc64"
547c0b
  # rhel6 ppc64: skip unit tests
547c0b
  exit 0
547c0b
%endif
547c0b
547c0b
pushd %{archive_path}
547c0b
rm -rf testdb
547c0b
LD_LIBRARY_PATH=$PWD make test
547c0b
popd
547c0b
547c0b
%ldconfig_scriptlets libs
547c0b
547c0b
547c0b
%files
547c0b
%{_bindir}/*
547c0b
%{_mandir}/man1/*
547c0b
547c0b
%files libs
547c0b
%doc %{archive_path}/COPYRIGHT
547c0b
%doc %{archive_path}/CHANGES
547c0b
%license %{archive_path}/LICENSE
547c0b
%{_libdir}/*.so.*
547c0b
547c0b
%files devel
547c0b
%{_includedir}/*
547c0b
%{_libdir}/*.so
547c0b
%{_libdir}/pkgconfig/*.pc
547c0b
547c0b
%files doc
547c0b
%doc %{archive_path}/html
547c0b
%doc %{archive_path}/COPYRIGHT
547c0b
%doc %{archive_path}/CHANGES
547c0b
%license %{archive_path}/LICENSE
547c0b
547c0b
547c0b
%changelog
547c0b
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.9.29-3
547c0b
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
547c0b
  Related: rhbz#1991688
547c0b
547c0b
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.9.29-2
547c0b
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
547c0b
547c0b
* Wed Mar 17 2021 Jan Staněk <jstanek@redhat.com> - 0.9.29-1
547c0b
- Upgrade to version 0.9.29
547c0b
547c0b
* Mon Feb 08 2021 Jan Staněk <jstanek@redhat.com> - 0.9.28-1
547c0b
- Upgrade to version 0.9.28
547c0b
- Specfile refactoring
547c0b
547c0b
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.27-2
547c0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
547c0b
547c0b
* Tue Oct 27 2020 Jan Staněk <jstanek@redhat.com> - 0.9.27-1
547c0b
- Upgrade to version 0.9.27
547c0b
547c0b
* Wed Aug 12 2020 Jan Staněk <jstanek@redhat.com> - 0.9.26-1
547c0b
- Upgrade to version 0.9.26
547c0b
547c0b
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.25-3
547c0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
547c0b
547c0b
* Mon Jul 13 2020 Tom Stellard <tstellar@redhat.com> - 0.9.25-2
547c0b
- Use make macros
547c0b
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
547c0b
547c0b
* Tue Jul 07 2020 Jan Staněk <jstanek@redhat.com> - 0.9.25-1
547c0b
- Upgrade to version 0.9.25
547c0b
- Use OpenLDAP git directly in place of GitHub mirror
547c0b
547c0b
* Mon Jun 15 2020 Jan Staněk <jstanek@redhat.com> - 0.9.24-3
547c0b
- Properly %%set_build_flags
547c0b
547c0b
* Thu Apr 02 2020 Björn Esser <besser82@fedoraproject.org> - 0.9.24-2
547c0b
- Fix string quoting for rpm >= 4.16
547c0b
547c0b
* Tue Mar 24 2020 Jan Staněk <jstanek@redhat.com> - 0.9.24-1
547c0b
- Upgrade to version 0.9.24
547c0b
547c0b
* Thu Jan 30 2020 Tom Stellard <tstellar@redhat.com> - 0.9.23-5
547c0b
- Use make_build macro
547c0b
547c0b
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.23-4
547c0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
547c0b
547c0b
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.23-3
547c0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
547c0b
547c0b
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.23-2
547c0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
547c0b
547c0b
* Wed Jan 09 2019 Tomas Krizek <tomas.krizek@nic.cz> - 0.9.23-1
547c0b
- Updated to 0.9.23
547c0b
547c0b
* Mon Nov 05 2018 Jan Staněk <jstanek@redhat.com> - 0.9.22-4
547c0b
- Import upstream fix for rhbz#1645114
547c0b
547c0b
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.22-3
547c0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
547c0b
547c0b
* Mon Apr 23 2018 Florin Asavoaie <florin.asavoaie@gmail.com> - 0.9.22-2
547c0b
- Fixed Build Dependencies
547c0b
- Made build work on CentOS 7 for EPEL
547c0b
547c0b
* Tue Apr 10 2018 Jan Staněk <jstanek@redhat.com> - 0.9.22-1
547c0b
- Updated to 0.9.22
547c0b
547c0b
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.21-4
547c0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
547c0b
547c0b
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.21-3
547c0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
547c0b
547c0b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.21-2
547c0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
547c0b
547c0b
* Fri Jun 02 2017 Jan Stanek <jstanek@redhat.com> - 0.9.21-1
547c0b
- Update to 0.9.21
547c0b
547c0b
* Mon Mar 20 2017 Jan Stanek <jstanek@redhat.com> - 0.9.20-3
547c0b
- Add pkgconfig file to devel subpackage
547c0b
547c0b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.20-2
547c0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
547c0b
547c0b
* Thu Jan 12 2017 Jan Stanek <jstanek@redhat.com> - 0.9.20-1
547c0b
- Update to 0.9.20
547c0b
547c0b
* Wed Jan 04 2017 Jan Stanek <jstanek@redhat.com> - 0.9.19-1
547c0b
- Update to 0.9.19
547c0b
547c0b
* Wed Feb 10 2016 Jan Stanek <jstanek@redhat.com> - 0.9.18-1
547c0b
- Update to 0.9.18
547c0b
547c0b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.17-3
547c0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
547c0b
547c0b
* Mon Dec 28 2015 Jan Vcelak <jvcelak@fedoraproject.org> 0.9.17-2
547c0b
- Make liblmdb.so a symbolic link to (not a copy of) the versioned DSO
547c0b
547c0b
* Thu Dec 03 2015 Jan Staněk <jstanek@redhat.com> - 0.9.17-1
547c0b
- Update to 0.9.17
547c0b
547c0b
* Wed Nov 25 2015 Jan Staněk <jstanek@redhat.com> - 0.9.16-2
547c0b
- Return the name 'Symas' into description
547c0b
547c0b
* Fri Aug 14 2015 Jan Staněk <jstanek@redhat.com> - 0.9.16-1
547c0b
- Updated to 0.9.16
547c0b
547c0b
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.14-2
547c0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
547c0b
547c0b
* Thu Dec 11 2014 Jan Staněk <jstanek@redhat.com> - 0.9.14-1
547c0b
- Updated to 0.9.14
547c0b
547c0b
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.13-2
547c0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
547c0b
547c0b
* Fri Jul 18 2014 Jan Stanek <jstanek@redhat.com> - 0.9.13-1
547c0b
- Updated to 0.9.13
547c0b
547c0b
* Mon Jul 14 2014 Jan Stanek <jstanek@redhat.com> - 0.9.11-4
547c0b
- Changed install instruction to be compatible with older coreutils (#1119084)
547c0b
547c0b
* Thu Jun 26 2014 Jan Stanek <jstanek@redhat.com> - 0.9.11-3
547c0b
- Added delay in testing which was needed on s390* arches (#1104232)
547c0b
547c0b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.11-2
547c0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
547c0b
547c0b
* Tue May 27 2014 Jan Stanek <jstanek@redhat.com> - 0.9.11-1
547c0b
- Initial Package