add scripts to enable systemd user service; add virtual provide pipewiremanager [release 0.4.14-2mamba;Sat Mar 25 2023]

This commit is contained in:
Silvan Calarco 2024-01-05 19:28:10 +01:00
parent 044a520213
commit 99aa4aa1bd
2 changed files with 113 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# wireplumber
Session / policy manager implementation for PipeWire.

111
wireplumber.spec Normal file
View File

@ -0,0 +1,111 @@
%define apiver 0.4
Name: wireplumber
Version: 0.4.14
Release: 2mamba
Summary: Session / policy manager implementation for PipeWire
Group: Applications/Multimedia
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://pipewire.pages.freedesktop.org/wireplumber/
Source: https://gitlab.freedesktop.org/pipewire/wireplumber/-/archive/%{version}/wireplumber-%{version}.tar.bz2
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libglib-devel
BuildRequires: liblua-devel
BuildRequires: libpipewire-devel
BuildRequires: libsystemd-devel
## AUTOBUILDREQ-END
BuildRequires: meson
Provides: pipewiremanager
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
Session / policy manager implementation for PipeWire.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%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
%build
%meson \
-D doc=disabled \
-D elogind=disabled \
-D system-lua=true
%meson_build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%meson_install
%find_lang %{name} || touch %{name}.lang
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
%systemd_user_post wireplumber.service
:
%preun
%systemd_user_preun wireplumber.service
:
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/wireplumber
%{_bindir}/wpctl
%{_bindir}/wpexec
%{_userunitdir}/wireplumber.service
%{_userunitdir}/wireplumber@.service
%dir %{_datadir}/wireplumber
%{_datadir}/wireplumber/*
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libwireplumber-%{apiver}.so.*
%dir %{_libdir}/wireplumber-%{apiver}
%{_libdir}/wireplumber-%{apiver}/libwireplumber-module-*.so
%{_libdir}/girepository-1.0/Wp-%{apiver}.typelib
%doc LICENSE
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/wireplumber-%{apiver}
%dir %{_includedir}/wireplumber-%{apiver}/wp
%{_includedir}/wireplumber-%{apiver}/wp/*.h
%{_libdir}/libwireplumber-%{apiver}.so
%{_libdir}/pkgconfig/wireplumber-0.4.pc
%{_datadir}/gir-1.0/Wp-%{apiver}.gir
%doc README.rst
%changelog
* Sat Mar 25 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.14-2mamba
- add scripts to enable systemd user service; add virtual provide pipewiremanager
* Sat Mar 25 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.14-1mamba
- package created using the webbuild interface