update spec

This commit is contained in:
Wim Taymans 2017-08-17 19:01:11 +02:00
parent 29eb58f7a2
commit 593df62ccc
4 changed files with 23 additions and 14 deletions

View file

@ -28,7 +28,7 @@ pipewire_libdir = join_paths(prefix, get_option('libdir'))
pipewire_localedir = join_paths(prefix, get_option('localedir'))
pipewire_sysconfdir = join_paths(prefix, get_option('sysconfdir'))
modules_install_dir = '@0@/pipewire-@1@'.format(get_option('libdir'), apiversion)
modules_install_dir = join_paths(get_option('libdir'), 'pipewire-@0@'.format(apiversion))
gnome = import('gnome')
@ -41,9 +41,9 @@ cdata.set('PIPEWIRE_VERSION_MINOR', pipewire_version_minor)
cdata.set('PIPEWIRE_VERSION_MICRO', pipewire_version_micro)
cdata.set('PIPEWIRE_VERSION_NANO', pipewire_version_nano)
cdata.set('PIPEWIRE_API_VERSION', '"@0@"'.format(apiversion))
cdata.set('PIPEWIRE_DATADIR', '"@0@/@1@"'.format(pipewire_datadir))
cdata.set('LOCALEDIR', '"@0@/@1@"'.format(pipewire_localedir))
cdata.set('LIBDIR', '"@0@/@1@"'.format(pipewire_libdir))
cdata.set('PIPEWIRE_DATADIR', '"@0@"'.format(pipewire_datadir))
cdata.set('LOCALEDIR', '"@0@"'.format(pipewire_localedir))
cdata.set('LIBDIR', '"@0@"'.format(pipewire_libdir))
cdata.set('GETTEXT_PACKAGE', '"pipewire"')
cdata.set('PIPEWIRE_LICENSE', '"LGPL"')
cdata.set('PIPEWIRE_PACKAGE_ORIGIN', '"Unknown package origin"')

View file

@ -13,7 +13,7 @@
Name: pipewire
Summary: Media Sharing Server
Version: 0.1.3
Version: 0.1.3.1
Release: 1%{?snap:.%{snap}git%{shortcommit}}%{?dist}
License: LGPLv2+
URL: http://www.freedesktop.org/wiki/Software/PipeWire
@ -52,6 +52,12 @@ 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.
@ -112,6 +118,9 @@ exit 0
%files
%license LICENSE GPL LGPL
%doc README
%if 0%{?systemd}
%{_userunitdir}/pipewire.*
%endif
%{_bindir}/pipewire
%{_libdir}/libpipewire-%{majorminor}.so.*
%{_libdir}/libspa-lib.so.*

View file

@ -14,13 +14,14 @@ pipewire_c_args = [
]
conf_config = configuration_data()
conf_install_dir = '@0@/pipewire'.format(get_option('sysconfdir'))
conf_install_dir = join_paths(get_option('sysconfdir'), 'pipewire')
configure_file(input : 'pipewire.conf.in',
output : 'pipewire.conf',
configuration : conf_config,
install_dir : conf_install_dir)
executable('pipewire',
pipewire_sources,
install: true,

View file

@ -1,15 +1,14 @@
systemd_install_dir = '@0@/systemd/user'.format(get_option('libdir'))
systemd = dependency('systemd', required: true)
if systemd.found()
systemd_user_services_dir = systemd.get_pkgconfig_variable('systemduserunitdir')
endif
pipewire_systemd_files = [
'pipewire.socket',
]
install_data(pipewire_systemd_files, install_dir : systemd_install_dir)
install_data(sources : 'pipewire.socket', install_dir : systemd_user_services_dir)
systemd_config = configuration_data()
systemd_config.set('PW_BINARY', '@0@/pipewire'.format(pipewire_bindir))
systemd_config.set('PW_BINARY', join_paths(pipewire_bindir, 'pipewire'))
configure_file(input : 'pipewire.service.in',
output : 'pipewire.service',
configuration : systemd_config,
install_dir : systemd_install_dir)
install_dir : systemd_user_services_dir)