2021-06-03 17:10:39 +08:00
|
|
|
%global apiversion 0.3
|
|
|
|
|
%global spaversion 0.2
|
2020-01-10 11:13:25 +08:00
|
|
|
%global systemd 1
|
|
|
|
|
%global multilib_archs x86_64
|
2021-07-29 14:53:51 +08:00
|
|
|
%global enable_vulkan 1
|
2019-09-30 11:13:46 -04:00
|
|
|
|
2020-01-10 11:13:25 +08:00
|
|
|
Name: pipewire
|
2021-06-03 17:10:39 +08:00
|
|
|
Version: 0.3.15
|
2021-07-29 14:53:51 +08:00
|
|
|
Release: 3
|
2020-01-10 11:13:25 +08:00
|
|
|
Summary: Multimedia processing graphs
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
URL: https://pipewire.org/
|
2021-06-03 17:10:39 +08:00
|
|
|
Source0: https://github.com/pipewire/pipewire/archive/%{version}/%{name}-%{version}.tar.gz
|
2019-09-30 11:13:46 -04:00
|
|
|
|
2021-06-03 17:10:39 +08:00
|
|
|
Patch0: 0001-protocol-native-do-version-check-on-HELLO.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: meson gcc pkgconf-pkg-config libudev-devel dbus-devel glib2-devel gstreamer-devel
|
|
|
|
|
BuildRequires: gstreamer1-devel gstreamer1-plugins-base-devel systemd-devel vulkan-loader-devel
|
|
|
|
|
BuildRequires: alsa-lib-devel libv4l-devel doxygen xmltoman graphviz sbc-devel libsndfile-devel
|
|
|
|
|
BuildRequires: bluez-devel SDL2-devel jack-audio-connection-kit-devel
|
2019-09-30 11:13:46 -04:00
|
|
|
|
2020-01-10 11:13:25 +08:00
|
|
|
Requires(pre): shadow-utils
|
|
|
|
|
Requires: systemd >= 184 rtkit
|
2019-09-30 11:13:46 -04:00
|
|
|
|
2020-01-10 11:13:25 +08:00
|
|
|
Provides: %{name}-libs %{name}-utils
|
2021-06-03 17:10:39 +08:00
|
|
|
Obsoletes: %{name}-libs < %{version}-%{release} %{name}-utils < %{version}-%{release}
|
2019-09-30 11:13:46 -04:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%{name} is a server and user space API to deal with multimedia
|
|
|
|
|
pipelines,contains command line utilities.
|
2021-07-29 14:53:51 +08:00
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
|
Summary: Libraries for PipeWire clients
|
|
|
|
|
License: MIT
|
|
|
|
|
Recommends: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
Obsoletes: %{name}-libpulse < %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
|
This package contains the runtime libraries for any application that wishes
|
|
|
|
|
to interface with a PipeWire media server.
|
2019-09-30 11:13:46 -04:00
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: includes development files for %{name} client development
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Files needed for building applications,such as static libraries,
|
|
|
|
|
header files that can communicate with a %{name} media server.
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-01-10 11:13:25 +08:00
|
|
|
%autosetup -T -b0 -n %{name}-%{version} -p1
|
2019-09-30 11:13:46 -04:00
|
|
|
|
|
|
|
|
%build
|
2021-06-08 15:54:46 +08:00
|
|
|
%meson -D docs=true -D man=true -D gstreamer=true -D systemd=true \
|
|
|
|
|
-D pipewire-pulseaudio=false
|
2019-09-30 11:13:46 -04:00
|
|
|
%meson_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%meson_install
|
|
|
|
|
|
2020-01-10 11:13:25 +08:00
|
|
|
mkdir %{buildroot}%{_userunitdir}/sockets.target.wants
|
|
|
|
|
ln -s ../pipewire.socket %{buildroot}%{_userunitdir}/sockets.target.wants/pipewire.socket
|
|
|
|
|
|
2021-06-03 17:10:39 +08:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/alsa/conf.d/
|
|
|
|
|
cp %{buildroot}%{_datadir}/alsa/alsa.conf.d/50-pipewire.conf \
|
|
|
|
|
%{buildroot}%{_sysconfdir}/alsa/conf.d/50-pipewire.conf
|
|
|
|
|
cp %{buildroot}%{_datadir}/alsa/alsa.conf.d/99-pipewire-default.conf \
|
|
|
|
|
%{buildroot}%{_sysconfdir}/alsa/conf.d/99-pipewire-default.conf
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/lib/udev/rules.d
|
|
|
|
|
mv -fv %{buildroot}/lib/udev/rules.d/90-pipewire-alsa.rules %{buildroot}%{_prefix}/lib/udev/rules.d
|
|
|
|
|
|
|
|
|
|
|
2019-09-30 11:13:46 -04:00
|
|
|
%check
|
|
|
|
|
%meson_test
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
getent group pipewire >/dev/null || groupadd -r pipewire
|
|
|
|
|
getent passwd pipewire >/dev/null || \
|
2020-01-10 11:13:25 +08:00
|
|
|
useradd -r -g pipewire -d %{_localstatedir}/run/pipewire -s /sbin/nologin -c "PipeWire System Daemon" pipewire
|
2019-09-30 11:13:46 -04:00
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
2021-06-03 17:10:39 +08:00
|
|
|
%license LICENSE COPYING
|
2019-09-30 11:13:46 -04:00
|
|
|
%{_libdir}/gstreamer-1.0/libgstpipewire.*
|
2021-06-03 17:10:39 +08:00
|
|
|
%{_libdir}/alsa-lib/libasound_module_*
|
2019-09-30 11:13:46 -04:00
|
|
|
%{_bindir}/pipewire*
|
2021-06-03 17:10:39 +08:00
|
|
|
%{_bindir}/pw-*
|
2019-09-30 11:13:46 -04:00
|
|
|
%{_bindir}/spa-*
|
2021-07-29 14:53:51 +08:00
|
|
|
%{_libdir}/pipewire-%{apiversion}/jack/
|
|
|
|
|
%{_libdir}/spa-%{spaversion}/jack/
|
2019-09-30 11:13:46 -04:00
|
|
|
%{_userunitdir}/pipewire.*
|
2020-01-10 11:13:25 +08:00
|
|
|
%{_userunitdir}/sockets.target.wants/pipewire.socket
|
|
|
|
|
%dir %{_sysconfdir}/pipewire/
|
2019-09-30 11:13:46 -04:00
|
|
|
%{_sysconfdir}/pipewire/*
|
2021-06-03 17:10:39 +08:00
|
|
|
%{_datadir}/alsa/alsa.conf.d/50-pipewire.conf
|
|
|
|
|
%{_datadir}/alsa/alsa.conf.d/99-pipewire-default.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/alsa/conf.d/50-pipewire.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/alsa/conf.d/99-pipewire-default.conf
|
2021-07-29 14:53:51 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%license LICENSE COPYING
|
|
|
|
|
%{_libdir}/libpipewire-%{apiversion}.so.*
|
|
|
|
|
%{_libdir}/pipewire-%{apiversion}/libpipewire-*.so
|
|
|
|
|
%dir %{_datadir}/alsa-card-profile/
|
|
|
|
|
%dir %{_datadir}/alsa-card-profile/mixer/
|
|
|
|
|
%{_datadir}/alsa-card-profile/mixer/paths/
|
|
|
|
|
%{_datadir}/alsa-card-profile/mixer/profile-sets/
|
2021-06-03 17:10:39 +08:00
|
|
|
%{_prefix}/lib/udev/rules.d/90-pipewire-alsa.rules
|
2021-07-29 14:53:51 +08:00
|
|
|
%dir %{_libdir}/spa-%{spaversion}
|
|
|
|
|
%{_libdir}/spa-%{spaversion}/alsa/
|
|
|
|
|
%{_libdir}/spa-%{spaversion}/audioconvert/
|
|
|
|
|
%{_libdir}/spa-%{spaversion}/audiomixer/
|
|
|
|
|
%{_libdir}/spa-%{spaversion}/bluez5/
|
|
|
|
|
%{_libdir}/spa-%{spaversion}/control/
|
|
|
|
|
%{_libdir}/spa-%{spaversion}/support/
|
|
|
|
|
%{_libdir}/spa-%{spaversion}/v4l2/
|
|
|
|
|
%{_libdir}/spa-%{spaversion}/videoconvert/
|
|
|
|
|
%if 0%{?enable_vulkan}
|
|
|
|
|
%{_libdir}/spa-%{spaversion}/vulkan/
|
|
|
|
|
%endif
|
|
|
|
|
|
2019-09-30 11:13:46 -04:00
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
2021-06-03 17:10:39 +08:00
|
|
|
%{_includedir}/pipewire-%{apiversion}/*
|
|
|
|
|
%{_includedir}/spa-%{spaversion}/*
|
2020-01-10 11:13:25 +08:00
|
|
|
%{_libdir}/libpipewire-%{apiversion}.so
|
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2019-09-30 11:13:46 -04:00
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
2021-06-03 17:10:39 +08:00
|
|
|
%doc README.md
|
2019-09-30 11:13:46 -04:00
|
|
|
%{_mandir}/man1/*
|
2020-01-10 11:13:25 +08:00
|
|
|
%{_mandir}/man5/*
|
2019-09-30 11:13:46 -04:00
|
|
|
%{_datadir}/doc/pipewire/html/*
|
2021-07-29 14:53:51 +08:00
|
|
|
|
2019-09-30 11:13:46 -04:00
|
|
|
|
|
|
|
|
%changelog
|
2021-07-29 14:53:51 +08:00
|
|
|
* Thu Jul 29 2021 wangkerong <wangkerong@huawei.com> - 0.3.15-3
|
|
|
|
|
- add lib package
|
|
|
|
|
|
2021-06-08 15:54:46 +08:00
|
|
|
* Mon May 31 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 0.3.15-2
|
|
|
|
|
- Update stage 'build', add disable configuration to pipewire-pulseaudio
|
|
|
|
|
|
2021-06-03 17:10:39 +08:00
|
|
|
* Mon May 31 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 0.3.15-1
|
|
|
|
|
- Upgrade to 0.3.15
|
|
|
|
|
- Update Version, Source0, BuildRequires, Obsoletes
|
|
|
|
|
- Update stage 'build', 'install' and 'files'
|
|
|
|
|
- Correct uncorrect date, add one patch
|
|
|
|
|
|
2020-01-10 11:13:25 +08:00
|
|
|
* Thu Jan 9 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.2.7-1
|
|
|
|
|
- update to 0.2.7
|
|
|
|
|
|
2019-12-13 16:00:08 +08:00
|
|
|
* Sat Nov 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.2.2-4
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:change build requires of v4l-utils-deve to libv4l-devel
|
|
|
|
|
|
|
|
|
|
* Thu Nov 14 2019 shenyangyang<shenyangyang4@huawei.com> - 0.2.2-3
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:change build requires of libv4l-devel to v4l-utils-devel
|
|
|
|
|
|
2021-06-03 17:10:39 +08:00
|
|
|
* Wed Aug 29 2018 openEuler Buildteam <buildteam@openeuler.org> - 0.2.2-2
|
2019-09-30 11:13:46 -04:00
|
|
|
- Package init
|