- update to 0.90
- split out bindings
This commit is contained in:
parent
b73b94f2d4
commit
5a119b403b
@ -12,3 +12,4 @@ dbus-0.50.tar.gz
|
|||||||
dbus-0.60.tar.gz
|
dbus-0.60.tar.gz
|
||||||
dbus-0.61.tar.gz
|
dbus-0.61.tar.gz
|
||||||
dbus-0.62.tar.gz
|
dbus-0.62.tar.gz
|
||||||
|
dbus-0.90.tar.gz
|
||||||
|
225
dbus.spec
225
dbus.spec
@ -1,25 +1,14 @@
|
|||||||
%define pyver %(python -c 'import sys ; print sys.version[:3]')
|
|
||||||
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_pytho\n_lib()")}
|
|
||||||
|
|
||||||
%define gettext_package dbus
|
%define gettext_package dbus
|
||||||
|
|
||||||
%define expat_version 1.95.5
|
%define expat_version 1.95.5
|
||||||
%define glib2_version 2.2.0
|
|
||||||
%define qt_basever 3.3
|
|
||||||
%define qt_version 3.3.0
|
|
||||||
%define pyrex_version 0.9.3
|
|
||||||
%define gtk2_version 2.4.0
|
|
||||||
%define libselinux_version 1.15.2
|
%define libselinux_version 1.15.2
|
||||||
|
|
||||||
%define dbus_user_uid 81
|
%define dbus_user_uid 81
|
||||||
|
|
||||||
# Mono only availible on these:
|
|
||||||
%define mono_archs %ix86 x86_64 ppc ia64 armv4l sparc
|
|
||||||
|
|
||||||
Summary: D-BUS message bus
|
Summary: D-BUS message bus
|
||||||
Name: dbus
|
Name: dbus
|
||||||
Version: 0.62
|
Version: 0.90
|
||||||
Release: 1.1
|
Release: 1
|
||||||
URL: http://www.freedesktop.org/software/dbus/
|
URL: http://www.freedesktop.org/software/dbus/
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
License: AFL/GPL
|
License: AFL/GPL
|
||||||
@ -30,32 +19,17 @@ Requires: chkconfig >= 1.3.26
|
|||||||
BuildPreReq: libtool
|
BuildPreReq: libtool
|
||||||
#BuildRequires: redhat-release
|
#BuildRequires: redhat-release
|
||||||
BuildRequires: expat-devel >= %{expat_version}
|
BuildRequires: expat-devel >= %{expat_version}
|
||||||
BuildRequires: libxml2-devel
|
|
||||||
BuildRequires: glib2-devel >= %{glib2_version}
|
|
||||||
#BuildRequires: qt-devel >= %{qt_version}
|
|
||||||
BuildRequires: Pyrex >= %{pyrex_version}
|
|
||||||
#BuildRequires: gtk2-devel >= %{gtk_version}
|
|
||||||
BuildRequires: libselinux-devel >= %{libselinux_version}
|
BuildRequires: libselinux-devel >= %{libselinux_version}
|
||||||
BuildRequires: audit-libs-devel >= 0.9
|
BuildRequires: audit-libs-devel >= 0.9
|
||||||
BuildRequires: libX11-devel
|
BuildRequires: libX11-devel
|
||||||
BuildRequires: libICE-devel
|
|
||||||
BuildRequires: libSM-devel
|
|
||||||
BuildRequires: libcap-devel
|
BuildRequires: libcap-devel
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
|
|
||||||
%ifarch %mono_archs
|
|
||||||
BuildRequires: mono-devel gtk-sharp
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Requires: libselinux >= %{libselinux_version}
|
Requires: libselinux >= %{libselinux_version}
|
||||||
|
|
||||||
Conflicts: cups < 1:1.1.20-4
|
Conflicts: cups < 1:1.1.20-4
|
||||||
|
|
||||||
Patch1: dbus-0.32-selinux_chroot_workaround.patch
|
|
||||||
Patch2: dbus-0.61-selinux-avc-audit.patch
|
Patch2: dbus-0.61-selinux-avc-audit.patch
|
||||||
Patch3: dbus-0.60-start-early.patch
|
Patch3: dbus-0.60-start-early.patch
|
||||||
#make sure we take this out if ABI changes
|
|
||||||
Patch4: dbus-0.61-mono-no-abi-version-change.patch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
|
||||||
@ -67,46 +41,11 @@ per-user-login-session messaging facility.
|
|||||||
Summary: Libraries and headers for D-BUS
|
Summary: Libraries and headers for D-BUS
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %name = %{version}-%{release}
|
Requires: %name = %{version}-%{release}
|
||||||
Requires: glib2-devel
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
|
|
||||||
Headers and static libraries for D-BUS.
|
Headers and static libraries for D-BUS.
|
||||||
|
|
||||||
%package glib
|
|
||||||
Summary: GLib-based library for using D-BUS
|
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: %name = %{version}-%{release}
|
|
||||||
|
|
||||||
%description glib
|
|
||||||
|
|
||||||
D-BUS add-on library to integrate the standard D-BUS library with
|
|
||||||
the GLib thread abstraction and main loop.
|
|
||||||
|
|
||||||
%if 0
|
|
||||||
%package gtk
|
|
||||||
Summary: GTK based tools
|
|
||||||
Group: Development/Tools
|
|
||||||
Requires: %name = %{version}-%{release}
|
|
||||||
Requires: gtk2 >= %{gtk_version}
|
|
||||||
%description gtk
|
|
||||||
|
|
||||||
D-BUS tools written using the gtk+ GUI libaries
|
|
||||||
|
|
||||||
%endif
|
|
||||||
%if 0
|
|
||||||
%package qt
|
|
||||||
Summary: Qt-based library for using D-BUS
|
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: %name = %{version}-%{release}
|
|
||||||
|
|
||||||
%description qt
|
|
||||||
|
|
||||||
D-BUS add-on library to integrate the standard D-BUS library with
|
|
||||||
the Qt thread abstraction and main loop.
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%package x11
|
%package x11
|
||||||
Summary: X11-requiring add-ons for D-BUS
|
Summary: X11-requiring add-ons for D-BUS
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -118,49 +57,16 @@ Requires: %name = %{version}-%{release}
|
|||||||
D-BUS contains some tools that require Xlib to be installed, those are
|
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.
|
||||||
|
|
||||||
%package python
|
|
||||||
Summary: python bindings for D-BUS
|
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: %name = %{version}-%{release}
|
|
||||||
|
|
||||||
%description python
|
|
||||||
|
|
||||||
D-BUS python bindings for use with python programs.
|
|
||||||
|
|
||||||
%ifarch %mono_archs
|
|
||||||
%package sharp
|
|
||||||
Summary: mono bindings for D-BUS
|
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: %name = %{version}-%{release}
|
|
||||||
|
|
||||||
%description sharp
|
|
||||||
D-BUS mono bindings for use with mono programs.
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%patch1 -p1 -b .selinux_chroot_workaround
|
|
||||||
%patch2 -p1 -b .selinux-avc-audit
|
%patch2 -p1 -b .selinux-avc-audit
|
||||||
%patch3 -p1 -b .start-early
|
%patch3 -p1 -b .start-early
|
||||||
|
|
||||||
#make sure we take this out if ABI changes
|
|
||||||
%patch4 -p1 -b .mono-no-abi-version-change
|
|
||||||
|
|
||||||
autoreconf -f -i
|
autoreconf -f -i
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ifarch %mono_archs
|
COMMON_ARGS="--enable-libaudit --enable-selinux=yes --with-init-scripts=redhat --with-system-pid-file=%{_localstatedir}/run/messagebus.pid --with-dbus-user=%{dbus_user_uid} --libdir=/lib --bindir=/bin --sysconfdir=/etc --exec-prefix=/"
|
||||||
export MONO_SHARED_DIR=%{_builddir}/%{?buildsubdir}
|
|
||||||
MONO_ARGS="--enable-mono"
|
|
||||||
%endif
|
|
||||||
COMMON_ARGS="--enable-glib=yes --enable-libaudit --enable-selinux=yes --disable-gtk --disable-qt --disable-qt3 --with-init-scripts=redhat --with-system-pid-file=%{_localstatedir}/run/messagebus.pid --with-dbus-user=%{dbus_user_uid} $MONO_ARGS"
|
|
||||||
|
|
||||||
if test -d %{_libdir}/qt-%{qt_basever} ; then
|
|
||||||
export QTDIR=%{_libdir}/qt-%{qt_basever}
|
|
||||||
else
|
|
||||||
echo "WARNING: %{_libdir}/qt-%{qtbasever} does not exist"
|
|
||||||
fi
|
|
||||||
|
|
||||||
### this is some crack because bits of dbus can be
|
### this is some crack because bits of dbus can be
|
||||||
### smp-compiled but others don't feel like working
|
### smp-compiled but others don't feel like working
|
||||||
@ -173,17 +79,12 @@ function make_fast() {
|
|||||||
DBUS_VERBOSE=1 make
|
DBUS_VERBOSE=1 make
|
||||||
}
|
}
|
||||||
|
|
||||||
#%ifarch ia64
|
|
||||||
#FIXME: workaround for gcc-3.4 bug which causes python bindings build to hand on ia64 arches
|
|
||||||
#CFLAGS="$RPM_OPT_FLAGS -O1"
|
|
||||||
#export CFLAGS
|
|
||||||
#%endif
|
|
||||||
|
|
||||||
#### Build once with tests to make check
|
#### Build once with tests to make check
|
||||||
%configure $COMMON_ARGS --enable-tests=yes --enable-verbose-mode=yes --enable-asserts=yes
|
%configure $COMMON_ARGS --enable-tests=yes --enable-verbose-mode=yes --enable-asserts=yes
|
||||||
make_fast
|
make_fast
|
||||||
|
|
||||||
|
#keep debug mode for now.
|
||||||
exit 0
|
exit 0
|
||||||
DBUS_VERBOSE=1 make check > dbus-check.log 2>&1 || (cat dbus-check.log && false)
|
|
||||||
|
|
||||||
#### Clean up and build again
|
#### Clean up and build again
|
||||||
make clean
|
make clean
|
||||||
@ -193,63 +94,17 @@ make
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
export MONO_SHARED_DIR=%{_builddir}/%{?buildsubdir}
|
|
||||||
|
|
||||||
# dbus installs mono files in libdir, not in prefix/lib, fixup:
|
|
||||||
perl -pi -e 's,/gacdir \$\(libdir\),/gacdir /usr/lib,g' mono/Makefile
|
|
||||||
perl -pi -e "s,/root \\\$\\(DESTDIR\\)\\\$\(libdir\\),/root $RPM_BUILD_ROOT/usr/lib,g" mono/Makefile
|
|
||||||
perl -pi -e "s,/usr/lib64,/usr/lib,g" dbus-sharp.pc
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/mono
|
|
||||||
|
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/pkgconfig
|
||||||
|
mv -f $RPM_BUILD_ROOT/%{_lib}/pkgconfig/*.pc $RPM_BUILD_ROOT/%{_libdir}/pkgconfig
|
||||||
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
|
||||||
|
mv -f $RPM_BUILD_ROOT/bin/dbus-launch $RPM_BUILD_ROOT/%{_bindir}
|
||||||
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/dbus/*.*a
|
rm -f $RPM_BUILD_ROOT/%{_lib}/*.a
|
||||||
|
rm -f $RPM_BUILD_ROOT/%{_lib}/*.la
|
||||||
# move the base dbus libraries and executables to /bin and /lib
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/bin
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_lib}
|
|
||||||
|
|
||||||
mv -f $RPM_BUILD_ROOT%{_libdir}/*dbus-1*.so.* $RPM_BUILD_ROOT/%{_lib}
|
|
||||||
mv -f $RPM_BUILD_ROOT%{_bindir}/dbus-daemon $RPM_BUILD_ROOT/bin
|
|
||||||
mv -f $RPM_BUILD_ROOT%{_bindir}/dbus-send $RPM_BUILD_ROOT/bin
|
|
||||||
mv -f $RPM_BUILD_ROOT%{_bindir}/dbus-cleanup-sockets $RPM_BUILD_ROOT/bin
|
|
||||||
|
|
||||||
# Create a dummy file so that no matter how deep we are we can
|
|
||||||
# find the root directory.
|
|
||||||
touch $RPM_BUILD_ROOT/rootfile
|
|
||||||
|
|
||||||
# We need to make relative links to dbus-send
|
|
||||||
# Search for the file relative to the location of %%{_bindir}.
|
|
||||||
root=..
|
|
||||||
while [ ! -e $RPM_BUILD_ROOT/%{_bindir}/${root}/rootfile ] ; do
|
|
||||||
root=${root}/..
|
|
||||||
done
|
|
||||||
|
|
||||||
# Actually create the link.
|
|
||||||
pushd $RPM_BUILD_ROOT/%{_bindir}
|
|
||||||
ln -f -s ${root}/bin/dbus-send dbus-send
|
|
||||||
popd
|
|
||||||
|
|
||||||
|
|
||||||
# We need to make relative links to the moved libaries
|
|
||||||
# Search for the file relative to the location of %%{_libdir}.
|
|
||||||
root=..
|
|
||||||
while [ ! -e $RPM_BUILD_ROOT/%{_libdir}/${root}/rootfile ] ; do
|
|
||||||
root=${root}/..
|
|
||||||
done
|
|
||||||
|
|
||||||
# Actually create the link.
|
|
||||||
pushd $RPM_BUILD_ROOT/%{_libdir}
|
|
||||||
for so_file in *dbus-1*.so ; do
|
|
||||||
ln -f -s ${root}/%{_lib}/$so_file.? $so_file
|
|
||||||
done
|
|
||||||
popd
|
|
||||||
# Clean it up.
|
|
||||||
rm $RPM_BUILD_ROOT/rootfile
|
|
||||||
|
|
||||||
## %find_lang %{gettext_package}
|
## %find_lang %{gettext_package}
|
||||||
|
|
||||||
@ -274,9 +129,6 @@ fi
|
|||||||
%postun
|
%postun
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
%post glib -p /sbin/ldconfig
|
|
||||||
%postun glib -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
|
||||||
@ -287,66 +139,33 @@ fi
|
|||||||
%config %{_sysconfdir}/rc.d/init.d/*
|
%config %{_sysconfdir}/rc.d/init.d/*
|
||||||
%dir %{_sysconfdir}/dbus-1/system.d
|
%dir %{_sysconfdir}/dbus-1/system.d
|
||||||
%dir %{_localstatedir}/run/dbus
|
%dir %{_localstatedir}/run/dbus
|
||||||
%dir %{_libdir}/dbus-1.0
|
%dir /%{_lib}/dbus-1.0
|
||||||
/bin/dbus-daemon
|
/bin/dbus-daemon
|
||||||
/bin/dbus-send
|
/bin/dbus-send
|
||||||
%{_bindir}/dbus-send
|
|
||||||
/bin/dbus-cleanup-sockets
|
/bin/dbus-cleanup-sockets
|
||||||
|
/bin/dbus-monitor
|
||||||
/%{_lib}/*dbus-1*.so.*
|
/%{_lib}/*dbus-1*.so.*
|
||||||
%{_datadir}/man/man*/*
|
%{_datadir}/man/man*/*
|
||||||
%{_datadir}/dbus-1/services
|
%{_datadir}/dbus-1/services
|
||||||
|
|
||||||
%files devel
|
|
||||||
%defattr(-,root,root)
|
|
||||||
|
|
||||||
%{_libdir}/lib*.so
|
|
||||||
%{_libdir}/dbus-1.0/include
|
|
||||||
%{_libdir}/pkgconfig/dbus-1.pc
|
|
||||||
%{_libdir}/pkgconfig/dbus-glib-1.pc
|
|
||||||
%{_includedir}/*
|
|
||||||
|
|
||||||
%files glib
|
|
||||||
%defattr(-,root,root)
|
|
||||||
|
|
||||||
%{_libdir}/*glib*.so.*
|
|
||||||
%{_bindir}/dbus-binding-tool
|
|
||||||
%{_bindir}/dbus-monitor
|
|
||||||
|
|
||||||
%if 0
|
|
||||||
%files gtk
|
|
||||||
%defattr(-,root,root)
|
|
||||||
|
|
||||||
%{_bindir}/dbus-viewer
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0
|
|
||||||
%files qt
|
|
||||||
%defattr(-,root,root)
|
|
||||||
|
|
||||||
%{_libdir}/*qt*.so.*
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files x11
|
%files x11
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
|
||||||
%{_bindir}/dbus-launch
|
%{_bindir}/dbus-launch
|
||||||
|
|
||||||
%files python
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/python*/site-packages/dbus/*.so
|
|
||||||
%{_libdir}/python*/site-packages/dbus.pth
|
|
||||||
%{_libdir}/python*/site-packages/dbus/*.py*
|
|
||||||
|
|
||||||
%ifarch %mono_archs
|
/%{_lib}/lib*.so
|
||||||
%files sharp
|
/%{_lib}/dbus-1.0/include
|
||||||
%defattr(-,root,root)
|
%{_libdir}/pkgconfig/dbus-1.pc
|
||||||
%{_prefix}/lib/mono/dbus-sharp
|
%{_includedir}/*
|
||||||
%{_prefix}/lib/mono/gac/dbus-sharp
|
|
||||||
%{_libdir}/pkgconfig/dbus-sharp.pc
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 17 2006 John (J5) Palmieri <johnp@redhat.com> - 0.90-1
|
||||||
|
- Update to upstream 0.90
|
||||||
|
- Split out bindings
|
||||||
|
|
||||||
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.62-1.1
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.62-1.1
|
||||||
- rebuild
|
- rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user