From 7e9fe0e2ca4fbd2c0bbba96de630ccaf228c94c2 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Wed, 15 Jan 2025 05:53:47 -0800 Subject: [PATCH] add: libde265 (#2981) (#2988) * Add: libde265 * Update libde265.spec Signed-off-by: Gil * Update libde265.spec Signed-off-by: Gil --------- Signed-off-by: Gil (cherry picked from commit 71a985c67589a0cd155557d9c8a868289fe5bd9a) Co-authored-by: Gil --- anda/lib/libde265/anda.hcl | 7 +++ anda/lib/libde265/libde265.spec | 83 +++++++++++++++++++++++++++++++++ anda/lib/libde265/update.rhai | 1 + 3 files changed, 91 insertions(+) create mode 100644 anda/lib/libde265/anda.hcl create mode 100644 anda/lib/libde265/libde265.spec create mode 100644 anda/lib/libde265/update.rhai diff --git a/anda/lib/libde265/anda.hcl b/anda/lib/libde265/anda.hcl new file mode 100644 index 0000000000..38f8c72d07 --- /dev/null +++ b/anda/lib/libde265/anda.hcl @@ -0,0 +1,7 @@ +project pkg { + arches = ["x86_64", "aarch64", "i386"] + rpm { + spec = "libde265.spec" + mock = 1 + } +} diff --git a/anda/lib/libde265/libde265.spec b/anda/lib/libde265/libde265.spec new file mode 100644 index 0000000000..97d35a8b8b --- /dev/null +++ b/anda/lib/libde265/libde265.spec @@ -0,0 +1,83 @@ +Name: libde265 +Summary: Open H.265 video codec implementation +Version: 1.0.15 +Release: 1%{?dist} +License: LGPLv3+ +URL: https://www.libde265.org/ +Source0: https://github.com/strukturag/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gcc +BuildRequires: libtool +BuildRequires: pkgconfig(libswscale) +BuildRequires: pkgconfig(Qt5Core) +BuildRequires: pkgconfig(Qt5Gui) +BuildRequires: pkgconfig(sdl) + +%description +%{name} is an open source implementation of the H.265 video codec. + +%package devel +Summary: Open H.265 video codec implementation - development files +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +%{name} is an open source implementation of the H.265 video codec. + +The development headers for compiling programs that use %{name} are provided +by this package. + +%package tools +License: GPLv3+ +Summary: Open H.265 video codec implementation - examples +Obsoletes: %{name}-samples < %{version}-%{release} +Provides: %{name}-samples%{?_isa} = %{version}-%{release} + +%description tools +%{name} is an open source implementation of the H.265 video codec. + +Various sample and test applications using %{name} are provided by this package. + +%prep +%autosetup + +%build +autoreconf -vif +%configure --disable-silent-rules --disable-static --enable-encoder +%make_build + +%install +%make_install +find %{buildroot} -name '*.la' -delete + +%{?ldconfig_scriptlets} + +%files +%license COPYING +%doc AUTHORS +%{_libdir}/%{name}.so.0 +%{_libdir}/%{name}.so.0.1.8 + +%files devel +%doc README.md +%{_includedir}/%{name}/ +%{_libdir}/%{name}.so +%{_libdir}/pkgconfig/%{name}.pc + +%files tools +%doc README.md +%{_bindir}/acceleration_speed +%{_bindir}/bjoentegaard +%{_bindir}/block-rate-estim +%{_bindir}/dec265 +%{_bindir}/enc265 +%{_bindir}/gen-enc-table +%{_bindir}/rd-curves +%ifnarch i686 +%{_bindir}/sherlock265 +%endif +%{_bindir}/tests +%{_bindir}/yuv-distortion + +%changelog +%autochangelog diff --git a/anda/lib/libde265/update.rhai b/anda/lib/libde265/update.rhai new file mode 100644 index 0000000000..30ad8dcc4f --- /dev/null +++ b/anda/lib/libde265/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("strukturag/libde265"));