Drop SysV support
Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
parent
a14a623e26
commit
0115babb9e
37
dbus.spec
37
dbus.spec
@ -10,7 +10,7 @@ Summary: D-BUS message bus
|
|||||||
Name: dbus
|
Name: dbus
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 1.4.10
|
Version: 1.4.10
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
URL: http://www.freedesktop.org/software/dbus/
|
URL: http://www.freedesktop.org/software/dbus/
|
||||||
#VCS: git:git://git.freedesktop.org/git/dbus/dbus
|
#VCS: git:git://git.freedesktop.org/git/dbus/dbus
|
||||||
Source0: http://dbus.freedesktop.org/releases/dbus/%{name}-%{version}.tar.gz
|
Source0: http://dbus.freedesktop.org/releases/dbus/%{name}-%{version}.tar.gz
|
||||||
@ -29,11 +29,12 @@ BuildRequires: gettext
|
|||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
BuildRequires: xmlto
|
BuildRequires: xmlto
|
||||||
BuildRequires: libxslt
|
BuildRequires: libxslt
|
||||||
|
BuildRequires: systemd-units
|
||||||
Requires: chkconfig >= 1.3.26
|
Requires(post): systemd-units systemd-sysv chkconfig
|
||||||
|
Requires(preun): systemd-units
|
||||||
|
Requires(postun): systemd-units
|
||||||
Requires: libselinux >= %{libselinux_version}
|
Requires: libselinux >= %{libselinux_version}
|
||||||
Requires: dbus-libs = %{epoch}:%{version}-%{release}
|
Requires: dbus-libs = %{epoch}:%{version}-%{release}
|
||||||
Requires: systemd-units
|
|
||||||
Requires(pre): /usr/sbin/useradd
|
Requires(pre): /usr/sbin/useradd
|
||||||
|
|
||||||
# Conflict with cups prior to configuration file change, so that the
|
# Conflict with cups prior to configuration file change, so that the
|
||||||
@ -134,6 +135,9 @@ mkdir -p %{buildroot}%{_datadir}/dbus-1/interfaces
|
|||||||
ln -s dbus.service %{buildroot}/lib/systemd/system/messagebus.service
|
ln -s dbus.service %{buildroot}/lib/systemd/system/messagebus.service
|
||||||
|
|
||||||
## %find_lang %{gettext_package}
|
## %find_lang %{gettext_package}
|
||||||
|
# Delete the old legacy sysv init script
|
||||||
|
rm -rf %{buildroot}%{_initrddir}
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
@ -147,16 +151,29 @@ rm -rf %{buildroot}
|
|||||||
%post libs -p /sbin/ldconfig
|
%post libs -p /sbin/ldconfig
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/chkconfig --add messagebus
|
if [ $1 -eq 1 ] ; then
|
||||||
/sbin/chkconfig messagebus resetpriorities
|
/bin/systemctl enable dbus.service >/dev/null 2>&1 || :
|
||||||
|
fi
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 = 0 ]; then
|
if [ $1 = 0 ]; then
|
||||||
/sbin/service messagebus stop
|
/bin/systemctl --no-reload dbus.service > /dev/null 2>&1 || :
|
||||||
/sbin/chkconfig --del messagebus
|
/bin/systemctl stop dbus.service > /dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%postun libs -p /sbin/ldconfig
|
%postun libs -p /sbin/ldconfig
|
||||||
|
%postun
|
||||||
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||||
|
if [ $1 -ge 1 ] ; then
|
||||||
|
/bin/systemctl try-restart dbus.service >/dev/null 2>&1 || :
|
||||||
|
fi
|
||||||
|
|
||||||
|
%triggerun -- dbus < 1.4.10-2
|
||||||
|
%{_bindir}/systemd-sysv-convert --save messagebus >/dev/null 2>&1 ||:
|
||||||
|
/bin/systemctl enable dbus.service >/dev/null 2>&1
|
||||||
|
/sbin/chkconfig --del messagebus >/dev/null 2>&1 || :
|
||||||
|
/bin/systemctl try-restart dbus.service >/dev/null 2>&1 || :
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -165,7 +182,6 @@ fi
|
|||||||
|
|
||||||
%dir %{_sysconfdir}/dbus-1
|
%dir %{_sysconfdir}/dbus-1
|
||||||
%config %{_sysconfdir}/dbus-1/*.conf
|
%config %{_sysconfdir}/dbus-1/*.conf
|
||||||
%{_sysconfdir}/rc.d/init.d/*
|
|
||||||
%dir %{_sysconfdir}/dbus-1/system.d
|
%dir %{_sysconfdir}/dbus-1/system.d
|
||||||
%dir %{_sysconfdir}/dbus-1/session.d
|
%dir %{_sysconfdir}/dbus-1/session.d
|
||||||
%ghost %dir %{_localstatedir}/run/dbus
|
%ghost %dir %{_localstatedir}/run/dbus
|
||||||
@ -221,6 +237,9 @@ fi
|
|||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Aug 03 2011 David Zeuthen <davidz@redhat.com> - 1:1.4.10-2
|
||||||
|
- Drop SysV support, #697523 (from Jóhann B. Guðmundsson <johannbg@gmail.com>)
|
||||||
|
|
||||||
* Thu Jun 2 2011 Colin Walters <walters@verbum.org> - 1:1.4.10-1
|
* Thu Jun 2 2011 Colin Walters <walters@verbum.org> - 1:1.4.10-1
|
||||||
- New upstream version
|
- New upstream version
|
||||||
- Drop XML docs patch which is now upstream
|
- Drop XML docs patch which is now upstream
|
||||||
|
Loading…
Reference in New Issue
Block a user