%bcond_with systemd

%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}

%define _unpackaged_files_terminate_build 1

%define gettext_package dbus
%define expat_version           2.0.1
%define dbus_user_uid           81

%global _localstatedir %{_var}
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
%{!?_unitdir:%global _unitdir /lib/systemd/system}
%{!?_userunitdir:%global _userunitdir /usr/lib/systemd/user}

Summary: D-BUS message bus
Summary(ja): D-BUS メッセージバスシステム
Name: dbus
Version: 1.14.10
Release: 1%{?_dist_release}%{?with_systemd:.systemd}
Group: system
Vendor: Project Vine
Distribution: Vine Linux

License: AFL/GPLv2
URL: https://www.freedesktop.org/software/dbus/
Source0: https://dbus.freedesktop.org/releases/dbus/%{name}-%{version}.tar.xz
Source1: 00-start-message-bus.sh
Source2: dbus.init
Source3: dbus.service
Source4: dbus.user.service
Source5: dbus.socket
Source6: dbus.user.socket

# from fedora package

# from gentoo
Patch1000: dbus-enable-elogind.patch

BuildRoot: %{_tmppath}/%{name}-%{version}-root

# default daemon
Requires: %{name}-daemon = %{version}-%{release}

BuildRequires: autoconf-archive
BuildRequires: libtool
BuildRequires: expat-devel >= %{expat_version}
BuildRequires: libxml2-devel
BuildRequires: python-devel
BuildRequires: doxygen
BuildRequires: xmlto
BuildRequires: libxslt
BuildRequires: gettext
BuildRequires: libX11-devel
BuildRequires: libSM-devel
%if %{with systemd}
BuildRequires: systemd-devel
%else
BuildRequires: elogind-devel
%endif

%description
D-BUS is a system for sending messages between applications. It is
used both for the systemwide message bus service, and as a
per-user-login-session messaging facility.

%description -l ja
D-BUS はアプリケーション間でメッセージを送受信するためのシステムです。
システム全体のメッセージバスサービスとしても利用されますが、同様に
ユーザ毎のログインセッションにおけるメッセージ基盤としても利用されます。


%package common
Summary:        D-BUS message bus configuration
Group:          system
BuildArch:      noarch
%if %{with systemd}
%{?systemd_requires}
Requires:       systemd
%endif

%description common
The %{name}-common package provides the configuration and setup files for D-Bus
implementations to provide a System and User Message Bus.


%package daemon
Summary:        D-BUS message bus
Group:          system
%{?systemd_requires}
Requires:       dbus-common = %{version}-%{release}
Requires:       dbus-libs%{?_isa} = %{version}-%{release}
Requires:       dbus-tools = %{version}-%{release}
Requires(pre):  shadow-utils
%if %{with systemd}
%{?systemd_requires}
Requires:       systemd
%else
Requires(post): chkconfig >= 1.3.34
Requires(preun): chkconfig >= 1.3.34
%endif

%description daemon
D-BUS is a system for sending messages between applications. It is
used both for the system-wide message bus service, and as a
per-user-login-session messaging facility.


%package libs
Summary: Libraries for accessing D-BUS
Group: system

%description libs
This package contains lowlevel libraries for accessing D-BUS.


%package tools
Summary:        D-BUS Tools and Utilities
Group:          admin-tools
Requires:       dbus-libs%{?_isa} = %{version}-%{release}

%description tools
Tools and utilities to interact with a running D-Bus Message Bus, provided by
the reference implementation.


%package devel
Summary: Libraries and headers for D-BUS
Summary(ja): D-BUS 用のライブラリとヘッダファイル
Group: programming
Requires: %{name}-libs = %{version}-%{release}
Requires: xml-common

%description devel
Headers and static libraries for D-BUS.


%package x11
Summary: X11-requiring add-ons for D-BUS
Summary(ja): X11 を利用する D-BUS 用ツール
Group: admin-tools
Requires: %{name} = %{version}-%{release}

%description x11
D-BUS contains some tools that require Xlib to be installed, those are
in this separate package so server systems need not install X.


%package doc
Summary: Developer documentation for D-BUS
Group: documentation
Requires: %{name} = %{version}-%{release}
BuildArch: noarch

%description doc
This package contains developer documentation for D-Bus along with
other supporting documentation such as the introspect dtd file.


# compat32
%package -n compat32-%{name}
Summary: D-BUS message bus
Summary(ja): D-BUS メッセージバスシステム
Group: system,legacy

