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

88 lines
2.6 KiB
RPMSpec
Raw Permalink Normal View History

Name: webrtc-audio-processing
Version: 0.3.1
Release: 2mamba
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
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-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
%patch0 -p1 -b .fix-typedefs-on-other-arches
NOCONFIGURE=1 ./autogen.sh
%build
%configure \
%ifarch %{arm} aarch64
--enable-neon=no \
%endif
--disable-silent-rules \
--disable-static
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%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_processing.so.*
%doc AUTHORS COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/webrtc_audio_processing
%{_includedir}/webrtc_audio_processing/*
%{_libdir}/libwebrtc_audio_processing.la
%{_libdir}/libwebrtc_audio_processing.so
%{_libdir}/pkgconfig/webrtc-audio-processing.pc
%doc NEWS README README.md
%changelog
* 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