diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2017-03-02 09:48:13 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2017-03-02 15:51:46 +0100 |
commit | ef8c29288149a6b9fa0ff61b83c90860cd76a00f (patch) | |
tree | 27c92a268918204af77040f5177458b1504fbccc /contrib | |
parent | 9d39569287f6770b951e30f68d88e14f9ec68ac7 (diff) |
contrib/rpm: install D-Bus service files to /usr if we can
This is in fact the correct location, but dbus in RHEL 7 is still too
old to be able to use that.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/fedora/rpm/NetworkManager.spec | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/contrib/fedora/rpm/NetworkManager.spec b/contrib/fedora/rpm/NetworkManager.spec index 57e26bcc3..9ec883b91 100644 --- a/contrib/fedora/rpm/NetworkManager.spec +++ b/contrib/fedora/rpm/NetworkManager.spec @@ -7,7 +7,6 @@ # Note that it contains __PLACEHOLDERS__ that will be replaced by the accompanying 'build.sh' script. -%global dbus_version 1.1 %global dbus_glib_version 0.100 %global wireless_tools_version 1:28-0pre9 @@ -48,6 +47,14 @@ %global default_with_bluetooth 1 %global default_with_wwan 1 +%if (0%{?fedora} && 0%{?fedora} < 23) +%global dbus_version 1.1 +%global dbus_sys_dir %{_sysconfdir}/dbus-1/system.d +%else +%global dbus_version 1.9.18 +%global dbus_sys_dir %{_datadir}/dbus-1/system.d +%endif + # ModemManager on Fedora < 20 too old for Bluetooth && wwan %if (0%{?fedora} && 0%{?fedora} < 20) %global default_with_bluetooth 0 @@ -429,6 +436,7 @@ intltoolize --automake --copy --force --with-suspend-resume=systemd \ --with-systemdsystemunitdir=%{systemd_dir} \ --with-system-ca-path=/etc/pki/tls/cert.pem \ + --with-dbus-sys-dir=%{dbus_sys_dir} \ --with-tests=yes \ --with-valgrind=no \ --enable-ifcfg-rh=yes \ @@ -509,9 +517,9 @@ fi %files -%{_sysconfdir}/dbus-1/system.d/org.freedesktop.NetworkManager.conf -%{_sysconfdir}/dbus-1/system.d/nm-dispatcher.conf -%{_sysconfdir}/dbus-1/system.d/nm-ifcfg-rh.conf +%{dbus_sys_dir}/org.freedesktop.NetworkManager.conf +%{dbus_sys_dir}/nm-dispatcher.conf +%{dbus_sys_dir}/nm-ifcfg-rh.conf %{_sbindir}/%{name} %{_bindir}/nmcli %{_datadir}/bash-completion/completions/nmcli |