source renamed from libgavl to gavl; fix for aarch64 support [release 1.4.0-3mamba;Sun Feb 16 2025]

This commit is contained in:
2025-02-17 00:15:27 +01:00
parent 64ca9f6d30
commit f97210fff9
3 changed files with 113 additions and 0 deletions

View File

@@ -1,2 +1,4 @@
# gavl
A library for handling uncompressed audio and video data.

21
gavl-1.4.0-c99.patch Normal file
View File

@@ -0,0 +1,21 @@
Include <string.h> for memset, to avoid an implicit function
declaration and build failures with future compilers.
Fixed upstream as part of:
r5451 | gmerlin | 2018-11-27 20:38:42 +0100 (Tue, 27 Nov 2018) | 2 lines
* Update
diff --git a/src/fill_test.c b/src/fill_test.c
index 1d362bea4af85745..6fd97dab9e192baa 100644
--- a/src/fill_test.c
+++ b/src/fill_test.c
@@ -23,6 +23,7 @@
//#include "colorspace.h" // Common routines
#include <stdio.h>
#include <png.h>
+#include <string.h>
static void
write_png(char * filename, gavl_video_format_t * format, gavl_video_frame_t * frame)

90
gavl.spec Normal file
View File

@@ -0,0 +1,90 @@
Name: gavl
Version: 1.4.0
Release: 3mamba
Summary: A library for handling uncompressed audio and video data
Group: Applications/Multimedia
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/bplaum/gavl
Source: https://sourceforge.net/projects/gmerlin/files/gavl/%{version}/gavl-%{version}.tar.gz
Patch0: gavl-1.4.0-c99.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
A library for handling uncompressed audio and video data.
%package -n lib%{name}
Summary: A library for handling uncompressed audio and video data
Group: System/Libraries
%description -n lib%{name}
A library for handling uncompressed audio and video data.
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%prep
%setup -q
%patch 0 -p1 -b .c99
sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub
# Disable buildtime cpu detection
sed -i -i 's/LQT_TRY_CFLAGS/dnl LQT_TRY_CFLAGS/g' configure.ac
sed -i -i 's/LQT_OPT_CFLAGS/dnl LQT_OPT_CFLAGS/g' configure.ac
./autogen.sh
%build
%configure \
--disable-static \
--disable-cpu-clip
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libgavl.so.*
%doc AUTHORS COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/gavl
%{_includedir}/gavl/*.h
%{_libdir}/libgavl.so
%{_libdir}/pkgconfig/gavl.pc
%dir %{_docdir}/gavl
%dir %{_docdir}/gavl/apiref
%{_docdir}/gavl/apiref/*
%doc README TODO
%changelog
* Sun Feb 16 2025 Automatic Build System <autodist@openmamba.org> 1.4.0-3mamba
- source renamed from libgavl to gavl; fix for aarch64 support
* Tue Feb 13 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.0-2mamba
- rebuilt with debug package
* Fri Jan 11 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.0-1mamba
- update to 1.4.0
* Thu Mar 10 2011 gil <puntogil@libero.it> 1.2.0-1mamba
- package created by autospec