diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bcdd9e2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pipewire-0.2.7.tar.gz diff --git a/README.md b/README.md index 4bbe893..9615450 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # pipewire0.2 -The pipewire0.2 package \ No newline at end of file +Compatibility libraries for PipeWire 0.2 diff --git a/pipewire0.2.spec b/pipewire0.2.spec new file mode 100644 index 0000000..3046ea9 --- /dev/null +++ b/pipewire0.2.spec @@ -0,0 +1,111 @@ +%global apiversion 0.2 +%global spaversion 0.1 + +#global snap 20141103 +#global gitrel 327 +#global gitcommit aec811798cd883a454b9b5cd82c77831906bbd2d +#global shortcommit %(c=%{gitcommit}; echo ${c:0:5}) + +# https://bugzilla.redhat.com/983606 +%global _hardened_build 1 + +# where/how to apply multilib hacks +%global multilib_archs x86_64 %{ix86} ppc64 ppc s390x s390 sparc64 sparcv9 ppc64le + +Name: pipewire0.2 +Summary: Media Sharing Server compat libraries +Version: 0.2.7 +Release: 1%{?snap:.%{snap}git%{shortcommit}}%{?dist} +License: LGPLv2+ +URL: https://pipewire.org/ +%if 0%{?gitrel} +# git clone git://anongit.freedesktop.org/gstreamer/pipewire +# cd pipewire; git reset --hard %{gitcommit}; ./autogen.sh; make; make distcheck +Source0: pipewire-%{version}-%{gitrel}-g%{shortcommit}.tar.gz +%else +Source0: https://github.com/PipeWire/pipewire/archive/%{version}/pipewire-%{version}.tar.gz +%endif + +## upstream patches + +## upstreamable patches + +BuildRequires: meson >= 0.35.0 +BuildRequires: gcc +BuildRequires: pkgconfig +BuildRequires: pkgconfig(libudev) +BuildRequires: pkgconfig(dbus-1) +BuildRequires: pkgconfig(glib-2.0) >= 2.32 +BuildRequires: pkgconfig(gio-unix-2.0) >= 2.32 +BuildRequires: pkgconfig(gstreamer-1.0) >= 1.10.0 +BuildRequires: pkgconfig(gstreamer-base-1.0) >= 1.10.0 +BuildRequires: pkgconfig(gstreamer-plugins-base-1.0) >= 1.10.0 +BuildRequires: pkgconfig(gstreamer-net-1.0) >= 1.10.0 +BuildRequires: pkgconfig(gstreamer-allocators-1.0) >= 1.10.0 +BuildRequires: systemd-devel >= 184 +BuildRequires: alsa-lib-devel +BuildRequires: libv4l-devel +BuildRequires: doxygen +BuildRequires: xmltoman +BuildRequires: graphviz +BuildRequires: sbc-devel + +Requires(pre): shadow-utils +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: systemd >= 184 +Requires: rtkit + +# https://bugzilla.redhat.com/983606 +%global _hardened_build 1 + +## enable systemd activation +%global systemd 1 + +%description +PipeWire is a multimedia server for Linux and other Unix like operating +systems. + +%package libs +Summary: Libraries for PipeWire clients +License: LGPLv2+ +Recommends: %{name}%{?_isa} = %{version}-%{release} + +Provides: pipewire-libs = %{version} +Conflicts: pipewire-libs < %{version} + +%description libs +This package contains the runtime libraries for any application that wishes +to interface with a PipeWire media server. + +%prep +%setup -q -T -b0 -n pipewire-%{version}%{?gitrel:-%{gitrel}-g%{shortcommit}} + +%build +%meson -D docs=false -D man=false -D gstreamer=disabled -D systemd=false +%meson_build + +%install +%meson_install + +rm -rf $RPM_BUILD_ROOT%{_bindir}/* +rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/* +rm -rf $RPM_BUILD_ROOT%{_libdir}/libpipewire-%{apiversion}.so +rm -rf $RPM_BUILD_ROOT%{_includedir}/* +rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig/* + +%check +%meson_test + +%pre +%ldconfig_scriptlets libs + +%files libs +%license LICENSE GPL LGPL +%doc README +%{_libdir}/libpipewire-%{apiversion}.so.* +%{_libdir}/pipewire-%{apiversion}/ +%{_libdir}/spa/ + +%changelog +* Wed Jan 29 2020 Wim Taymans - 0.2.7-1 +- First version diff --git a/sources b/sources new file mode 100644 index 0000000..bae961b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pipewire-0.2.7.tar.gz) = 10d3e20cc3d233fbcd1fc39702ae3043a656ebcd9cd3c39c77f0cc2bf42ff4956fc03e7933c7b397bca446c63f45ddacea948d5ec7e4a3300499fa2794f14334