public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/lmdbxx] rawhide: switch to meson build system
@ 2026-11-03 10:33 Dominik 'Rathann' Mierzejewski
0 siblings, 0 replies; only message in thread
From: Dominik 'Rathann' Mierzejewski @ 2026-11-03 10:33 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/lmdbxx
Branch : rawhide
Commit : 4ce627b8af47d77d56bbad9738cf4300cdae1e99
Author : Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
Date : 2026-11-03T10:55:01+01:00
Stats : +26/-7 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/lmdbxx/c/4ce627b8af47d77d56bbad9738cf4300cdae1e99?branch=rawhide
Log:
switch to meson build system
- ship the generated pkgconfig file
---
diff --git a/lmdbxx-meson.patch b/lmdbxx-meson.patch
new file mode 100644
index 0000000..cf12eea
--- /dev/null
+++ b/lmdbxx-meson.patch
@@ -0,0 +1,16 @@
+diff -up lmdbxx-1.0.3/meson.build.orig lmdbxx-1.0.3/meson.build
+--- lmdbxx-1.0.3/meson.build.orig 2026-10-02 14:42:57.000000000 +0200
++++ lmdbxx-1.0.3/meson.build 2026-11-03 10:53:09.407875132 +0100
+@@ -11,10 +11,10 @@ lmdb_dep = dependency('lmdb')
+ lmdbxx_dep = declare_dependency(include_directories : 'include/', dependencies: lmdb_dep)
+ meson.override_dependency('lmdb++', lmdbxx_dep)
+
+-install_headers('lmdb++.h')
++install_headers('lmdb++.h', follow_symlinks: true)
+
+ pkg = import('pkgconfig')
+-pkg.generate(libraries: lmdbxx_dep, name: 'lmdb++', description: 'C++17 wrapper for the LMDB embedded B+ tree database library')
++pkg.generate(libraries: lmdbxx_dep, name: 'lmdb++', description: 'C++17 wrapper for the LMDB embedded B+ tree database library', install_dir: get_option('datadir') / 'pkgconfig' )
+
+ if get_option('examples')
+ check = executable(
diff --git a/lmdbxx.spec b/lmdbxx.spec
index 2a5cba0..c088c5e 100644
--- a/lmdbxx.spec
+++ b/lmdbxx.spec
@@ -6,11 +6,14 @@ License: LicenseRef-Fedora-Public-Domain
Summary: C++ wrapper for the LMDB embedded B+ tree database library
URL: https://github.com/hoytech/%{name}
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
+# make pkgconfig install path noarch and fix meson warning
+Patch0: %{name}-meson.patch
BuildArch: noarch
BuildRequires: gcc-c++
-BuildRequires: make
-BuildRequires: lmdb-devel
+BuildRequires: meson
+BuildRequires: ninja-build
+BuildRequires: pkgconfig(lmdb)
%description
Header-only %{summary}.
@@ -25,22 +28,22 @@ Provides: %{name}-static = %{?epoch:%{epoch}:}%{version}-%{release}
%prep
%autosetup
+%meson -Dtests=true
%build
-%set_build_flags
-%make_build
+%meson_build
%install
-%make_install PREFIX=%{_prefix}
+%meson_install
%check
-%set_build_flags
-%make_build CXXFLAGS="$CXXFLAGS" LDFLAGS="%{build_ldflags}" check
+%meson_test
%files devel
%doc README.md FUNCTIONS.rst AUTHORS CREDITS VERSION
%license UNLICENSE
%{_includedir}/lmdb++.h
+%{_datadir}/pkgconfig/lmdb++.pc
%changelog
%autochangelog
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-03 10:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-03 10:33 [rpms/lmdbxx] rawhide: switch to meson build system Dominik 'Rathann' Mierzejewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox