Package init
This commit is contained in:
parent
33f31bc832
commit
247e3c2b27
14
00-start-message-bus.sh
Normal file
14
00-start-message-bus.sh
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Copyright (C) 2008 Red Hat, Inc.
|
||||||
|
#
|
||||||
|
# All rights reserved. This copyrighted material is made available to anyone
|
||||||
|
# wishing to use, modify, copy, or redistribute it subject to the terms and
|
||||||
|
# conditions of the GNU General Public License version 2.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
#
|
||||||
|
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
|
||||||
|
eval `dbus-launch --sh-syntax --exit-with-session`
|
||||||
|
fi
|
||||||
12
dbus.spec
12
dbus.spec
@ -1,17 +1,20 @@
|
|||||||
Name: dbus
|
Name: dbus
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 1.12.16
|
Version: 1.12.16
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: System Message Bus
|
Summary: System Message Bus
|
||||||
License: AFLv2.1 or GPLv2+
|
License: AFLv2.1 or GPLv2+
|
||||||
URL: http://www.freedesktop.org/Software/dbus/
|
URL: http://www.freedesktop.org/Software/dbus/
|
||||||
Source0: https://dbus.freedesktop.org/releases/dbus/%{name}-%{version}.tar.gz
|
Source0: https://dbus.freedesktop.org/releases/dbus/%{name}-%{version}.tar.gz
|
||||||
|
Source1: 00-start-message-bus.sh
|
||||||
|
|
||||||
Patch9000: bugfix-let-systemd-restart-dbus-when-the-it-enters-failed.patch
|
Patch9000: bugfix-let-systemd-restart-dbus-when-the-it-enters-failed.patch
|
||||||
|
|
||||||
BuildRequires: systemd-devel expat-devel libselinux-devel audit-libs-devel doxygen xmlto cmake
|
BuildRequires: systemd-devel expat-devel libselinux-devel audit-libs-devel doxygen xmlto cmake
|
||||||
|
BuildRequires: autoconf-archive libtool libX11-devel libcap-ng-devel libxslt
|
||||||
|
|
||||||
Requires: systemd libselinux shadow
|
Requires: systemd libselinux shadow
|
||||||
|
Requires(pre): shadow
|
||||||
|
|
||||||
Obsoletes: %{name}-common %{name}-daemon %{name}-tools %{name}-libs %{name}-x11
|
Obsoletes: %{name}-common %{name}-daemon %{name}-tools %{name}-libs %{name}-x11
|
||||||
|
|
||||||
@ -60,7 +63,7 @@ Man pages and other related documents for D-Bus.
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
install -Dp -m755 %{SOURCE1} %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/00-start-message-bus.sh
|
||||||
install -d $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/session.d
|
install -d $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/session.d
|
||||||
install -d $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d
|
install -d $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d
|
||||||
install -d $RPM_BUILD_ROOT%{_datadir}/dbus-1/interfaces
|
install -d $RPM_BUILD_ROOT%{_datadir}/dbus-1/interfaces
|
||||||
@ -140,7 +143,7 @@ make check
|
|||||||
%{_bindir}/dbus-launch
|
%{_bindir}/dbus-launch
|
||||||
|
|
||||||
%{_libdir}/*dbus-1*.so.*
|
%{_libdir}/*dbus-1*.so.*
|
||||||
|
%{_sysconfdir}/X11/xinit/xinitrc.d/00-start-message-bus.sh
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -161,6 +164,9 @@ make check
|
|||||||
%exclude %{_pkgdocdir}/README
|
%exclude %{_pkgdocdir}/README
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:1.12.16-4
|
||||||
|
- Add build requires to add runtime requires and add a start-message-bus.sh
|
||||||
|
|
||||||
* Tue Sep 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:1.12.16-3
|
* Tue Sep 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:1.12.16-3
|
||||||
- Adjust requires 'shadow-utils' to 'shadow'
|
- Adjust requires 'shadow-utils' to 'shadow'
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user