public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
To: git-commits@fedoraproject.org
Subject: [rpms/lmdbxx] rawhide: switch to meson build system
Date: Tue, 03 Nov 2026 10:33:02 GMT	[thread overview]
Message-ID: <179370198244.1.14591311142417262800.rpms-lmdbxx-4ce627b8af47@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-11-03 10:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179370198244.1.14591311142417262800.rpms-lmdbxx-4ce627b8af47@fedoraproject.org \
    --to=dominik@greysector.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox