git snapshot with systemd activation

This commit is contained in:
Lennart Poettering 2010-07-09 21:40:17 +00:00
parent 48a26187c9
commit a0c9f52a23
3 changed files with 42 additions and 27 deletions

View File

@ -1 +1 @@
dbus-1.3.1.tar.gz dbus-1.3.2.885483.tar.gz

View File

@ -6,14 +6,16 @@
%define dbus_user_uid 81 %define dbus_user_uid 81
%define _default_patch_fuzz 999 %define _default_patch_fuzz 999
%define githash .885483
Summary: D-BUS message bus Summary: D-BUS message bus
Name: dbus Name: dbus
Epoch: 1 Epoch: 1
Version: 1.3.1 Version: 1.3.2
Release: 1%{?dist} Release: 0.0%{?githash}%{?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}%{?githash}.tar.gz
Source1: doxygen_to_devhelp.xsl Source1: doxygen_to_devhelp.xsl
Source2: 00-start-message-bus.sh Source2: 00-start-message-bus.sh
License: GPLv2+ or AFL License: GPLv2+ or AFL
@ -34,6 +36,7 @@ BuildRequires: libxslt
Requires: chkconfig >= 1.3.26 Requires: chkconfig >= 1.3.26
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
@ -89,7 +92,7 @@ D-BUS contains some tools that require Xlib to be installed, those are
in this separate package so server systems need not install X. in this separate package so server systems need not install X.
%prep %prep
%setup -q %setup -q -n %{name}-%{version}
# For some reason upstream ships these files as executable # For some reason upstream ships these files as executable
# Make sure they are not # Make sure they are not
@ -105,7 +108,7 @@ COMMON_ARGS="--enable-libaudit --enable-selinux=yes --with-init-scripts=redhat -
# leave verbose mode so people can debug their apps but make sure to # leave verbose mode so people can debug their apps but make sure to
# turn it off on stable releases with --disable-verbose-mode # turn it off on stable releases with --disable-verbose-mode
%configure $COMMON_ARGS --disable-tests --disable-asserts --enable-doxygen-docs --enable-xml-docs %configure $COMMON_ARGS --disable-tests --disable-asserts --enable-doxygen-docs --enable-xml-docs --with-systemdsystemunitdir=/lib/systemd/system/
make make
doxygen Doxyfile doxygen Doxyfile
@ -148,6 +151,11 @@ install -D -m755 %{SOURCE2} %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/00-st
mkdir -p %{buildroot}%{_datadir}/dbus-1/interfaces mkdir -p %{buildroot}%{_datadir}/dbus-1/interfaces
# Make sure that when somebody asks for D-Bus under the name of the
# old SysV script, that he ends up with the standard dbus.service name
# now.
ln -s dbus.service %{buildroot}/lib/systemd/system/messagebus.service
## %find_lang %{gettext_package} ## %find_lang %{gettext_package}
%clean %clean
@ -164,11 +172,13 @@ rm -rf %{buildroot}
%post %post
/sbin/chkconfig --add messagebus /sbin/chkconfig --add messagebus
/sbin/chkconfig messagebus resetpriorities /sbin/chkconfig messagebus resetpriorities
/usr/bin/systemd-install --realize=reload enable dbus.service >/dev/null 2>&1 || :
%preun %preun
if [ $1 = 0 ]; then if [ $1 = 0 ]; then
/sbin/service messagebus stop /sbin/service messagebus stop
/sbin/chkconfig --del messagebus /sbin/chkconfig --del messagebus
/usr/bin/systemd-install --realize=reload disable dbus.service >/dev/null 2>&1 || :
fi fi
%postun libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig
@ -204,7 +214,10 @@ fi
# See doc/system-activation.txt in source tarball for the rationale # See doc/system-activation.txt in source tarball for the rationale
# behind these permissions # behind these permissions
%attr(4750,root,dbus) /%{_lib}/dbus-1/dbus-daemon-launch-helper %attr(4750,root,dbus) /%{_lib}/dbus-1/dbus-daemon-launch-helper
/lib/systemd/system/dbus.service
/lib/systemd/system/dbus.socket
/lib/systemd/system/dbus.target.wants/dbus.socket
/lib/systemd/system/messagebus.service
%files libs %files libs
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -232,6 +245,9 @@ fi
%{_includedir}/* %{_includedir}/*
%changelog %changelog
* Wed Jul 9 2010 Lennart Poettering <lpoetter@redhat.com> - 1:1.3.2-0.0.885483
- git Snapshot with systemd activation
* Wed Jun 23 2010 Lennart Poettering <lpoetter@redhat.com> - 1:1.3.1-1 * Wed Jun 23 2010 Lennart Poettering <lpoetter@redhat.com> - 1:1.3.1-1
- New upstream release - New upstream release
@ -265,7 +281,7 @@ fi
these cases were likely to have dbus installed already (via comps). these cases were likely to have dbus installed already (via comps).
If they don't, well one turned to the wrong page in the choose your If they don't, well one turned to the wrong page in the choose your
own adventure book. own adventure book.
* Tue Jan 12 2010 Matthias Clasen <mclasen@redhat.com> - 1:1.2.16-10 * Tue Jan 12 2010 Matthias Clasen <mclasen@redhat.com> - 1:1.2.16-10
- Don't link libdub against libcap-ng - Don't link libdub against libcap-ng
@ -428,8 +444,8 @@ at the end of Xsession
* Fri Sep 14 2007 Dan Walsh <dwalsh@redhat.com> - 1.1.2-5%{?dist} * Fri Sep 14 2007 Dan Walsh <dwalsh@redhat.com> - 1.1.2-5%{?dist}
- Reverse we_were_root check to setpcap if we were root. Also only init - Reverse we_were_root check to setpcap if we were root. Also only init
audit if we were root. So error dbus message will not show up when policy audit if we were root. So error dbus message will not show up when policy
reload happens. dbus -session will no longer try to send audit message, reload happens. dbus -session will no longer try to send audit message,
only system will. only system will.
* Tue Aug 28 2007 David Zeuthen <davidz@redhat.com> - 1.1.2-4%{?dist} * Tue Aug 28 2007 David Zeuthen <davidz@redhat.com> - 1.1.2-4%{?dist}
@ -441,7 +457,7 @@ only system will.
* Wed Aug 01 2007 David Zeuthen <davidz@redhat.com> - 1.1.2-2%{?dist} * Wed Aug 01 2007 David Zeuthen <davidz@redhat.com> - 1.1.2-2%{?dist}
- Move system bus activation helper to /{lib,lib64}/dbus-1. Also set - Move system bus activation helper to /{lib,lib64}/dbus-1. Also set
the correct mode and permissions. the correct mode and permissions.
- Own the directory /usr/share/dbus-1/system-services - Own the directory /usr/share/dbus-1/system-services
- Delete the diretory /{lib,lib64}/dbus-1.0 as it's not used - Delete the diretory /{lib,lib64}/dbus-1.0 as it's not used
- Pass 'dbus' instead of 81 as --with-dbus-user; otherwise the setuid - Pass 'dbus' instead of 81 as --with-dbus-user; otherwise the setuid
@ -487,7 +503,7 @@ only system will.
* Mon Nov 20 2006 Ray Strode <rstrode@redhat.com> - 1.0.1-1 * Mon Nov 20 2006 Ray Strode <rstrode@redhat.com> - 1.0.1-1
- Update to 1.0.1 - Update to 1.0.1
- Apply patch from Thiago Macieira <thiago@kde.org> to - Apply patch from Thiago Macieira <thiago@kde.org> to
fix failed assertion in threading implementation fix failed assertion in threading implementation
- Drop some crazy looking build time speed optimization - Drop some crazy looking build time speed optimization
@ -525,7 +541,7 @@ only system will.
- Only audit on the system bus - Only audit on the system bus
* Fri Aug 18 2006 John (J5) Palmieri <johnp@redhat.com> - 0.92-1 * Fri Aug 18 2006 John (J5) Palmieri <johnp@redhat.com> - 0.92-1
- Update to 0.92 - Update to 0.92
- remove old patches - remove old patches
* Thu Jul 22 2006 John (J5) Palmieri <johnp@redhat.com> - 0.90-8 * Thu Jul 22 2006 John (J5) Palmieri <johnp@redhat.com> - 0.90-8
@ -566,7 +582,7 @@ only system will.
* Tue Jun 6 2006 Matthias Clasen <mclasen@redhat.com> 0.61-6 * Tue Jun 6 2006 Matthias Clasen <mclasen@redhat.com> 0.61-6
- Rebuild - Rebuild
* Wed May 17 2006 Karsten Hopp <karsten@redhat.de> 0.61-5.2 * Wed May 17 2006 Karsten Hopp <karsten@redhat.de> 0.61-5.2
- add buildrequires libICE-devel, libSM-devel, libcap-devel - add buildrequires libICE-devel, libSM-devel, libcap-devel
- change buildrequires form libX11 to libX11-devel - change buildrequires form libX11 to libX11-devel
@ -700,7 +716,7 @@ uint16's in the python bindings
* Wed Mar 23 2005 John (J5) Palmieri <johnp@redhat.com> - 0.31-4 * Wed Mar 23 2005 John (J5) Palmieri <johnp@redhat.com> - 0.31-4
- Pyrex has been patched to generate gcc4.0 complient code - Pyrex has been patched to generate gcc4.0 complient code
- Rebuild for gcc4.0 - Rebuild for gcc4.0
* Wed Mar 16 2005 John (J5) Palmieri <johnp@redhat.com> - 0.31-3 * Wed Mar 16 2005 John (J5) Palmieri <johnp@redhat.com> - 0.31-3
- change compat-gcc requirement to compat-gcc-32 - change compat-gcc requirement to compat-gcc-32
- rebuild with gcc 3.2 - rebuild with gcc 3.2
@ -729,8 +745,8 @@ uint16's in the python bindings
* Fri Jan 21 2005 John (J5) Palmieri <johnp@redhat.com> - 0.23-1 * Fri Jan 21 2005 John (J5) Palmieri <johnp@redhat.com> - 0.23-1
- Update to upstream version 0.23 - Update to upstream version 0.23
- Drop all patches except for the UDI patch as they have been - Drop all patches except for the UDI patch as they have been
integrated upstream integrated upstream
- List of API changes: - List of API changes:
* add setgroups() to drop supplementary groups * add setgroups() to drop supplementary groups
* removed dbus_bug_get_with_g_main since it's been replaced by dbus_g_bus_get * removed dbus_bug_get_with_g_main since it's been replaced by dbus_g_bus_get
@ -742,7 +758,7 @@ uint16's in the python bindings
* Tue Nov 02 2004 John (J5) Palmieri <johnp@redhat.com> * Tue Nov 02 2004 John (J5) Palmieri <johnp@redhat.com>
- Add a requires for glib2-devel in the devel package - Add a requires for glib2-devel in the devel package
- Add SE-Linux backport from Colin Walters that fixes - Add SE-Linux backport from Colin Walters that fixes
messages getting lost in SE-Linux contexts messages getting lost in SE-Linux contexts
* Wed Oct 13 2004 John (J5) Palmieri <johnp@redhat.com> * Wed Oct 13 2004 John (J5) Palmieri <johnp@redhat.com>
@ -758,7 +774,7 @@ uint16's in the python bindings
* Wed Sep 22 2004 John (J5) Palmieri <johnp@redhat.com> * Wed Sep 22 2004 John (J5) Palmieri <johnp@redhat.com>
- Adding patch to move /usr/lib/dbus-1.0/services to - Adding patch to move /usr/lib/dbus-1.0/services to
/usr/share/dbus-1.0/services /usr/share/dbus-1.0/services
* Thu Sep 16 2004 John (J5) Palmieri <johnp@redhat.com> * Thu Sep 16 2004 John (J5) Palmieri <johnp@redhat.com>
- reverting BuildRequires: redhat-release because of issues with build system - reverting BuildRequires: redhat-release because of issues with build system
@ -786,7 +802,7 @@ uint16's in the python bindings
* Thu Aug 12 2004 John (J5) Palmieri <johnp@redhat.com> * Thu Aug 12 2004 John (J5) Palmieri <johnp@redhat.com>
- Update to new 0.22 release - Update to new 0.22 release
* Thu Aug 05 2004 John (J5) Palmieri <johnp@redhat.com> * Thu Aug 05 2004 John (J5) Palmieri <johnp@redhat.com>
- Added BuildRequires for libselinux-devel and Requires for libselinux - Added BuildRequires for libselinux-devel and Requires for libselinux
* Tue Aug 02 2004 Colin Walters <walters@redhat.com> * Tue Aug 02 2004 Colin Walters <walters@redhat.com>
@ -799,7 +815,7 @@ uint16's in the python bindings
* Fri Jul 30 2004 John (J5) Palmieri <johnp@redhat.com> * Fri Jul 30 2004 John (J5) Palmieri <johnp@redhat.com>
- Updated console-auth patch - Updated console-auth patch
- rebuild - rebuild
* Thu Jul 22 2004 John (J5) Palmieri <johnp@redhat.com> * Thu Jul 22 2004 John (J5) Palmieri <johnp@redhat.com>
- Update to upstream CVS build - Update to upstream CVS build
- Added console-auth patch - Added console-auth patch
@ -817,9 +833,9 @@ uint16's in the python bindings
- rebuilt - rebuilt
* Fri Jun 04 2004 John (J5) Palmieri <johnp@redhat.com> * Fri Jun 04 2004 John (J5) Palmieri <johnp@redhat.com>
- Moved dbus-viewer, dbus-monitor and dbus-glib-tool - Moved dbus-viewer, dbus-monitor and dbus-glib-tool
into the dbus-glib package so that the main dbus into the dbus-glib package so that the main dbus
package does not depend on glib (Bug #125285) package does not depend on glib (Bug #125285)
* Thu Jun 03 2004 John (J5) Palmieri <johnp@redhat.com> * Thu Jun 03 2004 John (J5) Palmieri <johnp@redhat.com>
- rebuilt - rebuilt
@ -827,7 +843,7 @@ uint16's in the python bindings
* Thu May 27 2004 John (J5) Palmieri <johnp@redhat.com> * Thu May 27 2004 John (J5) Palmieri <johnp@redhat.com>
- added my Python patch - added my Python patch
- took out the qt build requires - took out the qt build requires
- added a gtk+ build requires - added a gtk+ build requires
* Fri Apr 23 2004 John (J5) Palmieri <johnp@redhat.com> * Fri Apr 23 2004 John (J5) Palmieri <johnp@redhat.com>
- Changed build requirement to version 0.9-3 of Pyrex - Changed build requirement to version 0.9-3 of Pyrex
@ -912,7 +928,7 @@ uint16's in the python bindings
- update from CVS with a fix to set uid after gid - update from CVS with a fix to set uid after gid
* Tue Apr 1 2003 Havoc Pennington <hp@redhat.com> 0.6.93-1 * Tue Apr 1 2003 Havoc Pennington <hp@redhat.com> 0.6.93-1
- new cvs snap that actually forks to background and changes - new cvs snap that actually forks to background and changes
user it's running as and so forth user it's running as and so forth
- create our system user in pre - create our system user in pre
@ -926,4 +942,3 @@ uint16's in the python bindings
* Mon Mar 31 2003 Havoc Pennington <hp@redhat.com> 0.6.90-1 * Mon Mar 31 2003 Havoc Pennington <hp@redhat.com> 0.6.90-1
- initial build - initial build

View File

@ -1 +1 @@
1aab02bdcac4d662d3760896790f0ede dbus-1.3.1.tar.gz 44f39ff84282728bf65bdad31461a973 dbus-1.3.2.885483.tar.gz