[packages/rpm-pld-macros] include rust flags py*_build*/py*_install* macros; rel 2
atler
atler at pld-linux.org
Sun Jun 22 19:51:40 CEST 2025
commit 259bd91a962abb8c344edba676f2c6aaf196e507
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Jun 22 19:50:53 2025 +0200
include rust flags py*_build*/py*_install* macros; rel 2
macros.python | 24 ++++++++++++++++++++++++
rpm-pld-macros.spec | 2 +-
2 files changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/rpm-pld-macros.spec b/rpm-pld-macros.spec
index 801c5c3..804c5db 100644
--- a/rpm-pld-macros.spec
+++ b/rpm-pld-macros.spec
@@ -6,7 +6,7 @@ Summary: PLD Linux RPM macros
Summary(pl.UTF-8): Makra RPM dla Linuksa PLD
Name: rpm-pld-macros
Version: %{rpm_macros_rev}
-Release: 1
+Release: 2
License: GPL v2+
Group: Development/Building
Source0: macros.pld
diff --git a/macros.python b/macros.python
index 367dcf1..8537d5f 100644
--- a/macros.python
+++ b/macros.python
@@ -46,6 +46,10 @@
CXXFLAGS="${CXXFLAGS:-%rpmcppflags %rpmcxxflags}"; export CXXFLAGS; \
%{?__cc:CC="%{__cc}"; export CC;} \
%{?__cxx:CXX="%{__cxx}"; export CXX;} \
+ PKG_CONFIG_ALLOW_CROSS=1; export PKG_CONFIG_ALLOW_CROSS; \
+ RUSTC="${RUSTC:-%__rustc}"; export RUSTC; \
+ %{?rustc_wrapper:RUSTC_WRAPPER="${RUSTC_WRAPPER:-%rustc_wrapper}"; export RUSTC_WRAPPER;} \
+ RUSTFLAGS="${RUSTFLAGS:-%rpmrustflags}"; export RUSTFLAGS; \
%{__python} setup.py \
build --build-base=build-2 \
}
@@ -65,6 +69,10 @@
CXXFLAGS="${CXXFLAGS:-%rpmcppflags %rpmcxxflags}"; export CXXFLAGS; \
%{?__cc:CC="%{__cc}"; export CC;} \
%{?__cxx:CXX="%{__cxx}"; export CXX;} \
+ PKG_CONFIG_ALLOW_CROSS=1; export PKG_CONFIG_ALLOW_CROSS; \
+ RUSTC="${RUSTC:-%__rustc}"; export RUSTC; \
+ %{?rustc_wrapper:RUSTC_WRAPPER="${RUSTC_WRAPPER:-%rustc_wrapper}"; export RUSTC_WRAPPER;} \
+ RUSTFLAGS="${RUSTFLAGS:-%rpmrustflags}"; export RUSTFLAGS; \
%{__python} setup.py \
build --build-base=build-2 \
install --skip-build \
@@ -78,6 +86,10 @@
CXXFLAGS="${CXXFLAGS:-%rpmcppflags %rpmcxxflags}"; export CXXFLAGS; \
%{?__cc:CC="%{__cc}"; export CC;} \
%{?__cxx:CXX="%{__cxx}"; export CXX;} \
+ PKG_CONFIG_ALLOW_CROSS=1; export PKG_CONFIG_ALLOW_CROSS; \
+ RUSTC="${RUSTC:-%__rustc}"; export RUSTC; \
+ %{?rustc_wrapper:RUSTC_WRAPPER="${RUSTC_WRAPPER:-%rustc_wrapper}"; export RUSTC_WRAPPER;} \
+ RUSTFLAGS="${RUSTFLAGS:-%rpmrustflags}"; export RUSTFLAGS; \
%{__python3} setup.py build --build-base=build-3 \
}
@@ -96,6 +108,10 @@
CXXFLAGS="${CXXFLAGS:-%rpmcppflags %rpmcxxflags}"; export CXXFLAGS; \
%{?__cc:CC="%{__cc}"; export CC;} \
%{?__cxx:CXX="%{__cxx}"; export CXX;} \
+ PKG_CONFIG_ALLOW_CROSS=1; export PKG_CONFIG_ALLOW_CROSS; \
+ RUSTC="${RUSTC:-%__rustc}"; export RUSTC; \
+ %{?rustc_wrapper:RUSTC_WRAPPER="${RUSTC_WRAPPER:-%rustc_wrapper}"; export RUSTC_WRAPPER;} \
+ RUSTFLAGS="${RUSTFLAGS:-%rpmrustflags}"; export RUSTFLAGS; \
%{__python3} setup.py \
build --build-base=build-3 \
install --skip-build \
@@ -110,6 +126,10 @@
CXXFLAGS="${CXXFLAGS:-%rpmcppflags %rpmcxxflags}"; export CXXFLAGS; \
%{?__cc:CC="%{__cc}"; export CC;} \
%{?__cxx:CXX="%{__cxx}"; export CXX;} \
+ PKG_CONFIG_ALLOW_CROSS=1; export PKG_CONFIG_ALLOW_CROSS; \
+ RUSTC="${RUSTC:-%__rustc}"; export RUSTC; \
+ %{?rustc_wrapper:RUSTC_WRAPPER="${RUSTC_WRAPPER:-%rustc_wrapper}"; export RUSTC_WRAPPER;} \
+ RUSTFLAGS="${RUSTFLAGS:-%rpmrustflags}"; export RUSTFLAGS; \
%{__python3} \
-m build \
--wheel \
@@ -130,6 +150,10 @@
CXXFLAGS="${CXXFLAGS:-%rpmcppflags %rpmcxxflags}"; export CXXFLAGS; \
%{?__cc:CC="%{__cc}"; export CC;} \
%{?__cxx:CXX="%{__cxx}"; export CXX;} \
+ PKG_CONFIG_ALLOW_CROSS=1; export PKG_CONFIG_ALLOW_CROSS; \
+ RUSTC="${RUSTC:-%__rustc}"; export RUSTC; \
+ %{?rustc_wrapper:RUSTC_WRAPPER="${RUSTC_WRAPPER:-%rustc_wrapper}"; export RUSTC_WRAPPER;} \
+ RUSTFLAGS="${RUSTFLAGS:-%rpmrustflags}"; export RUSTFLAGS; \
%{__python3} \
-m installer \
--destdir=$RPM_BUILD_ROOT \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-pld-macros.git/commitdiff/259bd91a962abb8c344edba676f2c6aaf196e507
More information about the pld-cvs-commit
mailing list