From 09ea2bac7b6255fda1819bdadee5d879b92a3376 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Tue, 31 Oct 2023 12:34:56 +0100 Subject: [PATCH] Initial Fedora packaging (rhbz#2247274) --- .gitignore | 1 + noopenh264.spec | 70 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 72 insertions(+) create mode 100644 .gitignore create mode 100644 noopenh264.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d86df4d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/noopenh264-6be12bafe243b6b848f5f32103a3cdcfd20ceb34.tar.bz2 diff --git a/noopenh264.spec b/noopenh264.spec new file mode 100644 index 0000000..2d0479f --- /dev/null +++ b/noopenh264.spec @@ -0,0 +1,70 @@ +%global forgeurl https://gitlab.com/freedesktop-sdk/noopenh264 +%global commit 6be12bafe243b6b848f5f32103a3cdcfd20ceb34 +%forgemeta + +%global openh264_version 2.3.1 +%global openh264_soversion 7 + +Name: noopenh264 +Version: 0.1 +Release: %autorelease +Summary: Fake implementation of the OpenH264 library + +License: BSD-2-Clause and LGPL-2.1-or-later +URL: %{forgeurl} +Source: %{forgesource} + +BuildRequires: gcc-c++ +BuildRequires: meson + +# Explicitly conflict with openh264 that ships the actual +# non-dummy version of the library. +Conflicts: openh264 + +%description +Fake implementation of the OpenH264 library we can link from +regardless of the actual library being available. + + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +# Explicitly conflict with openh264-devel that ships the actual +# non-dummy version of the library. +Conflicts: openh264-devel + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%forgeautosetup + + +%build +%meson +%meson_build + + +%install +%meson_install + +# Remove static library +rm $RPM_BUILD_ROOT%{_libdir}/*.a + + +%files +%license COPYING* +%doc README +%{_libdir}/libopenh264.so.%{openh264_soversion} +%{_libdir}/libopenh264.so.%{openh264_version} +%{_libdir}/pkgconfig/openh264.pc + +%files devel +%{_includedir}/wels/ +%{_libdir}/libopenh264.so + + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..a8684d0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (noopenh264-6be12bafe243b6b848f5f32103a3cdcfd20ceb34.tar.bz2) = 66f57f137c2d4e81818549c454c0d5c6e4e67a0520214125b219111fc5164e5b6e0e6553320ac302e8ddac30ba9328b5f900007b440b4aaba8b20767a1525d61