|
|
83b233 |
%global apiversion 0.2
|
|
|
83b233 |
%global spaversion 0.1
|
|
|
83b233 |
|
|
|
83b233 |
#global snap 20141103
|
|
|
83b233 |
#global gitrel 327
|
|
|
83b233 |
#global gitcommit aec811798cd883a454b9b5cd82c77831906bbd2d
|
|
|
83b233 |
#global shortcommit %(c=%{gitcommit}; echo ${c:0:5})
|
|
|
83b233 |
|
|
|
83b233 |
# https://bugzilla.redhat.com/983606
|
|
|
83b233 |
%global _hardened_build 1
|
|
|
83b233 |
|
|
|
83b233 |
# where/how to apply multilib hacks
|
|
|
83b233 |
%global multilib_archs x86_64 %{ix86} ppc64 ppc s390x s390 sparc64 sparcv9 ppc64le
|
|
|
83b233 |
|
|
|
83b233 |
Name: pipewire0.2
|
|
|
83b233 |
Summary: Media Sharing Server compat libraries
|
|
|
83b233 |
Version: 0.2.7
|
|
|
83b233 |
Release: 6%{?snap:.%{snap}git%{shortcommit}}%{?dist}
|
|
|
83b233 |
License: LGPLv2+
|
|
|
83b233 |
URL: https://pipewire.org/
|
|
|
83b233 |
%if 0%{?gitrel}
|
|
|
83b233 |
# git clone git://anongit.freedesktop.org/gstreamer/pipewire
|
|
|
83b233 |
# cd pipewire; git reset --hard %{gitcommit}; ./autogen.sh; make; make distcheck
|
|
|
83b233 |
Source0: pipewire-%{version}-%{gitrel}-g%{shortcommit}.tar.gz
|
|
|
83b233 |
%else
|
|
|
83b233 |
Source0: https://gitlab.freedesktop.org/pipewire/pipewire/-/archive/%{version}/pipewire-%{version}.tar.gz
|
|
|
83b233 |
%endif
|
|
|
83b233 |
|
|
|
83b233 |
## upstream patches
|
|
|
83b233 |
Patch1: 0001-build-and-link-a2dp-codecs.c-as-well.patch
|
|
|
83b233 |
Patch2: 0001-bluez5-declare-factory-as-extern.patch
|
|
|
83b233 |
|
|
|
83b233 |
## upstreamable patches
|
|
|
83b233 |
|
|
|
83b233 |
BuildRequires: meson >= 0.35.0
|
|
|
83b233 |
BuildRequires: gcc
|
|
|
83b233 |
BuildRequires: pkgconfig
|
|
|
83b233 |
BuildRequires: pkgconfig(libudev)
|
|
|
83b233 |
BuildRequires: pkgconfig(dbus-1)
|
|
|
83b233 |
BuildRequires: pkgconfig(glib-2.0) >= 2.32
|
|
|
83b233 |
BuildRequires: pkgconfig(gio-unix-2.0) >= 2.32
|
|
|
83b233 |
BuildRequires: pkgconfig(gstreamer-1.0) >= 1.10.0
|
|
|
83b233 |
BuildRequires: pkgconfig(gstreamer-base-1.0) >= 1.10.0
|
|
|
83b233 |
BuildRequires: pkgconfig(gstreamer-plugins-base-1.0) >= 1.10.0
|
|
|
83b233 |
BuildRequires: pkgconfig(gstreamer-net-1.0) >= 1.10.0
|
|
|
83b233 |
BuildRequires: pkgconfig(gstreamer-allocators-1.0) >= 1.10.0
|
|
|
83b233 |
BuildRequires: systemd-devel >= 184
|
|
|
83b233 |
BuildRequires: alsa-lib-devel
|
|
|
83b233 |
BuildRequires: libv4l-devel
|
|
|
83b233 |
BuildRequires: doxygen
|
|
|
83b233 |
BuildRequires: xmltoman
|
|
|
83b233 |
BuildRequires: graphviz
|
|
|
83b233 |
BuildRequires: sbc-devel
|
|
|
83b233 |
|
|
|
83b233 |
Requires(pre): shadow-utils
|
|
|
83b233 |
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
83b233 |
Requires: systemd >= 184
|
|
|
83b233 |
Requires: rtkit
|
|
|
83b233 |
|
|
|
83b233 |
# https://bugzilla.redhat.com/983606
|
|
|
83b233 |
%global _hardened_build 1
|
|
|
83b233 |
|
|
|
83b233 |
## enable systemd activation
|
|
|
83b233 |
%global systemd 1
|
|
|
83b233 |
|
|
|
83b233 |
%description
|
|
|
83b233 |
PipeWire is a multimedia server for Linux and other Unix like operating
|
|
|
83b233 |
systems.
|
|
|
83b233 |
|
|
|
83b233 |
%package libs
|
|
|
83b233 |
Summary: Compatibility Libraries for PipeWire clients
|
|
|
83b233 |
License: LGPLv2+
|
|
|
83b233 |
|
|
|
83b233 |
Provides: pipewire-libs%{?_isa} = %{version}
|
|
|
83b233 |
Conflicts: pipewire-libs%{?_isa} <= %{version}
|
|
|
83b233 |
|
|
|
83b233 |
%description libs
|
|
|
83b233 |
This package contains the runtime libraries for any application that wishes
|
|
|
83b233 |
to interface with a PipeWire media server.
|
|
|
83b233 |
|
|
|
83b233 |
%package devel
|
|
|
83b233 |
Summary: Compatibility Headers and libraries for PipeWire client development
|
|
|
83b233 |
License: LGPLv2+
|
|
|
83b233 |
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
83b233 |
|
|
|
83b233 |
%description devel
|
|
|
83b233 |
Headers and libraries for developing applications that can communicate with
|
|
|
83b233 |
a PipeWire media server.
|
|
|
83b233 |
|
|
|
83b233 |
%prep
|
|
|
83b233 |
%setup -q -T -b0 -n pipewire-%{version}%{?gitrel:-%{gitrel}-g%{shortcommit}}
|
|
|
83b233 |
|
|
|
83b233 |
%patch1 -p1 -b .0001
|
|
|
83b233 |
%patch2 -p1 -b .0002
|
|
|
83b233 |
|
|
|
83b233 |
%build
|
|
|
83b233 |
%meson -D docs=false -D man=false -D gstreamer=disabled -D systemd=false
|
|
|
83b233 |
%meson_build
|
|
|
83b233 |
|
|
|
83b233 |
%install
|
|
|
83b233 |
%meson_install
|
|
|
83b233 |
|
|
|
83b233 |
rm -rf $RPM_BUILD_ROOT%{_bindir}/*
|
|
|
83b233 |
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/*
|
|
|
83b233 |
|
|
|
83b233 |
%check
|
|
|
83b233 |
%meson_test
|
|
|
83b233 |
|
|
|
83b233 |
%pre
|
|
|
83b233 |
%ldconfig_scriptlets libs
|
|
|
83b233 |
|
|
|
83b233 |
%files libs
|
|
|
83b233 |
%license LICENSE GPL LGPL
|
|
|
83b233 |
%doc README
|
|
|
83b233 |
%{_libdir}/libpipewire-%{apiversion}.so.*
|
|
|
83b233 |
%{_libdir}/pipewire-%{apiversion}/
|
|
|
83b233 |
%{_libdir}/spa/
|
|
|
83b233 |
|
|
|
83b233 |
%files devel
|
|
|
83b233 |
%{_libdir}/libpipewire-%{apiversion}.so
|
|
|
83b233 |
%{_includedir}/pipewire/
|
|
|
83b233 |
%{_includedir}/spa/
|
|
|
83b233 |
%{_libdir}/pkgconfig/libpipewire-%{apiversion}.pc
|
|
|
83b233 |
%{_libdir}/pkgconfig/libspa-%{spaversion}.pc
|
|
|
83b233 |
|
|
|
83b233 |
%changelog
|
|
|
83b233 |
* Thu Jun 18 2020 Wim Taymans <wtaymans@redhat.com> - 0.2.7-6
|
|
|
83b233 |
- Fix Conflicts: line
|
|
|
83b233 |
- Remove Recommends: line, it's wrong
|
|
|
83b233 |
- Resolves: rhbz#1832347
|
|
|
83b233 |
|
|
|
83b233 |
* Fri Jun 05 2020 Wim Taymans <wtaymans@redhat.com> - 0.2.7-5
|
|
|
83b233 |
- Fix Conflicts: line
|
|
|
83b233 |
- Resolves: rhbz#1832347
|
|
|
83b233 |
|
|
|
83b233 |
* Fri Jun 05 2020 Wim Taymans <wtaymans@redhat.com> - 0.2.7-4
|
|
|
83b233 |
- Add gating file
|
|
|
83b233 |
- Resolves: rhbz#1832347
|
|
|
83b233 |
|
|
|
83b233 |
* Fri Jun 05 2020 Wim Taymans <wtaymans@redhat.com> - 0.2.7-3
|
|
|
83b233 |
- Change source URL
|
|
|
83b233 |
- Resolves: rhbz#1832347
|
|
|
83b233 |
|
|
|
83b233 |
* Fri Feb 07 2020 Wim Taymans <wtaymans@redhat.com> - 0.2.7-2
|
|
|
83b233 |
- Add compat -devel package
|
|
|
83b233 |
|
|
|
83b233 |
* Wed Jan 29 2020 Wim Taymans <wtaymans@redhat.com> - 0.2.7-1
|
|
|
83b233 |
- First version
|
|
|
83b233 |
- Fix bluez5 plugins build
|