[packages/libsmpte2094-50] - new
qboosh
qboosh at pld-linux.org
Sat Sep 12 21:00:07 CEST 2026
commit dce10d080cbdf28f4a89d22282eb25bbde5e9c83
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Sep 12 21:00:10 2026 +0200
- new
libsmpte2094-50-system-packages.patch | 32 ++++++++++++++
libsmpte2094-50.spec | 78 +++++++++++++++++++++++++++++++++++
2 files changed, 110 insertions(+)
---
diff --git a/libsmpte2094-50.spec b/libsmpte2094-50.spec
new file mode 100644
index 0000000..36598f4
--- /dev/null
+++ b/libsmpte2094-50.spec
@@ -0,0 +1,78 @@
+# 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
+Name: libsmpte2094-50
+Version: 0.1.8
+Release: 1
+License: Apache v2.0
+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
+Patch0: %{name}-system-packages.patch
+URL: https://github.com/webmproject/libsmpte2094-50/tags
+BuildRequires: abseil-cpp-devel >= 20250814
+# >= 20260107.1 when available in PLD
+BuildRequires: cargo
+BuildRequires: corrosion >= 0.6.1
+BuildRequires: cmake >= 3.23
+BuildRequires: libstdc++-devel >= 6:7
+BuildRequires: rpmbuild(macros) >= 1.605
+BuildRequires: rust
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This project includes utilities to use the SMPTE 2094-50
+specification.
+
+%description -l pl.UTF-8
+Ten projekt zawiera narzędzia pozwalające na używanie specyfikacji
+SMPTE 2094-50.
+
+%package devel
+Summary: Header files for SMPTE 2094-50 library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SMPTE 2094-50
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: abseil-cpp-devel >= 20250814
+Requires: libstdc++-devel >= 6:7
+
+%description devel
+Header files for SMPTE 2094-50 library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki SMPTE 2094-50.
+
+%prep
+%setup -q
+%patch -P0 -p1
+
+%build
+%cmake -B build
+
+%{__make} -C build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
+
+# install target missing
+install build/libsmpte2094_50_utils.so $RPM_BUILD_ROOT%{_libdir}
+cp -pr include/smpte2094_50 $RPM_BUILD_ROOT%{_includedir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{_libdir}/libsmpte2094_50_utils.so
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/smpte2094_50
diff --git a/libsmpte2094-50-system-packages.patch b/libsmpte2094-50-system-packages.patch
new file mode 100644
index 0000000..5c99c03
--- /dev/null
+++ b/libsmpte2094-50-system-packages.patch
@@ -0,0 +1,32 @@
+--- libsmpte2094-50-0.1.8/CMakeLists.txt.orig 2026-07-01 23:18:16.000000000 +0200
++++ libsmpte2094-50-0.1.8/CMakeLists.txt 2026-09-12 18:52:42.136002826 +0200
+@@ -24,27 +24,13 @@ option(SMPTE2094_ENABLE_WERROR "Enable -
+
+ set(RUST_LIB_DIR "${CMAKE_CURRENT_SOURCE_DIR}/rust_lib")
+
+-include(FetchContent)
+-
+ # Install dependencies.
+ set(SMPTE2094_ABSL_GIT_TAG 20260107.1)
+ set(SMPTE2094_CORROSION_GIT_TAG v0.6.1)
+
+-FetchContent_Declare(
+- abseil-cpp
+- EXCLUDE_FROM_ALL
+- GIT_REPOSITORY https://github.com/abseil/abseil-cpp.git
+- GIT_TAG ${SMPTE2094_ABSL_GIT_TAG}
+- GIT_SHALLOW ON)
+-FetchContent_MakeAvailable(abseil-cpp)
++find_package(absl CONFIG REQUIRED)
+
+-FetchContent_Declare(
+- Corrosion
+- EXCLUDE_FROM_ALL
+- GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git
+- GIT_TAG ${SMPTE2094_CORROSION_GIT_TAG}
+- GIT_SHALLOW ON)
+-FetchContent_MakeAvailable(Corrosion)
++find_package(Corrosion REQUIRED)
+
+ # Compile the Rust Library and CXX bridges.
+ corrosion_import_crate(
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libsmpte2094-50.git/commitdiff/dce10d080cbdf28f4a89d22282eb25bbde5e9c83
More information about the pld-cvs-commit
mailing list