- updated to 0.2.7
[packages/pipewire.git] / pipewire.spec
CommitLineData
911dd57a
JB
1#
2# Conditional build:
3%bcond_without apidocs # Doxygen based API documentation
4%bcond_without gstreamer # GStreamer module
5#
6Summary: PipeWire - server and user space API to deal with multimedia pipelines
7Summary(pl.UTF-8): PipeWire - serwer i API przestrzeni użytkownika do obsługi potoków multimedialnych
8Name: pipewire
b258cf2a 9Version: 0.2.7
911dd57a
JB
10Release: 1
11License: LGPL v2+
12Group: Libraries
13#Source0Download: https://github.com/PipeWire/pipewire/releases
14Source0: https://github.com/PipeWire/pipewire/archive/%{version}/%{name}-%{version}.tar.gz
b258cf2a 15# Source0-md5: 026fe15fc65e4a63bd8e5e63c0e054c6
911dd57a
JB
16#Patch0: %{name}-what.patch
17URL: https://pipewire.org/
18# for tests only
19#BuildRequires: SDL2-devel >= 2
20BuildRequires: alsa-lib-devel
21BuildRequires: dbus-devel
22%{?with_apidocs:BuildRequires: doxygen}
23# libavcodec libavformat libavfilter
24BuildRequires: ffmpeg-devel
25BuildRequires: gcc >= 5:3.2
26%{?with_gstreamer:BuildRequires: glib2-devel >= 1:2.32.0}
27%{?with_apidocs:BuildRequires: graphviz}
28%if %{with gstreamer}
29BuildRequires: gstreamer-devel >= 1.0
30BuildRequires: gstreamer-plugins-base-devel >= 1.0
31%endif
32BuildRequires: meson >= 0.47.0
33BuildRequires: ninja >= 1.5
34BuildRequires: pkgconfig
35BuildRequires: rpmbuild(macros) >= 1.736
36BuildRequires: sbc-devel
37BuildRequires: systemd-devel
38BuildRequires: udev-devel
39BuildRequires: xmltoman
40Requires: %{name}-libs = %{version}-%{release}
41BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43%description
44PipeWire is a server and user space API to deal with multimedia
45pipelines. This includes:
46 - Making available sources of video (such as from a capture devices
47 or application provided streams) and multiplexing this with
48 clients.
49 - Accessing sources of video for consumption.
50 - Generating graphs for audio and video processing.
51
52Nodes in the graph can be implemented as separate processes,
53communicating with sockets and exchanging multimedia content using fd
54passing.
55
56%description -l pl.UTF-8
57PipeWire to serwer i API przestrzeni użytkownika do obsługi potoków
58multimedialnych. Obejmuje to:
59 - udostępnianie źródeł obrazu (np. z urządzeń przechwytujących obraz
60 lub strumieni udostępnianych przez aplikacje) oraz multipleksowanie
61 ich do klientów
62 - dostęp do źródeł obrazu do pobierania
63 - generowanie grafów do przetwarzania dźwięku i obrazu
64
65%package libs
66Summary: PipeWire shared library
67Summary(pl.UTF-8): Biblioteka współdzielona PipeWire
68Group: Libraries
69
70%description libs
71PipeWire shared library.
72
73%description libs -l pl.UTF-8
74Biblioteka współdzielona PipeWire.
75
76%package devel
77Summary: Header files for PipeWire library and Simple Plugin API
78Summary(pl.UTF-8): Pliki nagłówkowe biblioteki PipeWire oraz Simple Plugin API
79Group: Development/Libraries
80Requires: %{name}-libs = %{version}-%{release}
81
82%description devel
83Header files for PipeWire library and Simple Plugin API.
84
85%description devel -l pl.UTF-8
86Pliki nagłówkowe biblioteki PipeWire oraz Simple Plugin API.
87
88%package apidocs
89Summary: API documentation for PipeWire library
90Summary(pl.UTF-8): Dokumentacja API biblioteki PipeWire
91Group: Documentation
92%if "%{_rpmversion}" >= "5"
93BuildArch: noarch
94%endif
95
96%description apidocs
97API documentation for PipeWire library.
98
99%description apidocs -l pl.UTF-8
100Dokumentacja API biblioteki PipeWire.
101
102%package spa-module-alsa
103Summary: PipeWire SPA plugin to play and record audio with ALSA API
104Summary(pl.UTF-8): Wtyczka PipeWire SPA do odtwarzania i nagrywania dźwięku przy użyciu API ALSA
105Group: Libraries
106Requires: %{name}-libs = %{version}-%{release}
107
108%description spa-module-alsa
109PipeWire SPA plugin to play and record audio with ALSA API.
110
111%description spa-module-alsa -l pl.UTF-8
112Wtyczka PipeWire SPA do odtwarzania i nagrywania dźwięku przy użyciu
113API ALSA.
114
115%package spa-module-bluez
116Summary: PipeWire SPA plugin to play audio with Bluetooth A2DP
117Summary(pl.UTF-8): Wtyczka PipeWire SPA do odtwarzania dźwięku przez Bluetooth A2DP
118Group: Libraries
119Requires: %{name}-libs = %{version}-%{release}
120
121%description spa-module-bluez
122PipeWire SPA plugin to play audio with Bluetooth A2DP.
123
124%description spa-module-bluez -l pl.UTF-8
125Wtyczka PipeWire SPA do odtwarzania dźwięku przez Bluetooth A2DP.
126
127%package spa-module-ffmpeg
128Summary: PipeWire SPA plugin to decode/encode with FFmpeg library
129Summary(pl.UTF-8): Wtyczka PipeWire SPA do kodowania/dekodowania przy użyciu biblioteki FFmpeg
130Group: Libraries
131Requires: %{name}-libs = %{version}-%{release}
132
133%description spa-module-ffmpeg
134PipeWire SPA plugin to decode/encode with FFmpeg library.
135
136%description spa-module-ffmpeg -l pl.UTF-8
137Wtyczka PipeWire SPA do kodowania/dekodowania przy użyciu biblioteki
138FFmpeg.
139
140%package -n gstreamer-pipewire
141Summary: PipeWire video sink and source plugin for GStreamer
142Summary(pl.UTF-8): Wtyczka udostępniająca źródło i cel obrazu PipeWire dla GStreamera
143Group: Libraries
144Requires: %{name} = %{version}-%{release}
145Requires: gstreamer >= 1.0
146Requires: gstreamer-plugins-base >= 1.0
147
148%description -n gstreamer-pipewire
149PipeWire video sink and source plugin for GStreamer.
150
151%description -n gstreamer-pipewire -l pl.UTF-8
152Wtyczka udostępniająca źródło i cel obrazu PipeWire dla GStreamera.
153
154%prep
155%setup -q
156
157%build
158%meson build \
159 %{?with_apidocs:-Ddocs=true} \
160 %{!?with_gstreamer:-Dgstreamer=false} \
161 -Dman=true
162
163%ninja_build -C build
164
165%install
166rm -rf $RPM_BUILD_ROOT
167
168%ninja_install -C build
169
170# packaged as %doc in -apidocs
171%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/pipewire/html
172
173%clean
174rm -rf $RPM_BUILD_ROOT
175
176%post libs -p /sbin/ldconfig
177%postun libs -p /sbin/ldconfig
178
179%files
180%defattr(644,root,root,755)
181%attr(755,root,root) %{_bindir}/pipewire
182%attr(755,root,root) %{_bindir}/pipewire-cli
183%attr(755,root,root) %{_bindir}/pipewire-monitor
184%attr(755,root,root) %{_bindir}/spa-inspect
185%attr(755,root,root) %{_bindir}/spa-monitor
186%dir %{_sysconfdir}/pipewire
187%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pipewire/pipewire.conf
188%{systemduserunitdir}/pipewire.service
189%{systemduserunitdir}/pipewire.socket
190%attr(755,root,root) %{_libdir}/pipewire-0.2/libpipewire-module-audio-dsp.so
191%attr(755,root,root) %{_libdir}/pipewire-0.2/libpipewire-module-autolink.so
192%attr(755,root,root) %{_libdir}/pipewire-0.2/libpipewire-module-client-node.so
193%attr(755,root,root) %{_libdir}/pipewire-0.2/libpipewire-module-link-factory.so
194%attr(755,root,root) %{_libdir}/pipewire-0.2/libpipewire-module-mixer.so
195# R: dbus-libs
196%attr(755,root,root) %{_libdir}/pipewire-0.2/libpipewire-module-portal.so
197# R: systemd-libs
198%attr(755,root,root) %{_libdir}/pipewire-0.2/libpipewire-module-protocol-native.so
199# R: dbus-libs
200%attr(755,root,root) %{_libdir}/pipewire-0.2/libpipewire-module-rtkit.so
201%attr(755,root,root) %{_libdir}/pipewire-0.2/libpipewire-module-spa-monitor.so
202%attr(755,root,root) %{_libdir}/pipewire-0.2/libpipewire-module-spa-node.so
203%attr(755,root,root) %{_libdir}/pipewire-0.2/libpipewire-module-spa-node-factory.so
204%attr(755,root,root) %{_libdir}/pipewire-0.2/libpipewire-module-suspend-on-idle.so
205%dir %{_libdir}/spa/audiomixer
206%attr(755,root,root) %{_libdir}/spa/audiomixer/libspa-audiomixer.so
207%dir %{_libdir}/spa/audiotestsrc
208%attr(755,root,root) %{_libdir}/spa/audiotestsrc/libspa-audiotestsrc.so
209%dir %{_libdir}/spa/support
210# R: dbus-libs
211%attr(755,root,root) %{_libdir}/spa/support/libspa-dbus.so
212%attr(755,root,root) %{_libdir}/spa/support/libspa-support.so
213%dir %{_libdir}/spa/test
214%attr(755,root,root) %{_libdir}/spa/test/libspa-test.so
215%dir %{_libdir}/spa/v4l2
216# R: udev-libs
217%attr(755,root,root) %{_libdir}/spa/v4l2/libspa-v4l2.so
218%dir %{_libdir}/spa/videotestsrc
219%attr(755,root,root) %{_libdir}/spa/videotestsrc/libspa-videotestsrc.so
220%dir %{_libdir}/spa/volume
221%attr(755,root,root) %{_libdir}/spa/volume/libspa-volume.so
222%{_mandir}/man1/pipewire.1*
223%{_mandir}/man1/pipewire-cli.1*
224%{_mandir}/man1/pipewire-monitor.1*
225%{_mandir}/man5/pipewire.conf.5*
226
227%files libs
228%defattr(644,root,root,755)
229%doc LICENSE NEWS README
230%attr(755,root,root) %{_libdir}/libpipewire-0.2.so.*.*.*
231%attr(755,root,root) %ghost %{_libdir}/libpipewire-0.2.so.1
232%dir %{_libdir}/pipewire-0.2
233%dir %{_libdir}/spa
234
235%files devel
236%defattr(644,root,root,755)
237%attr(755,root,root) %{_libdir}/libpipewire-0.2.so
238%{_includedir}/pipewire
239%{_includedir}/spa
240%{_pkgconfigdir}/libpipewire-0.2.pc
241%{_pkgconfigdir}/libspa-0.1.pc
242
243%if %{with apidocs}
244%files apidocs
245%defattr(644,root,root,755)
246%doc doc/design.txt build/doc/html/*
247%endif
248
249%files spa-module-alsa
250%defattr(644,root,root,755)
251%dir %{_libdir}/spa/alsa
252# R: alsa-lib udev-libs
253%attr(755,root,root) %{_libdir}/spa/alsa/libspa-alsa.so
254
255%files spa-module-bluez
256%defattr(644,root,root,755)
257%dir %{_libdir}/spa/bluez5
258# R: dbus-libs sbc
259%attr(755,root,root) %{_libdir}/spa/bluez5/libspa-bluez5.so
260
261%files spa-module-ffmpeg
262%defattr(644,root,root,755)
263%dir %{_libdir}/spa/ffmpeg
264# R: ffmpeg-libs
265%attr(755,root,root) %{_libdir}/spa/ffmpeg/libspa-ffmpeg.so
266
267%if %{with gstreamer}
268%files -n gstreamer-pipewire
269%defattr(644,root,root,755)
270%attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstpipewire.so
271%endif
This page took 0.481596 seconds and 4 git commands to generate.