really rebuild with libcamera [release 0.3.67-4mamba;Sun Mar 26 2023]

This commit is contained in:
Silvan Calarco 2024-01-06 10:07:43 +01:00
parent e245231433
commit e7a409abac

View File

@ -1,7 +1,7 @@
%define majver %(echo %version | cut -d. -f1-2)
Name: pipewire
Version: 0.3.67
Release: 1mamba
Release: 4mamba
Summary: Multimedia processing graphs
Group: Applications/Multimedia
Vendor: openmamba
@ -15,6 +15,7 @@ License: GPL, LGPL
BuildRequires: glibc-devel
BuildRequires: libalsa-devel
BuildRequires: libbluetooth-devel
BuildRequires: libcamera-devel
BuildRequires: libdbus-devel
BuildRequires: libfdk-aac-devel
BuildRequires: libfreeaptx-devel
@ -23,6 +24,7 @@ BuildRequires: libglib-devel
BuildRequires: libgst-plugins-base-devel
BuildRequires: libgstreamer-devel
BuildRequires: libjack-devel
BuildRequires: liblc3-devel
BuildRequires: libldac-devel
BuildRequires: libncurses-devel
BuildRequires: libopus-devel
@ -46,6 +48,15 @@ Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
Multimedia processing graphs.
%package pulse
Group: System/Libraries
Summary: Pipewire Pulseaudio plugin
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pipewiremanager
%description pulse
Pipewire Pulseaudio plugin.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
@ -70,14 +81,18 @@ This package contains libraries and header files for developing applications tha
%prep
%setup -q
#-D -T
#%patch0 -p1
%build
#:<< _EOF
%meson \
--wrap-mode=nodownload \
-Dudevrulesdir=%{_udevrulesdir} \
-Dbluez5-codec-lc3=enabled \
-Dbluez5-codec-lc3plus=disabled \
-Dlibcamera=disabled \
-Dcompress-offload=enabled \
-Drlimits-install=false \
-Dsession-managers=[]
%meson_build
@ -88,6 +103,8 @@ This package contains libraries and header files for developing applications tha
install -d -m0755 %{buildroot}%{_sysconfdir}/pipewire
install -d -m0755 %{buildroot}%{_sysconfdir}/alsa/conf.d
ln -s %{_datadir}/alsa/alsa.conf.d/50-pipewire.conf %{buildroot}%{_sysconfdir}/alsa/conf.d/50-pipewire.conf
%find_lang %{name}
@ -95,15 +112,28 @@ install -d -m0755 %{buildroot}%{_sysconfdir}/pipewire
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
#% systemd_user_post pipewire.socket
#% systemd_user_post pipewire-pulse.socket
#% systemd_user_post pipewire-media-session.service
%systemd_user_post pipewire.socket
:
%preun
#% systemd_user_preun pipewire-media-session.service
#% systemd_user_preun pipewire-pulse.socket
#% systemd_user_preun pipewire.socket
%systemd_user_preun pipewire.socket
:
%post pulse
%systemd_user_post pipewire-pulse.socket
:
%preun pulse
%systemd_user_preun pipewire-pulse.socket
:
%posttrans pulse
if [ $1 -ge 1 ]; then
# Mask pulseaudio when this package is installed
systemctl --global mask pulseaudio pulseaudio.socket || :
else
systemctl --global unmask pulseaudio pulseaudio.socket || :
fi
:
%post -n lib%{name} -p /sbin/ldconfig
@ -112,13 +142,15 @@ install -d -m0755 %{buildroot}%{_sysconfdir}/pipewire
%files -f %{name}.lang
%defattr(-,root,root)
%dir %{_sysconfdir}/pipewire
%{_sysconfdir}/security/limits.d/25-pw-rlimits.conf
%{_sysconfdir}/alsa/conf.d/50-pipewire.conf
#%{_sysconfdir}/security/limits.d/25-pw-rlimits.conf
%{_bindir}/pipewire
%{_bindir}/pipewire-*
%{_bindir}/pipewire-aes67
%{_bindir}/pipewire-avb
%{_bindir}/pw-*
%{_bindir}/spa-*
%{_userunitdir}/pipewire*.service
%{_userunitdir}/pipewire*.socket
%{_userunitdir}/pipewire.service
%{_userunitdir}/pipewire.socket
%{_userunitdir}/filter-chain.service
%{_udevrulesdir}/90-pipewire-alsa.rules
%{_datadir}/alsa/alsa.conf.d/50-pipewire.conf
@ -131,16 +163,22 @@ install -d -m0755 %{buildroot}%{_sysconfdir}/pipewire
%{_datadir}/alsa-card-profile/mixer/profile-sets/*
%dir %{_datadir}/pipewire
%{_datadir}/pipewire/*.conf
%exclude %{_datadir}/pipewire/pipewire-pulse.conf
%dir %{_datadir}/pipewire/filter-chain
%{_datadir}/pipewire/filter-chain/*.conf
#%dir %{_datadir}/pipewire/media-session.d
#%{_datadir}/pipewire/media-session.d/*
%{_datadir}/spa-0.2/bluez5/bluez-hardware.conf
%{_mandir}/man1/pipewire.1*
%{_mandir}/man1/pipewire-pulse.1*
%{_mandir}/man1/pw-*.1*
%{_mandir}/man5/pipewire.conf.5*
%files pulse
%defattr(-,root,root)
%{_bindir}/pipewire-pulse
%{_userunitdir}/pipewire-pulse.service
%{_userunitdir}/pipewire-pulse.socket
%{_datadir}/pipewire/pipewire-pulse.conf
%{_mandir}/man1/pipewire-pulse.1*
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libpipewire-*.so.*
@ -171,6 +209,16 @@ install -d -m0755 %{buildroot}%{_sysconfdir}/pipewire
%doc NEWS
%changelog
* Sun Mar 26 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.67-4mamba
- really rebuild with libcamera
* Sun Mar 26 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.67-3mamba
- rebuilt with libcamera and liblc3 support
- added pipewire-pulse subpackage
* Sat Mar 25 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.67-2mamba
- require pipewiremanager (virtual for wireplumber)
* Fri Mar 10 2023 Automatic Build System <autodist@mambasoft.it> 0.3.67-1mamba
- automatic version update by autodist