%description -n compat32-%{name}
D-BUS is a system for sending messages between applications. It is
used both for the systemwide message bus service, and as a
per-user-login-session messaging facility.

%description -n compat32-%{name} -l ja
D-BUS はアプリケーション間でメッセージを送受信するためのシステムです。
システム全体のメッセージバスサービスとしても利用されますが、同様に
ユーザ毎のログインセッションにおけるメッセージ基盤としても利用されます。


%package -n compat32-%{name}-devel
Summary: Libraries and headers for D-BUS
Summary(ja): D-BUS 用のライブラリとヘッダファイル
Group: programming,legacy
Requires: compat32-%{name} = %{version}-%{release}
Requires: %{name}-devel = %{version}-%{release}

%description -n compat32-%{name}-devel
Headers and static libraries for D-BUS.


%debug_package


%prep
%setup
%if ! %{with systemd}
%patch1000 -p1 -b .elogind
%endif


%build
# Avoid rpath.
if test -f autogen.sh; then env NOCONFIGURE=1 ./autogen.sh; else autoreconf --ve
rbose --force --install; fi

COMMON_ARGS="--enable-selinux=no \
%if %{with systemd}
		SYSTEMCTL=/bin/systemctl \
		--enable-systemd \
		--with-init-scripts=redhat \
		--with-systemdsystemunitdir=%{_unitdir} \
		--with-systemduserunitdir=%{_userunitdir} \
		--enable-user-session \
		--with-system-pid-file=/run/messagebus.pid \
		--with-system-socket=/run/dbus/system_bus_socket
%else
		--enable-elogind \
		--with-system-pid-file=%{_localstatedir}/run/messagebus.pid \
%endif
		--disable-libaudit \
		--with-dbus-user=dbus \
		--libdir=/%{_lib} --bindir=/bin \
		--libexecdir=/lib/dbus-1 \
		--docdir=%{_pkgdocdir} \
		--sysconfdir=%{_sysconfdir} --exec-prefix=/"

%configure $COMMON_ARGS --disable-tests --disable-verbose-mode --disable-asserts --enable-doxygen-docs --enable-xml-docs
make V=1 %{?_smp_mflags}


%install
rm -rf %{buildroot}

%__make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"

find %{buildroot} -name '*.a' -type f -delete
find %{buildroot} -name '*.la' -type f -delete

install -Dp -m755 %{SOURCE1} %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/00-start-message-bus.sh

# Obsolete, but still widely used, for drop-in configuration snippets.
install --directory %{buildroot}%{_sysconfdir}/dbus-1/session.d
install --directory %{buildroot}%{_sysconfdir}/dbus-1/system.d

install --directory %{buildroot}%{_datadir}/dbus-1/interfaces

%if %{with systemd}
%__make install-data DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"

# 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}%{_unitdir}/messagebus.service

## %find_lang %{gettext_package}
# Delete the old legacy sysv init script
#rm -rf %{buildroot}%{_initrddir}
%else
rm -rf %{buildroot}%{_sysconfdir}/systemd
rm -rf %{buildroot}/lib/systemd
rm -rf %{buildroot}%{_prefix}/lib/systemd
rm -rf %{buildroot}%{_prefix}/lib/sysuserd.d
rm -rf %{buildroot}%{_prefix}/lib/tmpfiles.d
install -Dm755 %{SOURCE2} %{buildroot}%{_initrddir}/messagebus
%endif

install --directory %{buildroot}/var/lib/dbus

install --directory %{buildroot}%{_pkgdocdir}
install -pm 644 -t %{buildroot}%{_pkgdocdir} \
    doc/introspect.dtd doc/introspect.xsl doc/system-activation.txt

# Make sure that the documentation shows up in Devhelp.
install --directory %{buildroot}%{_datadir}/gtk-doc/html
ln -s %{_pkgdocdir} %{buildroot}%{_datadir}/gtk-doc/html/dbus

# Shell wrapper for installed tests, modified from Debian package.
cat > dbus-run-installed-tests <<EOF
#!/bin/sh
# installed-tests wrapper for dbus. Outputs TAP format because why not

set -e

timeout="timeout 300s"
ret=0
i=0
tmpdir=\$(mktemp --directory --tmpdir dbus-run-installed-tests.XXXXXX)

