diff --git a/anda/lib/davs2/anda.hcl b/anda/lib/davs2/anda.hcl new file mode 100644 index 0000000000..bcf66e55a0 --- /dev/null +++ b/anda/lib/davs2/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "davs2.spec" + } +} diff --git a/anda/lib/davs2/davs2.spec b/anda/lib/davs2/davs2.spec new file mode 100644 index 0000000000..8d91711d40 --- /dev/null +++ b/anda/lib/davs2/davs2.spec @@ -0,0 +1,93 @@ +%global commit0 b41cf117452e2d73d827f02d3e30aa20f1c721ac +%global date 20220903 +%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) + +Name: davs2 +Version: 1.6 +Release: 5%{?shortcommit0:.%{date}git%{shortcommit0}}%{?dist} +Summary: An open-source decoder of AVS2-P2/IEEE1857.4 video coding standard +URL: https://github.com/pkuvcl/%{name} +License: GPLv2 + +%if "%{?shortcommit0}" +Source0: https://github.com/pkuvcl/%{name}/archive/%{commit0}/%{name}-%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz +%else +Source0: https://github.com/pkuvcl/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +%endif + +BuildRequires: gcc-c++ +%ifarch x86_64 +BuildRequires: nasm >= 2.13 +%endif + +%description +davs2 is an open-source decoder of AVS2-P2/IEEE1857.4 video coding standard. + +This package contains the command line decoder. + +%package libs +Summary: AVS2-P2/IEEE1857.4 decoder library + +%description libs +davs2 is an open-source decoder of AVS2-P2/IEEE1857.4 video coding standard. + +This package contains the shared library. + +%package devel +Summary: AVS2-P2/IEEE1857.4 decoder library development files +Requires: %{name}-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} + +%description devel +davs2 is an open-source decoder of AVS2-P2/IEEE1857.4 video coding standard. + +This package contains the shared library development files. + +%prep +# Use flat condition or it fails on EPEL 7 +%if "%{?shortcommit0}" +%autosetup -n %{name}-%{commit0} +%else +%autosetup +%endif + +%build +cd build/linux +%configure \ + --bit-depth='8' \ + --chroma-format='all' \ +%ifarch aarch64 + --disable-asm \ +%endif + --disable-static \ + --enable-pic \ + --enable-shared + +# Remove hardcoded CFLAGS on generated file containing variables +sed -i \ + -e 's|CFLAGS=.*%{optflags}|CFLAGS=%{optflags}|g' \ + config.mak + +%make_build + +%install +cd build/linux +%make_install + +%ldconfig_scriptlets libs + +%files +%{_bindir}/%{name} + +%files libs +%license COPYING +%{_libdir}/lib%{name}.so.16 + +%files devel +%doc README.md +%{_includedir}/%{name}.h +%{_includedir}/%{name}_config.h +%{_libdir}/lib%{name}.so +%{_libdir}/pkgconfig/%{name}.pc + +%changelog +%autochangelog diff --git a/anda/lib/davs2/update.rhai b/anda/lib/davs2/update.rhai new file mode 100644 index 0000000000..65d19575fc --- /dev/null +++ b/anda/lib/davs2/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("pkuvcl/davs2")); diff --git a/anda/lib/nvidia/libnpp/anda.hcl b/anda/lib/nvidia/libnpp/anda.hcl new file mode 100644 index 0000000000..0f6ad8ddf2 --- /dev/null +++ b/anda/lib/nvidia/libnpp/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "libnpp.spec" + } +} diff --git a/anda/lib/nvidia/libnpp/libnpp.spec b/anda/lib/nvidia/libnpp/libnpp.spec new file mode 100644 index 0000000000..f5ba72b44b --- /dev/null +++ b/anda/lib/nvidia/libnpp/libnpp.spec @@ -0,0 +1,152 @@ +%global debug_package %{nil} +%global __strip /bin/true +%global _missing_build_ids_terminate_build 0 +%global _build_id_links none +%global major_package_version 12-6 + +Name: libnpp +Epoch: 1 +Version: 12.3.1.54 +Release: 1%{?dist} +Summary: NVIDIA Performance Primitives libraries +License: CUDA Toolkit +URL: https://developer.nvidia.com/cuda-toolkit +ExclusiveArch: x86_64 aarch64 + +Source0: https://developer.download.nvidia.com/compute/cuda/redist/%{name}/linux-x86_64/%{name}-linux-x86_64-%{version}-archive.tar.xz +Source1: https://developer.download.nvidia.com/compute/cuda/redist/%{name}/linux-sbsa/%{name}-linux-sbsa-%{version}-archive.tar.xz + +Source10: nppc.pc +Source11: nppial.pc +Source12: nppicc.pc +Source13: nppicom.pc +Source14: nppidei.pc +Source15: nppif.pc +Source16: nppig.pc +Source17: nppim.pc +Source18: nppi.pc +Source19: nppist.pc +Source20: nppisu.pc +Source21: nppitc.pc +Source22: npps.pc + +Requires(post): ldconfig +Conflicts: %{name}-%{major_package_version} < %{?epoch:%{epoch}:}%{version}-%{release} + +%description +The NVIDIA Performance Primitives library (NPP) is a collection of +GPU-accelerated image, video, and signal processing functions that deliver 5x +to 10x faster performance than comparable CPU-only implementations. Using NPP, +developers can take advantage of over 1900 image processing and approx 600 +signal processing primitives to achieve significant improvements in application +performance in a matter of hours. + +%package devel +Summary: Development files for NVIDIA Performance Primitives libraries. +Requires: %{name}%{_isa} = %{?epoch:%{epoch}:}%{version}-%{release} +Conflicts: %{name}-devel-%{major_package_version} < %{?epoch:%{epoch}:}%{version} + +%description devel +This package provides development files for the NVIDIA Performance Primitives +libraries. + +%package static +Summary: Static libraries for NVIDIA Performance Primitives +Requires: %{name}-devel%{_isa} = %{?epoch:%{epoch}:}%{version}-%{release} + +%description static +This package contains static libraries for NVIDIA Performance Primitives +libraries. + +%prep +%ifarch x86_64 +%setup -q -n %{name}-linux-x86_64-%{version}-archive +%endif + +%ifarch aarch64 +%setup -q -T -b 1 -n %{name}-linux-sbsa-%{version}-archive +%endif + +%install +mkdir -p %{buildroot}%{_includedir} +mkdir -p %{buildroot}%{_libdir} +mkdir -p %{buildroot}%{_libdir}/pkgconfig/ + +cp -fr include/* %{buildroot}%{_includedir}/ +cp -fr lib/lib* %{buildroot}%{_libdir}/ +cp -fr %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} %{SOURCE15} \ + %{SOURCE16} %{SOURCE17} %{SOURCE18} %{SOURCE19} %{SOURCE20} %{SOURCE21} \ + %{SOURCE22} %{buildroot}/%{_libdir}/pkgconfig/ + +# Set proper variables +sed -i \ + -e 's|CUDA_VERSION|%{version}|g' \ + -e 's|LIBDIR|%{_libdir}|g' \ + -e 's|INCLUDE_DIR|%{_includedir}|g' \ + %{buildroot}/%{_libdir}/pkgconfig/*.pc + +%{?ldconfig_scriptlets} + +%files +%license LICENSE +%{_libdir}/libnppc.so.* +%{_libdir}/libnppial.so.* +%{_libdir}/libnppicc.so.* +%{_libdir}/libnppidei.so.* +%{_libdir}/libnppif.so.* +%{_libdir}/libnppig.so.* +%{_libdir}/libnppim.so.* +%{_libdir}/libnppist.so.* +%{_libdir}/libnppisu.so.* +%{_libdir}/libnppitc.so.* +%{_libdir}/libnpps.so.* + +%files devel +%{_includedir}/nppcore.h +%{_includedir}/nppdefs.h +%{_includedir}/npp.h +%{_includedir}/nppi_arithmetic_and_logical_operations.h +%{_includedir}/nppi_color_conversion.h +%{_includedir}/nppi_data_exchange_and_initialization.h +%{_includedir}/nppi_filtering_functions.h +%{_includedir}/nppi_geometry_transforms.h +%{_includedir}/nppi.h +%{_includedir}/nppi_linear_transforms.h +%{_includedir}/nppi_morphological_operations.h +%{_includedir}/nppi_statistics_functions.h +%{_includedir}/nppi_support_functions.h +%{_includedir}/nppi_threshold_and_compare_operations.h +%{_includedir}/npps_arithmetic_and_logical_operations.h +%{_includedir}/npps_conversion_functions.h +%{_includedir}/npps_filtering_functions.h +%{_includedir}/npps.h +%{_includedir}/npps_initialization.h +%{_includedir}/npps_statistics_functions.h +%{_includedir}/npps_support_functions.h +%{_libdir}/libnppc.so +%{_libdir}/libnppial.so +%{_libdir}/libnppicc.so +%{_libdir}/libnppidei.so +%{_libdir}/libnppif.so +%{_libdir}/libnppig.so +%{_libdir}/libnppim.so +%{_libdir}/libnppist.so +%{_libdir}/libnppisu.so +%{_libdir}/libnppitc.so +%{_libdir}/libnpps.so +%{_libdir}/pkgconfig/npp*.pc + +%files static +%{_libdir}/libnppc_static.a +%{_libdir}/libnppial_static.a +%{_libdir}/libnppicc_static.a +%{_libdir}/libnppidei_static.a +%{_libdir}/libnppif_static.a +%{_libdir}/libnppig_static.a +%{_libdir}/libnppim_static.a +%{_libdir}/libnppist_static.a +%{_libdir}/libnppisu_static.a +%{_libdir}/libnppitc_static.a +%{_libdir}/libnpps_static.a +%changelog +%autochangelog \ No newline at end of file diff --git a/anda/lib/nvidia/libnpp/nppc.pc b/anda/lib/nvidia/libnpp/nppc.pc new file mode 100644 index 0000000000..caae4c8e19 --- /dev/null +++ b/anda/lib/nvidia/libnpp/nppc.pc @@ -0,0 +1,8 @@ +libdir=LIBDIR +includedir=INCLUDE_DIR + +Name: nppc +Description: NVIDIA Performance Primitives - Core +Version: CUDA_VERSION +Libs: -L${libdir} -lnppc +Cflags: -I${includedir} diff --git a/anda/lib/nvidia/libnpp/nppi.pc b/anda/lib/nvidia/libnpp/nppi.pc new file mode 100644 index 0000000000..e5a614d6f6 --- /dev/null +++ b/anda/lib/nvidia/libnpp/nppi.pc @@ -0,0 +1,8 @@ +libdir=LIBDIR +includedir=INCLUDE_DIR + +Name: nppi +Description: NVIDIA Performance Primitives - Image Processing +Version: CUDA_VERSION +Libs: -L${libdir} -lnppi +Cflags: -I${includedir} diff --git a/anda/lib/nvidia/libnpp/nppial.pc b/anda/lib/nvidia/libnpp/nppial.pc new file mode 100644 index 0000000000..ba9a18f623 --- /dev/null +++ b/anda/lib/nvidia/libnpp/nppial.pc @@ -0,0 +1,8 @@ +libdir=LIBDIR +includedir=INCLUDE_DIR + +Name: nppial +Description: NVIDIA Performance Primitives - Image Processing - Arithmetic and Logic +Version: CUDA_VERSION +Libs: -L${libdir} -lnppial +Cflags: -I${includedir} diff --git a/anda/lib/nvidia/libnpp/nppicc.pc b/anda/lib/nvidia/libnpp/nppicc.pc new file mode 100644 index 0000000000..6b5b45938e --- /dev/null +++ b/anda/lib/nvidia/libnpp/nppicc.pc @@ -0,0 +1,8 @@ +libdir=LIBDIR +includedir=INCLUDE_DIR + +Name: nppicc +Description: NVIDIA Performance Primitives - Image Processing - Color Conversion +Version: CUDA_VERSION +Libs: -L${libdir} -lnppicc +Cflags: -I${includedir} diff --git a/anda/lib/nvidia/libnpp/nppicom.pc b/anda/lib/nvidia/libnpp/nppicom.pc new file mode 100644 index 0000000000..edb15735a1 --- /dev/null +++ b/anda/lib/nvidia/libnpp/nppicom.pc @@ -0,0 +1,8 @@ +libdir=LIBDIR +includedir=INCLUDE_DIR + +Name: nppicom +Description: NVIDIA Performance Primitives - Image Processing - Compression +Version: CUDA_VERSION +Libs: -L${libdir} -lnppicom +Cflags: -I${includedir} diff --git a/anda/lib/nvidia/libnpp/nppidei.pc b/anda/lib/nvidia/libnpp/nppidei.pc new file mode 100644 index 0000000000..2e517e0b9a --- /dev/null +++ b/anda/lib/nvidia/libnpp/nppidei.pc @@ -0,0 +1,8 @@ +libdir=LIBDIR +includedir=INCLUDE_DIR + +Name: nppidei +Description: NVIDIA Performance Primitives - Image Processing - DEI +Version: CUDA_VERSION +Libs: -L${libdir} -lnppidei +Cflags: -I${includedir} diff --git a/anda/lib/nvidia/libnpp/nppif.pc b/anda/lib/nvidia/libnpp/nppif.pc new file mode 100644 index 0000000000..f135e981b7 --- /dev/null +++ b/anda/lib/nvidia/libnpp/nppif.pc @@ -0,0 +1,8 @@ +libdir=LIBDIR +includedir=INCLUDE_DIR + +Name: nppif +Description: NVIDIA Performance Primitives - Image Processing - Filters +Version: CUDA_VERSION +Libs: -L${libdir} -lnppif +Cflags: -I${includedir} diff --git a/anda/lib/nvidia/libnpp/nppig.pc b/anda/lib/nvidia/libnpp/nppig.pc new file mode 100644 index 0000000000..270c844af3 --- /dev/null +++ b/anda/lib/nvidia/libnpp/nppig.pc @@ -0,0 +1,8 @@ +libdir=LIBDIR +includedir=INCLUDE_DIR + +Name: nppig +Description: NVIDIA Performance Primitives - Image Processing - Geometry +Version: CUDA_VERSION +Libs: -L${libdir} -lnppig +Cflags: -I${includedir} diff --git a/anda/lib/nvidia/libnpp/nppim.pc b/anda/lib/nvidia/libnpp/nppim.pc new file mode 100644 index 0000000000..21cd9e582a --- /dev/null +++ b/anda/lib/nvidia/libnpp/nppim.pc @@ -0,0 +1,8 @@ +libdir=LIBDIR +includedir=INCLUDE_DIR + +Name: nppim +Description: NVIDIA Performance Primitives - Image Processing - Morphological +Version: CUDA_VERSION +Libs: -L${libdir} -lnppim +Cflags: -I${includedir} diff --git a/anda/lib/nvidia/libnpp/nppist.pc b/anda/lib/nvidia/libnpp/nppist.pc new file mode 100644 index 0000000000..924b112055 --- /dev/null +++ b/anda/lib/nvidia/libnpp/nppist.pc @@ -0,0 +1,8 @@ +libdir=LIBDIR +includedir=INCLUDE_DIR + +Name: nppist +Description: NVIDIA Performance Primitives - Image Processing - Statistic and Linear +Version: CUDA_VERSION +Libs: -L${libdir} -lnppist +Cflags: -I${includedir} diff --git a/anda/lib/nvidia/libnpp/nppisu.pc b/anda/lib/nvidia/libnpp/nppisu.pc new file mode 100644 index 0000000000..ea4072e751 --- /dev/null +++ b/anda/lib/nvidia/libnpp/nppisu.pc @@ -0,0 +1,8 @@ +libdir=LIBDIR +includedir=INCLUDE_DIR + +Name: nppisu +Description: NVIDIA Performance Primitives - Image Processing - Support and Data Exchange +Version: CUDA_VERSION +Libs: -L${libdir} -lnppisu +Cflags: -I${includedir} diff --git a/anda/lib/nvidia/libnpp/nppitc.pc b/anda/lib/nvidia/libnpp/nppitc.pc new file mode 100644 index 0000000000..d60b4a64ba --- /dev/null +++ b/anda/lib/nvidia/libnpp/nppitc.pc @@ -0,0 +1,8 @@ +libdir=LIBDIR +includedir=INCLUDE_DIR + +Name: nppitc +Description: NVIDIA Performance Primitives - Image Processing - Threshold and Compare +Version: CUDA_VERSION +Libs: -L${libdir} -lnppitc +Cflags: -I${includedir} diff --git a/anda/lib/nvidia/libnpp/npps.pc b/anda/lib/nvidia/libnpp/npps.pc new file mode 100644 index 0000000000..0ce2a9f5ea --- /dev/null +++ b/anda/lib/nvidia/libnpp/npps.pc @@ -0,0 +1,8 @@ +libdir=LIBDIR +includedir=INCLUDE_DIR + +Name: npps +Description: NVIDIA Performance Primitives - Signal Processing +Version: CUDA_VERSION +Libs: -L${libdir} -lnpps +Cflags: -I${includedir} diff --git a/anda/lib/nvidia/libnpp/update.rhai b/anda/lib/nvidia/libnpp/update.rhai new file mode 100644 index 0000000000..88a2866e64 --- /dev/null +++ b/anda/lib/nvidia/libnpp/update.rhai @@ -0,0 +1,3 @@ +import "andax/nvidia.rhai" as nvidia; + +rpm.version(nvidia::nvidia_component_version("libnpp")); diff --git a/anda/lib/xavs/anda.hcl b/anda/lib/xavs/anda.hcl new file mode 100644 index 0000000000..b360cf80c0 --- /dev/null +++ b/anda/lib/xavs/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "xavs.spec" + } +} diff --git a/anda/lib/xavs/xavs-cflags.patch b/anda/lib/xavs/xavs-cflags.patch new file mode 100644 index 0000000000..717231b681 --- /dev/null +++ b/anda/lib/xavs/xavs-cflags.patch @@ -0,0 +1,51 @@ +diff -Naur xavs-code-r55-trunk.old/configure xavs-code-r55-trunk/configure +--- xavs-code-r55-trunk.old/configure 2024-08-13 14:58:40.981179321 +0200 ++++ xavs-code-r55-trunk/configure 2024-08-13 15:08:52.935514480 +0200 +@@ -404,14 +404,13 @@ + fi + + if [ "$debug" != "yes" -a "$gprof" != "yes" ]; then +- CFLAGS="$CFLAGS -s -fomit-frame-pointer" +- LDFLAGS="$LDFLAGS -s" ++ CFLAGS="$CFLAGS -fomit-frame-pointer" + fi + + if [ "$debug" = "yes" ]; then +- CFLAGS="-O1 -g $CFLAGS" ++ CFLAGS="-g $CFLAGS" + else +- CFLAGS="-O4 -ffast-math $CFLAGS" ++ CFLAGS="-ffast-math $CFLAGS" + fi + + if cc_check "stdio.h" "" "fseeko(stdin,0,0);" ; then +diff -Naur xavs-code-r55-trunk.old/Makefile xavs-code-r55-trunk/Makefile +--- xavs-code-r55-trunk.old/Makefile 2024-08-13 14:58:40.981179321 +0200 ++++ xavs-code-r55-trunk/Makefile 2024-08-13 15:23:58.864416440 +0200 +@@ -67,10 +67,12 @@ + $(RANLIB) libxavs.a + + $(SONAME): .depend $(OBJS) $(OBJASM) +- $(CC) -shared -o $@ $(OBJS) $(OBJASM) -Wl,-soname,$(SOFLAGS) $(LDFLAGS) ++ $(CC) -shared -o $@.0.0 $(OBJS) $(OBJASM) -Wl,-soname,$(SOFLAGS) $(LDFLAGS) ++ ln -s $@.0.0 $@ ++ ln -s $@ libxavs.so + +-xavs$(EXE): $(OBJCLI) libxavs.a +- $(CC) -o $@ $+ $(LDFLAGS) ++xavs$(EXE): $(OBJCLI) libxavs.a $(SONAME) ++ $(CC) -o $@ $(OBJCLI) $(LDFLAGS) -L. -lxavs + + xavsvfw.dll: libxavs.a $(wildcard vfw/*.c vfw/*.h) + make -C vfw/build/cygwin +@@ -145,8 +147,9 @@ + ifeq ($(SYS),MINGW) + $(if $(SONAME), install -m 755 $(SONAME) $(DESTDIR)$(bindir)) + else ++ $(if $(SONAME), install -m 755 $(SONAME).0.0 $(DESTDIR)$(libdir)) ++ $(if $(SONAME), ln -sf $(SONAME).0.0 $(DESTDIR)$(libdir)/$(SONAME)) + $(if $(SONAME), ln -sf $(SONAME) $(DESTDIR)$(libdir)/libxavs.$(SOSUFFIX)) +- $(if $(SONAME), install -m 755 $(SONAME) $(DESTDIR)$(libdir)) + endif + $(if $(IMPLIBNAME), install -m 644 $(IMPLIBNAME) $(DESTDIR)$(libdir)) + diff --git a/anda/lib/xavs/xavs.spec b/anda/lib/xavs/xavs.spec new file mode 100644 index 0000000000..74d860bafd --- /dev/null +++ b/anda/lib/xavs/xavs.spec @@ -0,0 +1,66 @@ +Name: xavs +Version: 0.1.55 +Release: 1%{?dist} +Summary: AVS1 (First-generation AVS Standards) library +License: GPLv2 +URL: http://xavs.sourceforge.net/ + +Source0: https://sourceforge.net/code-snapshots/svn/x/xa/xavs/code/xavs-code-r55-trunk.zip +Patch0: %{name}-cflags.patch + +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gcc +BuildRequires: libtool +#BuildRequires: yasm + +%description +AVS is a complete standard system including system, video, audio, and digital +rights management, providing a more comprehensive solution for the digital audio +and video industry. + +%package -n lib%{name} +Summary: AVS1 (First-generation AVS Standards) library + +%description -n lib%{name} +AVS is a complete standard system including system, video, audio, and digital +rights management, providing a more comprehensive solution for the digital audio +and video industry. + +%package -n lib%{name}-devel +Summary: Development files for %{name} +Requires: lib%{name}%{?_isa} = %{version}-%{release} +Requires: pkg-config + +%description -n lib%{name}-devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%prep +%autosetup -p1 -n xavs-code-r55-trunk + +%build +%configure \ + --disable-asm \ + --enable-pic \ + --enable-shared \ + --extra-cflags="-Wno-int-conversion -Wno-declaration-missing-parameter-type" +%make_build + +%install +%make_install +rm -f %{buildroot}%{_libdir}/*.a + +%files +%{_bindir}/%{name} + +%files -n lib%{name} +%{_libdir}/*.so.* + +%files -n lib%{name}-devel +%{_includedir}/* +%{_libdir}/*.so +%{_libdir}/pkgconfig/%{name}.pc + +%changelog +%autochangelog diff --git a/anda/multimedia/kvazaar/anda.hcl b/anda/multimedia/kvazaar/anda.hcl new file mode 100644 index 0000000000..a7bf5ac872 --- /dev/null +++ b/anda/multimedia/kvazaar/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "kvazaar.spec" + } +} diff --git a/anda/multimedia/kvazaar/kvazaar.spec b/anda/multimedia/kvazaar/kvazaar.spec new file mode 100644 index 0000000000..92ef5997b4 --- /dev/null +++ b/anda/multimedia/kvazaar/kvazaar.spec @@ -0,0 +1,66 @@ +Name: kvazaar +Version: 2.3.1 +Release: 2%{?dist} +Summary: An open-source HEVC encoder +License: BSD and ISC +URL: https://ultravideo.fi/kvazaar.html + +Source0: https://github.com/ultravideo/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz + +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gcc +BuildRequires: libtool +BuildRequires: yasm + +%description +Kvazaar is the leading academic open-source HEVC encoder developed from scratch +in C. This package contains the application for encoding videos. + +%package libs +Summary: HEVC encoder %{name} libraries + +%description libs +The %{name}-devel package contains libraries and header files for developing +applications that use %{name}. This package contains the shared libraries. + +%package devel +Summary: Development files for %{name} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%prep +%autosetup -p1 + +%build +autoreconf -vif +%configure --enable-static=no +%make_build + +%install +%make_install +find %{buildroot} -name '*.la' -delete + +# Pick up docs in the files section +rm -fr %{buildroot}%{_docdir} + +%files +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.* + +%files libs +%license LICENSE* +%doc README.md CREDITS +%{_libdir}/lib%{name}.so.7 +%{_libdir}/lib%{name}.so.7.4.0 + +%files devel +%{_includedir}/%{name}.h +%{_libdir}/lib%{name}.so +%{_libdir}/pkgconfig/%{name}.pc + +%changelog +%autochangelog diff --git a/anda/multimedia/uavs3d/anda.hcl b/anda/multimedia/uavs3d/anda.hcl new file mode 100644 index 0000000000..d7beecea19 --- /dev/null +++ b/anda/multimedia/uavs3d/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + rpm { + spec = "uavs3d.spec" + } + +} diff --git a/anda/multimedia/uavs3d/uavs3d-soname.patch b/anda/multimedia/uavs3d/uavs3d-soname.patch new file mode 100644 index 0000000000..e648250a2b --- /dev/null +++ b/anda/multimedia/uavs3d/uavs3d-soname.patch @@ -0,0 +1,20 @@ +diff -Naur uavs3d-7b1dd734c926a23f8134b42dbfaac4d22cd6ba1d.old/CMakeLists.txt uavs3d-7b1dd734c926a23f8134b42dbfaac4d22cd6ba1d/CMakeLists.txt +--- uavs3d-7b1dd734c926a23f8134b42dbfaac4d22cd6ba1d.old/CMakeLists.txt 2022-03-16 11:03:27.762312616 +0100 ++++ uavs3d-7b1dd734c926a23f8134b42dbfaac4d22cd6ba1d/CMakeLists.txt 2022-03-16 11:03:35.893460120 +0100 +@@ -15,4 +15,3 @@ + target_link_libraries(uavs3dec m) + endif() + target_link_libraries(uavs3dec uavs3d) +-#target_link_libraries(uavs3dec dl) +diff -Naur uavs3d-7b1dd734c926a23f8134b42dbfaac4d22cd6ba1d.old/source/CMakeLists.txt uavs3d-7b1dd734c926a23f8134b42dbfaac4d22cd6ba1d/source/CMakeLists.txt +--- uavs3d-7b1dd734c926a23f8134b42dbfaac4d22cd6ba1d.old/source/CMakeLists.txt 2022-03-16 11:03:27.764312652 +0100 ++++ uavs3d-7b1dd734c926a23f8134b42dbfaac4d22cd6ba1d/source/CMakeLists.txt 2022-03-16 11:03:45.958642708 +0100 +@@ -128,6 +128,8 @@ + MESSAGE(STATUS "BUILD_SHARED_LIBS \t\t: false") + endif() + add_library(${LIBNAME} ${DIR_UAVS3D_SRC} ${UAVS3D_ASM_FILES}) ++set_target_properties(${LIBNAME} PROPERTIES VERSION 1.2.0) ++set_target_properties(${LIBNAME} PROPERTIES SOVERSION 1) + + if (NOT MSVC) + target_link_libraries(${LIBNAME} m) diff --git a/anda/multimedia/uavs3d/uavs3d.spec b/anda/multimedia/uavs3d/uavs3d.spec new file mode 100644 index 0000000000..354e886acf --- /dev/null +++ b/anda/multimedia/uavs3d/uavs3d.spec @@ -0,0 +1,69 @@ +%global commit0 1fd04917cff50fac72ae23e45f82ca6fd9130bd8 +%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) +%global date 20230223 + +Name: uavs3d +Summary: AVS3 decoder library +Version: 1.2.0 +Release: 4%{?shortcommit0:.%{date}git%{shortcommit0}}%{?dist} +License: BSD +URL: https://github.com/uavs3/uavs3d + +Source0: https://github.com/uavs3/uavs3d/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz +Patch0: %{name}-soname.patch + +BuildRequires: cmake >= 3.5 +BuildRequires: gcc-c++ +BuildRequires: git + +%description +Opensource and cross-platform AVS3 decoder that supports AVS3-P2 baseline +profile. + +%package libs +Summary: AVS3 decoder library + +%description libs +Opensource and cross-platform AVS3 decoder that supports AVS3-P2 baseline +profile. + +%package devel +Summary: Header files for uavs3d library +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for developing +applications that use %{name}. + +%prep +%autosetup -p1 -n %{name}-%{commit0} +sed -i '/libdir/ s/"lib"/"%{_lib}"/' source/CMakeLists.txt + +%build +%cmake \ + -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES \ + -DCMAKE_SKIP_RPATH:BOOL=YES \ + -DCOMPILE_10BIT:BOOL=ON + +%cmake_build + +%install +%cmake_install +install -p -m 755 -D %{__cmake_builddir}/uavs3dec %{buildroot}%{_bindir}/uavs3dec + +%files +%{_bindir}/uavs3dec + +%files libs +%license COPYING +%doc README.md +%{_libdir}/libuavs3d.so.1 +%{_libdir}/libuavs3d.so.%{version} + +%files devel +%{_includedir}/%{name}.h +%{_libdir}/libuavs3d.so +%{_libdir}/pkgconfig/%{name}.pc + +%changelog +%autochangelog \ No newline at end of file diff --git a/anda/multimedia/vvenc/anda.hcl b/anda/multimedia/vvenc/anda.hcl new file mode 100644 index 0000000000..fc6364ebc2 --- /dev/null +++ b/anda/multimedia/vvenc/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "vvenc.spec" + } +} diff --git a/anda/multimedia/vvenc/vvenc.spec b/anda/multimedia/vvenc/vvenc.spec new file mode 100644 index 0000000000..260403c943 --- /dev/null +++ b/anda/multimedia/vvenc/vvenc.spec @@ -0,0 +1,73 @@ +Name: vvenc +Version: 1.12.1 +Release: 1%{?dist} +Summary: VVenC, the Fraunhofer Versatile Video Encoder +License: BSD-3-Clause +URL: https://github.com/fraunhoferhhi/%{name} + +Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: gcc-c++ + +%description +VVenC, the Fraunhofer Versatile Video Encoder, is a fast and efficient software +H.266/VVC encoder implementation with the following main features: + +- Easy to use encoder implementation with five predefined quality/speed presets; +- Perceptual optimization to improve subjective video quality, based on the + XPSNR visual model; +- Extensive frame-level and task-based parallelization with very good scaling; +- Frame-level single-pass and two-pass rate control supporting variable bit-rate + (VBR) encoding. + +%package libs +Summary: VVenC, the Fraunhofer Versatile Video Encoder %{name} libraries + +%description libs +The %{name}-devel package contains libraries and header files for developing +applications that use %{name}. This package contains the shared libraries. + +%package devel +Summary: Development files for %{name} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%prep +%autosetup -p1 + +%build +export CXXFLAGS="%{optflags} -Wno-error=maybe-uninitialized -Wno-error=uninitialized" +%cmake \ + -DCMAKE_SKIP_INSTALL_RPATH=OFF \ + -DVVENC_INSTALL_FULLFEATURE_APP=ON +%cmake_build + +%install +%cmake_install + +%files +%{_bindir}/%{name}app +%{_bindir}/%{name}FFapp + +%files libs +%license LICENSE.txt +%doc README.md changelog.txt +%{_libdir}/lib%{name}.so.1.12 +%{_libdir}/lib%{name}.so.%{version} + +%files devel +%{_includedir}/%{name}/ +%{_libdir}/cmake/%{name}/%{name}*.cmake +%{_libdir}/lib%{name}.so +%{_libdir}/pkgconfig/lib%{name}.pc + +%changelog +* Mon Nov 11 2024 Simone Caronni - 1.12.1-1 +- Update to 1.12.1. + +* Mon Aug 19 2024 Simone Caronni - 1.12.0-1 +- First build. \ No newline at end of file diff --git a/anda/system/decklink/anda.hcl b/anda/system/decklink/anda.hcl new file mode 100644 index 0000000000..8bc35fab63 --- /dev/null +++ b/anda/system/decklink/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "decklink-devel.spec" + } +} diff --git a/anda/system/decklink/decklink-devel.spec b/anda/system/decklink/decklink-devel.spec new file mode 100644 index 0000000000..31fb9cfda8 --- /dev/null +++ b/anda/system/decklink/decklink-devel.spec @@ -0,0 +1,44 @@ +Name: decklink-devel +Version: 14.4 +Release: 1%{?dist} +Summary: Blackmagic Design DeckLink SDK +License: End User License Agreement for the Software Development Kit +URL: https://www.blackmagicdesign.com/ +BuildArch: noarch + +Source0: https://github.com/terrapkg/pkg-decklink-devel/releases/download/%{version}/Blackmagic_DeckLink_SDK_%{version}.zip + +%description +This SDK provides developer support for Desktop Video that allows updating +of hardware control and software interfaces for Desktop Video products. + +%package samples +Summary: Sample files and documentation for %{name} +Requires: %{name} = %{version}-%{release} + +%description samples +The %{name}-samples package contains documentation and samplese for the +DeckLink SDK. + +%prep +%autosetup -c +mv Blackmagic\ DeckLink\ SDK\ %{version}/* . +rm -fr Blackmagic\ DeckLink\ SDK\ %{version} + +rm -fr Mac Win Examples/Mac Examples/Win +rm -fr Examples/Linux/bin Linux/Samples/bin + +%install +mkdir -p %{buildroot}%{_includedir} +install -p -m 0644 Linux/include/* %{buildroot}%{_includedir} + +%files +%license "End User License Agreement.pdf" +%{_includedir}/* + +%files samples +%doc ReadMe.rtf "Blackmagic DeckLink SDK.pdf" +%doc Examples/ + +%changelog +%autochangelog