webrtc-audio-processing/webrtc-audio-processing.spec

105 lines
3.2 KiB
RPMSpec

%define apiver %(echo %version | cut -d. -f1)
Name: webrtc-audio-processing
Version: 1.3
Release: 1mamba
Summary: FreeDesktop implementation of the Audio Processing module from the WebRTC project
Group: Applications/Multimedia
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing/
Source: https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing.git/v%{version}/webrtc-audio-processing-%{version}.tar.bz2
Patch0: webrtc-audio-processing-0.3.1-fix-typedefs-on-other-arches.patch
Patch1: webrtc-audio-processing-1.2-i586-march-native.patch
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libabseil-cpp-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
FreeDesktop implementation of the Audio Processing module from the WebRTC project.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
#%patch 0 -p1 -b .fix-typedefs-on-other-arches
%ifarch %{ix86}
%patch 1 -p1
%endif
%build
%meson
%meson_build
#% configure \
#% ifarch %{arm} aarch64
# --enable-neon=no \
#% endif
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%meson_install
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libwebrtc-audio-coding-%{apiver}.so.*
%{_libdir}/libwebrtc-audio-processing-%{apiver}.so.*
%doc AUTHORS COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/webrtc-audio-processing-%{apiver}
%{_includedir}/webrtc-audio-processing-%{apiver}/*
%{_libdir}/libwebrtc-audio-coding-%{apiver}.so
%{_libdir}/libwebrtc-audio-processing-%{apiver}.so
%{_libdir}/pkgconfig/webrtc-audio-coding-1.pc
%{_libdir}/pkgconfig/webrtc-audio-processing-%{apiver}.pc
%doc NEWS README README.md
%changelog
* Sun Sep 10 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3-1mamba
- update to 1.3
* Sat Sep 02 2023 Automatic Build System <autodist@mambasoft.it> 1.2-1mamba
- automatic version update by autodist
* Wed Jun 07 2023 Automatic Build System <autodist@mambasoft.it> 1.1-1mamba
- automatic version update by autodist
* Wed Sep 07 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.1-3mamba
- rebuilt without .la file
* Thu Sep 01 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.1-2mamba
- fix build on arm archs; disable static library build
* Thu Sep 01 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.1-1mamba
- package created using the webbuild interface