for t in /lib/dbus-1/installed-tests/dbus/test-*; do
    i=\$(( \$i + 1 ))
    echo "# \$i - \$t ..."
    echo "x" > "\$tmpdir/result"
    ( set +e; \$timeout \$t; echo "\$?" > "\$tmpdir/result" ) 2>&1 | sed 's/^/#/'
    e="\$(cat "\$tmpdir/result")"
    case "\$e" in
        (0)
            echo "ok \$i - \$t"
            ;;
        (77)
            echo "ok \$i # SKIP \$t"
            ;;
        (*)
            echo "not ok \$i - \$t (\$e)"
            ret=1
            ;;
    esac
done

rm -rf tmpdir
echo "1..\$i"
exit \$ret
EOF

install -pm 755 -t %{buildroot}/lib/dbus-1 dbus-run-installed-tests

## vine stuff

mkdir -p %{buildroot}%{_libdir}/cmake/DBus1
mv -f \
  %{buildroot}/%{_lib}/cmake/DBus1/DBus1Config.cmake \
  %{buildroot}/%{_lib}/cmake/DBus1/DBus1ConfigVersion.cmake \
  %{buildroot}%{_libdir}/cmake/DBus1/

mkdir -p %{buildroot}/%{_bindir}
mv -f %{buildroot}/bin/dbus-launch %{buildroot}/%{_bindir}/

mkdir -p %{buildroot}/%{_libdir}/dbus-1.0
mv %{buildroot}/%{_lib}/dbus-1.0/include %{buildroot}/%{_libdir}/dbus-1.0/

mkdir -p %{buildroot}/%{_libdir}/pkgconfig
#change the arch-deps.h include directory to /usr/lib[64] instead of /lib[64]
sed -e 's@-I${libdir}@-I${prefix}/%{_lib}@' %{buildroot}/%{_lib}/pkgconfig/dbus-1.pc > %{buildroot}/%{_libdir}/pkgconfig/dbus-1.pc
rm -f %{buildroot}/%{_lib}/pkgconfig/dbus-1.pc

rm -f %{buildroot}/lib/dbus-1/dbus-run-installed-tests

%if %{with systemd}
rm -rf %{buildroot}/var/run/dbus
install -m644 %{SOURCE3} %{buildroot}%{_unitdir}/dbus.service
install -m644 %{SOURCE4} %{buildroot}%{_userunitdir}/dbus.service
install -m644 %{SOURCE5} %{buildroot}%{_unitdir}/dbus.socket
install -m644 %{SOURCE6} %{buildroot}%{_userunitdir}/dbus.socket
%endif


%clean
rm -rf %{buildroot}


%pre daemon
# Add the "dbus" user
/usr/sbin/useradd -c 'System message bus' -u %{dbus_user_uid} \
	-s /sbin/nologin -r -d '/' dbus 2> /dev/null || :

%post daemon
%if %{with systemd}
%systemd_post dbus.service
%systemd_user_post dbus.service
%else
/sbin/chkconfig --add messagebus
/sbin/chkconfig messagebus resetpriorities
%endif

%preun daemon
%if %{with systemd}
%systemd_preun dbus.service
%systemd_user_preun dbus.service
%else
if [ $1 = 0 ]; then
    service messagebus stop > /dev/null 2>&1
    /sbin/chkconfig --del messagebus
fi
if [ -x /sbin/systemctl ]; then
    /sbin/chkconfig --del messagebus
fi
%endif

%postun daemon
%if %{with systemd}
%systemd_postun dbus.service
%systemd_user_postun dbus.service
%endif

%if !%{with systemd}
%triggerpostun daemon -- dbus-daemon < 1.12.16-2
/sbin/chkconfig --add messagebus
/sbin/chkconfig messagebus resetpriorities
%endif

%if %{with systemd}
%post common
%systemd_post dbus.socket
%systemd_user_post dbus.socket

%preun common
%systemd_preun dbus.socket
%systemd_user_preun dbus.socket

%postun common
%systemd_postun dbus.socket
%systemd_user_postun dbus.socket
%endif


%files
# dummy package

