[packages/rpm-pld-macros] - 2.038 - add vpath macros for cmake/meson

baggins baggins at pld-linux.org
Mon Feb 3 11:20:52 CET 2025


commit 278f6f17d501af3b28bf5df91c0780198700adfc
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Feb 3 11:14:32 2025 +0100

    - 2.038
    - add vpath macros for cmake/meson

 macros.vpath        | 7 +++++++
 rpm-pld-macros.spec | 6 ++++--
 2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/rpm-pld-macros.spec b/rpm-pld-macros.spec
index 78384bd..d1c07f7 100644
--- a/rpm-pld-macros.spec
+++ b/rpm-pld-macros.spec
@@ -1,4 +1,4 @@
-%define		rpm_macros_rev	2.037
+%define		rpm_macros_rev	2.038
 %define		find_lang_rev	1.42
 # split into individual X_prov_ver if there is a reason to desync
 %define		prov_ver	4.15
@@ -56,9 +56,9 @@ Source58:	macros.qt
 Source59:	macros.erlang
 Source60:	macros.gstreamer
 Source61:	attr.gstreamer
-
 Source62:	kmod-deps.sh
 Source63:	attr.mono
+Source64:	macros.vpath
 BuildRequires:	rpm >= 4.4.9-56
 BuildRequires:	sed >= 4.0
 Obsoletes:	rpm-macros < 1.254
@@ -250,6 +250,7 @@ cp -p %{SOURCE59} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.erlang
 cp -p %{SOURCE60} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.gstreamer
 cp -p %{SOURCE61} $RPM_BUILD_ROOT%{_usrlibrpm}/fileattrs/gstreamer.attr
 cp -p %{SOURCE63} $RPM_BUILD_ROOT%{_usrlibrpm}/fileattrs/mono.attr
+cp -p %{SOURCE64} $RPM_BUILD_ROOT%{_usrlibrpm}/macros.d/macros.vpath
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -289,6 +290,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_usrlibrpm}/macros.d/macros.selinux
 %{_usrlibrpm}/macros.d/macros.tcl
 %{_usrlibrpm}/macros.d/macros.upstart
+%{_usrlibrpm}/macros.d/macros.vpath
 %{_usrlibrpm}/macros.d/macros.webapp
 %{_usrlibrpm}/macros.d/macros.xmms
 %{_usrlibrpm}/macros.d/macros.xorg
diff --git a/macros.vpath b/macros.vpath
new file mode 100644
index 0000000..6155103
--- /dev/null
+++ b/macros.vpath
@@ -0,0 +1,7 @@
+# ---- VPATH default settings
+
+# directory where CMakeLists.txt/meson.build/etc. are placed
+%_vpath_srcdir .
+
+# directory (doesn't need to exist) where all generated build files will be placed
+%_vpath_builddir build
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-pld-macros.git/commitdiff/278f6f17d501af3b28bf5df91c0780198700adfc



More information about the pld-cvs-commit mailing list