[packages/libsmpte2094-50] - vendor crates
qboosh
qboosh at pld-linux.org
Sun Sep 13 10:29:41 CEST 2026
commit 26a288113418af1f7612b716d84299a23e85e5ff
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Sep 13 10:29:48 2026 +0200
- vendor crates
libsmpte2094-50.spec | 21 +++++++++++++++++++--
1 file changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/libsmpte2094-50.spec b/libsmpte2094-50.spec
index 36598f4..e27134c 100644
--- a/libsmpte2094-50.spec
+++ b/libsmpte2094-50.spec
@@ -1,5 +1,4 @@
# TODO:
-# - offline build
# - cmake configs for library
Summary: Utilities to use the SMPTE 2094-50 specification
Summary(pl.UTF-8): Narzędzia pozwalające na używanie specyfikacji SMPTE 2094-50
@@ -11,6 +10,11 @@ Group: Libraries
#Source0Download: https://github.com/webmproject/libsmpte2094-50/tags
Source0: https://github.com/webmproject/libsmpte2094-50/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: c32fd86f94df945c6b5b93e09f222da1
+# cd rust_lib && cargo vendor && cd ..
+# NOTE: `cargo vendor-filterer --platform='*-unknown-linux-*' --tier=2 --features cxxbridge` doesn't package cxxbridge-cmd required by corrosion
+# tar cJf %{name}-%{version}-vendor.tar.xz rust_lib/{vendor,Cargo.lock}
+Source1: %{name}-%{version}-vendor.tar.xz
+# Source1-md5: b666d0bdb50cba78c1896beb1fa8b051
Patch0: %{name}-system-packages.patch
URL: https://github.com/webmproject/libsmpte2094-50/tags
BuildRequires: abseil-cpp-devel >= 20250814
@@ -46,10 +50,23 @@ Header files for SMPTE 2094-50 library.
Pliki nagłówkowe biblioteki SMPTE 2094-50.
%prep
-%setup -q
+%setup -q -a1
%patch -P0 -p1
+# use our offline registry
+export CARGO_HOME="$(pwd)/rust_lib/.cargo"
+
+install -d $CARGO_HOME
+cat >$CARGO_HOME/config.toml <<EOF
+[source.crates-io]
+replace-with = 'vendored-sources'
+
+[source.vendored-sources]
+directory = '$PWD/rust_lib/vendor'
+EOF
+
%build
+export CARGO_HOME="$(pwd)/rust_lib/.cargo"
%cmake -B build
%{__make} -C build
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libsmpte2094-50.git/commitdiff/26a288113418af1f7612b716d84299a23e85e5ff
More information about the pld-cvs-commit
mailing list