%files common
%dir %{_sysconfdir}/dbus-1
%dir %{_sysconfdir}/dbus-1/session.d
%dir %{_sysconfdir}/dbus-1/system.d
%config %{_sysconfdir}/dbus-1/session.conf
%config %{_sysconfdir}/dbus-1/system.conf
%dir %{_datadir}/dbus-1
%dir %{_datadir}/dbus-1/session.d
%dir %{_datadir}/dbus-1/system.d
%{_datadir}/dbus-1/session.conf
%{_datadir}/dbus-1/system.conf
%{_datadir}/dbus-1/services
%{_datadir}/dbus-1/system-services
%{_datadir}/dbus-1/interfaces
%if %{with systemd}
%{_sysusersdir}/dbus.conf
%{_unitdir}/dbus.socket
%{_userunitdir}/dbus.socket
%endif

%files daemon
%defattr(-,root,root)
%{!?_licensedir:%global license %%doc}
%license COPYING
%doc AUTHORS ChangeLog NEWS README
%config %{_sysconfdir}/dbus-1/*.conf
%ghost %dir /run/%{name}
%dir %{_localstatedir}/lib/dbus/
/bin/dbus-daemon
/bin/dbus-cleanup-sockets
/bin/dbus-run-session
/bin/dbus-test-tool
%{_mandir}/man*/dbus-daemon.1.gz
%{_mandir}/man*/dbus-cleanup-sockets.1.gz
%{_mandir}/man*/dbus-run-session.1.gz
%{_mandir}/man1/dbus-test-tool.1.gz
%dir /lib/dbus-1
%attr(4750,root,dbus) /lib/dbus-1/dbus-daemon-launch-helper
%if %{with systemd}
%{_tmpfilesdir}/dbus.conf
%{_unitdir}/dbus.service
%{_unitdir}/messagebus.service
%{_unitdir}/multi-user.target.wants/dbus.service
%{_unitdir}/sockets.target.wants/dbus.socket
%{_userunitdir}/dbus.service
%{_userunitdir}/sockets.target.wants/dbus.socket
%else
%dir %{_localstatedir}/run/dbus
%{_sysconfdir}/rc.d/init.d/*
%endif

%files tools
%license COPYING
/bin/dbus-send
/bin/dbus-monitor
/bin/dbus-update-activation-environment
/bin/dbus-uuidgen
%{_mandir}/man*/dbus-send.1.gz
%{_mandir}/man*/dbus-monitor.1.gz
%{_mandir}/man1/dbus-update-activation-environment.1.gz
%{_mandir}/man*/dbus-uuidgen.1.gz

%files libs
%{!?_licensedir:%global license %%doc}
%license COPYING
/%{_lib}/*dbus-1*.so.*

%files devel
%defattr(-,root,root)
/%{_lib}/lib*.so
%{_libdir}/dbus-1.0/include
%{_libdir}/pkgconfig/*
%{_includedir}/*
%dir %{_libdir}/cmake/DBus1
%{_libdir}/cmake/DBus1/*
%dir %{_datadir}/xml
%dir %{_datadir}/xml/dbus-1
%{_datadir}/xml/dbus-1/*

%files x11
%defattr(-,root,root)
%{_bindir}/dbus-launch
%{_datadir}/man/man*/dbus-launch.1.gz
%{_sysconfdir}/X11/xinit/xinitrc.d/00-start-message-bus.sh

