# Globals description: # Target SO Version (target_sover): Indicates the current library version. # Target Version (target_sover): Indicates the current shared-object ABI version, should correspond to major version of the library. # Target Minor Version (target_minor_ver): Indicates a minor fix or patch to the library. %{!?target_ver: %global target_ver 0.11.8} %{!?target_sover: %global target_sover 0} %{!?target_minor_ver: %global target_minor_ver 0} %{!?suppl_ver: %global suppl_ver 0.1.2} Name: libmdbx Version: %{target_ver}.%{target_minor_ver} Release: 1%{?dist} Summary: One of the fastest embeddable key-value ACID database without WAL License: OpenLDAP URL: https://gitflic.ru/project/erthink/libmdbx Source0: https://raw.githubusercontent.com/vorot93/%{name}-copr/main/amalgamated-sources/%{name}-v%{target_ver}.tar.gz Patch0: https://raw.githubusercontent.com/vorot93/%{name}-copr/v%{suppl_ver}/CMakeLists.txt.patch BuildRequires: cmake, gcc, gcc-c++, binutils %description MDBX is an extremely fast, compact, powerful, embedded, transactional key-value store database, with permissive license. MDBX has a specific set of properties and capabilities, focused on creating unique lightweight solutions with extraordinary performance. %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 utils Summary: Utilities for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description utils The %{name}-utils package contains utilities for maintaining %{name} data files. %prep %autosetup -c %build %cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DMDBX_BUILD_TIMESTAMP:STRING=unknown %cmake_build --config Release %install %cmake_install --config Release %__mkdir -p %{buildroot}%{_datadir}/licenses/%{name}/ %{buildroot}%{_datadir}/doc/%{name}/ %__cp LICENSE %{buildroot}%{_datadir}/licenses/%{name}/ %__cp README.md %{buildroot}%{_datadir}/doc/%{name}/ %__cp ChangeLog.md %{buildroot}%{_datadir}/doc/%{name}/ %__gzip %{buildroot}%{_mandir}/man1/mdbx_* %{?ldconfig_scriptlets} %files %license LICENSE %doc README.md ChangeLog.md %{_libdir}/%{name}.so.%{target_sover} %{_libdir}/%{name}.so.%{target_ver} %files devel %license LICENSE %doc README.md ChangeLog.md %{_includedir}/* %{_libdir}/%{name}.so %files utils %license LICENSE %doc README.md ChangeLog.md %{_bindir}/* %{_mandir}/man1/* %changelog * Sat Jun 13 2022 Artem Vorotnikov - 0.11.8.0-0%{?dist} - New upstream release * Wed Apr 20 2022 Kai Wetlesen - 0.11.6.0.1%{?dist} - Built new release based off GitFlic after Github's callous blanket shutdown of Russian developer accounts * Thu Mar 24 2022 Kai Wetlesen - 0.11.6.0-0%{?dist} - Bumped libmdbx version to latest - Version bump addresses Linux kernel bug with kernel <= 4.19 * Thu Feb 24 2022 Kai Wetlesen - 0.11.5.0-0%{?dist} - Bumped libmdbx version to latest * Thu Feb 24 2022 Kai Wetlesen - 0.11.4.0-3%{?dist} - Implemented library versioning * Thu Feb 24 2022 Kai Wetlesen - 0.11.4.0-2%{?dist} - Resolved rpmlint issues, improved building * Wed Feb 16 2022 Kai Wetlesen - 0.11.4.0-1%{?dist} - Revised spec to utilise cmake macros * Tue Feb 08 2022 Kai Wetlesen - 0.11.4.0-0%{?dist} - Initial specification file