]> git.pld-linux.org Git - packages/rpm-pld-macros.git/commitdiff
allow cross compilation in pkg_config crate on x32; rel 2 auto/th/rpm-pld-macros-2.007-2
authorJan Palus <atler@pld-linux.org>
Wed, 30 Jun 2021 14:44:05 +0000 (16:44 +0200)
committerJan Palus <atler@pld-linux.org>
Wed, 30 Jun 2021 14:45:20 +0000 (16:45 +0200)
macros.rust
rpm-pld-macros.spec

index e8992926669874bf164e770ab03767c392e0986c..6ba25a30bcf521cbc7d79c75139825b6dee57ff7 100644 (file)
@@ -5,6 +5,9 @@
 %__cargo       /usr/bin/cargo
 %__cargo_common_opts   -v --offline
 %cargo_build \\\
+%ifarch x32 \
+       PKG_CONFIG_ALLOW_CROSS=1 \\\
+%endif \
        RUSTFLAGS="${RUSTFLAGS:-%rpmrustflags}" \\\
        %{?__jobs:CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-%{__jobs}}"} \\\
        %{__cargo} %{__cargo_common_opts} build %{!?debug:--release} \\\
@@ -14,6 +17,9 @@
 %{nil}
 
 %cargo_install \\\
+%ifarch x32 \
+       PKG_CONFIG_ALLOW_CROSS=1 \\\
+%endif \
        RUSTFLAGS="${RUSTFLAGS:-%rpmrustflags}" \\\
        %{?__jobs:CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-%{__jobs}}"} \\\
        %{__cargo} %{__cargo_common_opts} install \\\
index ac790d77c559a86b407dc38cd82295f60654d3d7..0cc8cc00a24f929209c94c5873d392e93e87d6dc 100644 (file)
@@ -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
This page took 0.444047 seconds and 4 git commands to generate.