%files doc
%defattr(-,root,root)
%{_pkgdocdir}/*
%{_datadir}/gtk-doc

# compat32
%if %{build_compat32}
%files -n compat32-%{name}
/%{_lib}/*dbus-1*.so.*

%files -n compat32-%{name}-devel
%defattr(-,root,root)
/%{_lib}/lib*.so
%{_libdir}/dbus-1.0/include
%endif


%changelog
* Tue Sep 12 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.14.10-1
- new upstream release.

* Fri Jun 23 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.14.8-1
- new upstream release.

* Thu Oct 13 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.14.4-1
- new upstream release.
- dropped ldconfig scriptlets.

* Wed Jul 22 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.12.20-1
- new upstream release.
- moved dbus-daemon-launch-helper from /lib64/dbus-1 to /lib/dbus-1.

* Fri Jun 12 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.12.18-1
- new upstream release.

* Wed Apr 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.12.16-2
- added subpackages: common, daemon, libs and tools.

* Wed Sep 18 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.12.16-1
- new upstream release.
- built for systemd.

* Sun Dec 16 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.12.12-1
- new upstream release.
- added elogind support.

* Sun Sep 10 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.10.22-1
- new upstream release.

* Sun Aug 02 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.20-1
- new upstream release

* Sun Jun 07 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.18-1
- new upstream release

* Sun Mar 15 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.16-1
- new upstream release

* Sat Jan 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.14-1
- new upstream release

* Mon Dec 01 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.28-1
- new upstream release

* Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.24-1
- new upstream release

* Sun Jul 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.22-1
- new upstream release

* Wed Jun 11 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.20-1
- new upstream release

* Sun Nov 10 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.18-1
- new upstream release

* Fri Sep 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.14-1
- new upstream release

* Sun Apr 28 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.10-1
- new upstream release

* Sun Oct 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.8-2
- remove BuildRequires: audit-libs-devel, libcap-ng-devel

* Sat Oct 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.8-1
- new upstream release
- remove old patches

* Sun Apr 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.20-1
- new upstream release
- add BuildRequires: audit-libs-devel, libcap-ng-devel

* Wed Feb 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.18-1
- new upstream release
- remove Requires: libxml2-python

* Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.16-1
- new upstream release

* Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.14-1
- new upstream release
- drop Patch1
- create -doc sub package

* Sat Dec 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.1-1
- new upstream release

* Sat Oct 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1
- new upstream release

* Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 1.2.24-3
- add BuildRequires: libSM-devel

* Tue Sep 21 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.24-2
- rebuilt with rpm-4.8.1

* Wed Mar 31 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.24-1
- new upstream release
- drop Patch0

* Fri Feb 12 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.2.16-2
- rebuilt with new toolchain

* Sat Sep 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.16-1
- new upstream release

* Mon Jul 20 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.14-1
- new upstream release
- do not restart dbus on upgrade

* Sun May 10 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.2.12-3
- added compat32 package for x86_64 arch support

* Fri Mar 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.12-2
- add Patch10 for workaround deny send_interface
  http://bugs.freedesktop.org/show_bug.cgi?id=18961
  Bug 18961: Skip bare <deny send_interface=""/> for not (method_call|signal) 
  Bare <deny send_interface=""/> rules have a far larger impact than one would think.
  It's really always wrong to use them without also using send_destination.
  - XXX: this should be fixed in each dbus configuration.

* Tue Mar 17 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.12-1
- new upstream release with security fix (CVE-2008-4311)

* Fri Oct 10 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.2.4-1
- new upstream release with security fix (CVE-2008-3834)

* Fri Aug 08 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.3-1
- new upstream release

* Thu Aug 07 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-3
- own the directories /usr/share/dbus-1/{system-services,interfaces}
- set 'dbus' instead of '81' to --with-dbus-user
  
* Sun Aug 03 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-2
- import some patches from fedora
- move dbus-daemon-launch-helper to /%%{_lib}/dbus-1/

* Wed May  7 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.1-1
- new upstream release

* Thu Mar 20 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.20-1vl5
- new upstream release

* Wed Feb 20 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.2-0vl4
- rebuild with expat-2.0.1

* Fri May 11 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.2-0vl3
- rebuild with new environment/toolchain

* Sat Apr 28 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.2-0vl2
- require new chkconfig to reset initscript priorities

* Thu Apr 26 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.2-0vl1
- new upstream release
- split out bindings
- move base binaries and libraries to /bin and /%{_lib}

* Wed Dec 27 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.62-0vl2
- rebuilt for VineSeed

* Thu Dec 21 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.62-0vl1.2
- add Vendor/Distribution tag

* Thu Dec 14 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.62-0vl1.1
- add patch100 for fix CVE-2006-6107

* Wed Nov 01 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.62-0vl1
- new upstream release

* Sat Jun 10 2006 NAKAMURA Kenta <kenta@vinelinux.org> 0.61-0vl2
- disabled dbus-qt
- added BuildConflicts: qt-devel
- removed work around for 64 bit archs

* Sun Mar 05 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.61-0vl1
- new upstream release

* Fri Jan 27 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.60-0vl1
- new upstream release

* Wed Oct 05 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 0.50-0vl1
- new upstream release

* Sun Jul 10 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 0.34-0vl1
- new upstream release
- enable python bindings

* Sat Mar 19 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 0.23-4vl1
- initial build for Vine Linux based on FC package
- disable python bindings
- disable selinux

* Tue Feb 01 2005 John (J5) Palmieri <johnp@redhat.com> - 0.23-4
- Explicitly pass in the pid file location to ./configure instead of
  letting it guess based on the build enviornment

* Mon Jan 31 2005 John (J5) Palmieri <johnp@redhat.com> - 0.23-3
- Add patch to fix random users from connecting to a users session bus

* Fri Jan 21 2005 John (J5) Palmieri <johnp@redhat.com> - 0.23-2
- Add Steve Grubb's SE-Linux audit patch (Bug# 144920)

* Fri Jan 21 2005 John (J5) Palmieri <johnp@redhat.com> - 0.23-1
- Update to upstream version 0.23
- Drop all patches except for the UDI patch as they have been 
  integrated upstream 
- List of API changes:
      * add setgroups() to drop supplementary groups
      * removed dbus_bug_get_with_g_main since it's been replaced by dbus_g_bus_get
      * added support for int64 and uint64 to the python bindings
      * use SerivceOwnerChanges signal instead of ServiceCreated and ServiceDeleted

* Mon Nov  8 2004 Jeremy Katz <katzj@redhat.com> - 0.22-12
- rebuild against python 2.4

* Tue Nov 02 2004 John (J5) Palmieri <johnp@redhat.com>
- Add a requires for glib2-devel in the devel package
- Add SE-Linux backport from Colin Walters that fixes 
  messages getting lost in SE-Linux contexts

* Wed Oct 13 2004 John (J5) Palmieri <johnp@redhat.com>
- Bump up release and rebuild

* Mon Oct 11 2004 Tim Waugh <twaugh@redhat.com>
- Run /sbin/ldconfig for glib sub-package (bug #134062).

* Wed Sep 22 2004 John (J5) Palmieri <johnp@redhat.com>
- Fixed patch to use dbus-1 instead of dbus-1.0
- (configure.in): Exported just the datadir instead of
  the full path to the dbus datadir for consistency

* Wed Sep 22 2004 John (J5) Palmieri <johnp@redhat.com>
- Adding patch to move /usr/lib/dbus-1.0/services to
  /usr/share/dbus-1.0/services 

* Thu Sep 16 2004 John (J5) Palmieri <johnp@redhat.com>
- reverting BuildRequires: redhat-release because of issues with build system
- added precompiled version of the messagebus init script

* Thu Sep 16 2004 John (J5) Palmieri <johnp@redhat.com>
- changed /etc/redhat-release to the package redhat-release

* Thu Sep 16 2004 John (J5) Palmieri <johnp@redhat.com>
- added python int64 patch from davidz

* Thu Sep 16 2004 John (J5) Palmieri <johnp@redhat.com>
- added BuildRequires: /etc/redhat-release (RH Bug #132436)

* Wed Aug 18 2004 John (J5) Palmieri <johnp@redhat.com>
- Added Steve Grubb's spec file patch (RH Bug #130201)

* Mon Aug 16 2004 John (J5) Palmieri <johnp@redhat.com>
- Disabled dbus-gtk since dbus-viewer doesn't do anything right now

* Mon Aug 16 2004 John (J5) Palmieri <johnp@redhat.com>
- Moved dbus-viewer to new dbus-gtk package so that dbus-glib
  no longer requires X or GTK libraries. (RH Bug #130029)

* Thu Aug 12 2004 John (J5) Palmieri <johnp@redhat.com>
- Update to new 0.22 release

* Thu Aug 05 2004 John (J5) Palmieri <johnp@redhat.com> 
- Added BuildRequires for libselinux-devel and Requires for libselinux

* Mon Aug 02 2004 Colin Walters <walters@redhat.com>
- Add SE-DBus patch

* Fri Jul 30 2004 John (J5) Palmieri <johnp@redhat.com>
- Added lib64 workaround for python bindings installing to
  the wrong lib directory on 64 bit archs

* Fri Jul 30 2004 John (J5) Palmieri <johnp@redhat.com>
- Updated console-auth patch
- rebuild
 
* Thu Jul 22 2004 John (J5) Palmieri <johnp@redhat.com>
- Update to upstream CVS build
- Added console-auth patch

* Fri Jun 25 2004 John (J5) Palmieri <johnp@redhat.com>
- Workaround added to fix gcc-3.4 bug on ia64

* Fri Jun 25 2004 John (J5) Palmieri <johnp@redhat.com>
- require new Pyrex version and see if it builds this time

* Fri Jun 25 2004 John (J5) Palmieri <johnp@redhat.com>
- rebuild with updated Pyrex (0.9.2.1)

* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt

* Fri Jun 04 2004 John (J5) Palmieri <johnp@redhat.com>
- Moved dbus-viewer, dbus-monitor and dbus-glib-tool 
  into the dbus-glib package so that the main dbus
  package does not depend on glib (Bug #125285) 

* Thu Jun 03 2004 John (J5) Palmieri <johnp@redhat.com>
- rebuilt

* Thu May 27 2004 John (J5) Palmieri <johnp@redhat.com>
- added my Python patch
- took out the qt build requires
- added a gtk+ build requires 

* Fri Apr 23 2004 John (J5) Palmieri <johnp@redhat.com>
- Changed build requirement to version 0.9-3 of Pyrex
  to fix problem with builing on x86_64

* Tue Apr 20 2004 John (J5) Palmieri <johnp@redhat.com>
- update to upstream 0.21
- removed dbus-0.20-varargs.patch patch (fixed upstream)

* Mon Apr 19 2004 John (J5) Palmieri <johnp@redhat.com>
- added a dbus-python package to generate python bindings
- added Pyrex build dependacy

* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt

* Wed Feb 25 2004 Bill Nottingham <notting@redhat.com> 0.20-4
- fix dbus error functions on x86-64 (#116324)
- add prereq (#112027)

* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt

* Fri Feb 13 2004 Tim Waugh <twaugh@redhat.com>
- Conflict with cups prior to configuration file change, so that the
  %%postun service condrestart works.

* Wed Feb 11 2004 Havoc Pennington <hp@redhat.com> 0.20-2
- rebuild in fc2, cups now updated

* Wed Jan  7 2004 Bill Nottingham <notting@redhat.com> 0.20-1
- update to upstream 0.20

* Thu Oct 16 2003 Havoc Pennington <hp@redhat.com> 0.13-6
- hmm, dbus doesn't support uids in the config file. fix.

* Thu Oct 16 2003 Havoc Pennington <hp@redhat.com> 0.13-5
- put uid instead of username in the config file, to keep things working with name change

* Thu Oct 16 2003 Havoc Pennington <hp@redhat.com> 0.13-4
- make subpackages require the specific release, not just version, of base package

* Thu Oct 16 2003 Havoc Pennington <hp@redhat.com> 0.13-3
- change system user "messagebus" -> "dbus" to be under 8 chars

* Mon Sep 29 2003 Havoc Pennington <hp@redhat.com> 0.13-2
- see if removing qt subpackage for now will get us through the build system,
  qt bindings not useful yet anyway

* Sun Sep 28 2003 Havoc Pennington <hp@redhat.com> 0.13-1
- 0.13 fixes a little security oops

* Mon Aug  4 2003 Havoc Pennington <hp@redhat.com> 0.11.91-3
- break the tiny dbus-launch that depends on X into separate package
  so a CUPS server doesn't need X installed

* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
- rebuilt

* Sat May 17 2003 Havoc Pennington <hp@redhat.com> 0.11.91-1
- 0.11.91 cvs snap properly merges system.d

* Fri May 16 2003 Havoc Pennington <hp@redhat.com> 0.11.90-1
- build a cvs snap with a few more fixes

* Fri May 16 2003 Havoc Pennington <hp@redhat.com> 0.11-2
- fix a crash that was breaking cups

* Thu May 15 2003 Havoc Pennington <hp@redhat.com> 0.11-1
- 0.11

* Thu May 15 2003 Havoc Pennington <hp@redhat.com> 0.10.90-1
- use rc.d/init.d not init.d, bug #90192
- include the new man pages

* Fri Apr 11 2003 Havoc Pennington <hp@redhat.com> 0.9-1
- 0.9
- export QTDIR explicitly
- re-enable qt, the problem was most likely D-BUS configure

* Tue Apr  1 2003 Havoc Pennington <hp@redhat.com> 0.6.94-1
- update from CVS with a fix to set uid after gid

* Tue Apr  1 2003 Havoc Pennington <hp@redhat.com> 0.6.93-1
- new cvs snap that actually forks to background and changes 
  user it's running as and so forth
- create our system user in pre

* Mon Mar 31 2003 Havoc Pennington <hp@redhat.com> 0.6.92-1
- fix for "make check" test that required a home directory

* Mon Mar 31 2003 Havoc Pennington <hp@redhat.com> 0.6.91-1
- disable qt for now because beehive hates me
- pull a slightly newer cvs snap that creates socket directory
- cat the make check log after make check fails

* Mon Mar 31 2003 Havoc Pennington <hp@redhat.com> 0.6.90-1
- initial build

