Blame SPECS/lmdb.spec

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