Blame SPECS/pipewire0.2.spec

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