pipewire/pipewire.spec

168 lines
4.6 KiB
RPMSpec
Raw Normal View History

2017-06-16 17:47:56 +02:00
%global majorminor 0.1
2015-09-02 09:10:49 +02:00
#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
2017-05-23 19:15:33 +02:00
Name: pipewire
2015-09-02 09:10:49 +02:00
Summary: Media Sharing Server
2017-08-09 10:10:24 +02:00
Version: 0.1.3
2017-06-26 13:06:14 +02:00
Release: 1%{?snap:.%{snap}git%{shortcommit}}%{?dist}
2015-09-02 09:10:49 +02:00
License: LGPLv2+
2017-05-23 19:15:33 +02:00
URL: http://www.freedesktop.org/wiki/Software/PipeWire
2015-09-02 09:10:49 +02:00
%if 0%{?gitrel}
2017-05-23 19:15:33 +02:00
# git clone git://anongit.freedesktop.org/gstreamer/pipewire
# cd pipewire; git reset --hard %{gitcommit}; ./autogen.sh; make; make distcheck
2017-06-16 10:06:50 +02:00
Source0: pipewire-%{version}-%{gitrel}-g%{shortcommit}.tar.gz
2015-09-02 09:10:49 +02:00
%else
2017-06-16 10:06:50 +02:00
Source0: http://freedesktop.org/software/pipewire/releases/pipewire-%{version}.tar.gz
2015-09-02 09:10:49 +02:00
%endif
## upstream patches
## upstreamable patches
2017-06-16 10:06:50 +02:00
BuildRequires: meson >= 0.35.0
2015-09-02 09:10:49 +02:00
BuildRequires: pkgconfig
2017-07-04 11:30:49 +02:00
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(dbus-1)
2015-09-09 17:08:57 +02:00
BuildRequires: pkgconfig(glib-2.0) >= 2.32
BuildRequires: pkgconfig(gio-unix-2.0) >= 2.32
2017-06-16 10:06:50 +02:00
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
2015-09-02 09:10:49 +02:00
BuildRequires: systemd-devel >= 184
2017-07-04 11:30:49 +02:00
BuildRequires: alsa-lib-devel
BuildRequires: libv4l-devel
2017-07-04 11:43:08 +02:00
BuildRequires: doxygen
BuildRequires: xmltoman
2017-07-04 12:26:09 +02:00
BuildRequires: graphviz
2015-09-02 09:10:49 +02:00
Requires(pre): shadow-utils
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Requires: systemd >= 184
Requires: rtkit
%description
2017-05-23 19:15:33 +02:00
PipeWire is a multimedia server for Linux and other Unix like operating
2015-09-02 09:10:49 +02:00
systems.
%package libs
2017-05-23 19:15:33 +02:00
Summary: Libraries for PipeWire clients
2015-09-02 09:10:49 +02:00
License: LGPLv2+
%description libs
This package contains the runtime libraries for any application that wishes
2017-05-23 19:15:33 +02:00
to interface with a PipeWire media server.
2015-09-02 09:10:49 +02:00
%package devel
2017-05-23 19:15:33 +02:00
Summary: Headers and libraries for PipeWire client development
2015-09-02 09:10:49 +02:00
License: LGPLv2+
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description devel
2015-09-02 09:10:49 +02:00
Headers and libraries for developing applications that can communicate with
2017-05-23 19:15:33 +02:00
a PipeWire media server.
2015-09-02 09:10:49 +02:00
2017-08-09 09:31:24 +02:00
%package doc
Summary: PipeWire media server documentation
License: LGPLv2+
%description doc
This package contains documentation for the PipeWire media server.
2015-09-02 09:10:49 +02:00
%package utils
2017-05-23 19:15:33 +02:00
Summary: PipeWire media server utilities
2015-09-02 09:10:49 +02:00
License: LGPLv2+
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description utils
2017-05-23 19:15:33 +02:00
This package contains command line utilities for the PipeWire media server.
2015-09-02 09:10:49 +02:00
%prep
%setup -q -T -b0 -n %{name}-%{version}%{?gitrel:-%{gitrel}-g%{shortcommit}}
%build
2017-06-16 10:06:50 +02:00
%meson
%meson_build
2015-09-02 09:10:49 +02:00
%install
2017-06-16 10:06:50 +02:00
%meson_install
2015-09-02 09:10:49 +02:00
%check
2017-06-16 10:06:50 +02:00
%meson_test
2015-09-02 09:10:49 +02:00
%pre
2017-05-23 19:15:33 +02:00
getent group pipewire >/dev/null || groupadd -r pipewire
getent passwd pipewire >/dev/null || \
useradd -r -g pipewire -d /var/run/pipewire -s /sbin/nologin -c "PipeWire System Daemon" pipewire
2015-09-09 17:08:57 +02:00
exit 0
2015-09-02 09:10:49 +02:00
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
2015-09-09 17:08:57 +02:00
%license LICENSE GPL LGPL
%doc README
2017-05-23 19:15:33 +02:00
%{_bindir}/pipewire
2017-06-16 19:34:55 +02:00
%{_libdir}/libpipewire-%{majorminor}.so.*
%{_libdir}/libspa-lib.so.*
2017-05-23 19:15:33 +02:00
%{_libdir}/gstreamer-1.0/libgstpipewire.*
2017-06-16 19:34:55 +02:00
%{_libdir}/pipewire-%{majorminor}/
%{_libdir}/spa/
2017-05-23 19:15:33 +02:00
%{_mandir}/man1/pipewire.1*
2017-06-16 19:34:55 +02:00
%{_sysconfdir}/pipewire/pipewire.conf
2017-05-23 19:15:33 +02:00
%files libs
2015-09-09 17:08:57 +02:00
%license LICENSE GPL LGPL
%doc README
2017-06-16 19:34:55 +02:00
%dir %{_sysconfdir}/pipewire/
2017-05-23 19:15:33 +02:00
#%dir %{_libdir}/pipewire/
2015-09-02 09:10:49 +02:00
2017-06-26 13:06:14 +02:00
%files devel
2017-06-16 19:34:55 +02:00
%{_libdir}/libpipewire-%{majorminor}.so
%{_libdir}/libspa-lib.so
2017-05-23 19:15:33 +02:00
%{_includedir}/pipewire/
2017-06-16 19:34:55 +02:00
%{_includedir}/spa/
%{_libdir}/pkgconfig/libpipewire-%{majorminor}.pc
%{_libdir}/pkgconfig/libspa-%{majorminor}.pc
2015-09-02 09:10:49 +02:00
2017-08-09 09:31:24 +02:00
%files doc
%{_datadir}/doc/pipewire/html
2015-09-02 09:10:49 +02:00
%files utils
2017-05-23 19:15:33 +02:00
%{_bindir}/pipewire-monitor
%{_mandir}/man1/pipewire-monitor.1*
2017-06-16 19:34:55 +02:00
%{_bindir}/spa-monitor
%{_bindir}/spa-inspect
2015-09-02 09:10:49 +02:00
%changelog
2017-08-09 10:10:24 +02:00
* Wed Aug 09 2017 Wim Taymans <wtaymans@redhat.com> - 0.1.3-1
- Update to 0.1.3
2017-07-04 15:08:57 +02:00
* Tue Jul 04 2017 Wim Taymans <wtaymans@redhat.com> - 0.1.2-1
- Update to 0.1.2
- Added more build requirements
2017-08-09 09:31:24 +02:00
- Make separate doc package
2017-07-04 15:08:57 +02:00
2017-06-26 13:06:14 +02:00
* Mon Jun 26 2017 Wim Taymans <wtaymans@redhat.com> - 0.1.1-1
- Update to 0.1.1
- Add dbus-1 to BuildRequires
- change libs-devel to -devel
2015-09-09 17:08:57 +02:00
* Wed Sep 9 2015 Wim Taymans <wtaymans@redhat.com> - 0.1.0-2
- Fix BuildRequires to use pkgconfig, add all dependencies found in configure.ac
- Add user and groups if needed
- Add license to %%licence
2015-09-02 09:10:49 +02:00
* Tue Sep 1 2015 Wim Taymans <wtaymans@redhat.com> - 0.1.0-1
- First version