19693
|
1 |
#
|
|
2 |
# spec file for package dbus
|
|
3 |
#
|
|
4 |
# Copyright (c) 2005 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
19264
|
8 |
Name: dbus
|
|
9 |
License: Other
|
|
10 |
Group: System/Libraries
|
19458
|
11 |
Version: 0.23.4
|
19305
|
12 |
Release: 2
|
19693
|
13 |
Distribution: Java Desktop System
|
19264
|
14 |
Vendor: Sun Microsystems, Inc.
|
|
15 |
Summary: Simple IPC library based on messages
|
|
16 |
Source: http://dbus.freedesktop.org/releases/%{name}-%{version}.tar.gz
|
|
17 |
URL: http://www.freedesktop.org/wiki/Software/dbus
|
|
18 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
19 |
Docdir: %{_defaultdocdir}/doc
|
|
20 |
Autoreqprov: on
|
|
21 |
Prereq: /sbin/ldconfig
|
|
22 |
|
19386
|
23 |
%define glib2_version 2.6.4
|
|
24 |
%define libxml2_version 2.6.19
|
19389
|
25 |
BuildRequires: glib2-devel >= %glib2_version
|
19386
|
26 |
BuildRequires: libxml2-devel >= %libxml2_version
|
19389
|
27 |
Requires: glib2 >= %glib2_version
|
19386
|
28 |
Requires: libxml2 >= %libxml2_version
|
|
29 |
|
19264
|
30 |
%description
|
|
31 |
D-BUS is a message bus system, a simple way for applications to talk to one another.
|
|
32 |
|
|
33 |
D-BUS supplies both a system daemon (for events such as "new hardware device added"
|
|
34 |
or "printer queue changed") and a per-user-login-session daemon (for general IPC
|
|
35 |
needs among user applications). Also, the message bus is built on top of a general
|
|
36 |
one-to-one message passing framework, which can be used by any two apps to communicate
|
|
37 |
directly (without going through the message bus daemon).
|
|
38 |
|
|
39 |
%package devel
|
|
40 |
Summary: Simple IPC library based on messages
|
|
41 |
Group: Development/Libraries
|
|
42 |
Requires: %{name} = %{version}
|
|
43 |
|
|
44 |
%description devel
|
|
45 |
D-BUS is a message bus system, a simple way for applications to talk to one another.
|
|
46 |
|
|
47 |
D-BUS supplies both a system daemon (for events such as "new hardware device added"
|
|
48 |
or "printer queue changed") and a per-user-login-session daemon (for general IPC
|
|
49 |
needs among user applications). Also, the message bus is built on top of a general
|
|
50 |
one-to-one message passing framework, which can be used by any two apps to communicate
|
|
51 |
directly (without going through the message bus daemon).
|
|
52 |
|
|
53 |
%prep
|
|
54 |
%setup -q
|
|
55 |
|
|
56 |
%build
|
|
57 |
%ifos linux
|
|
58 |
if [ -x /usr/bin/getconf ]; then
|
|
59 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
60 |
fi
|
|
61 |
%else
|
|
62 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
63 |
%endif
|
|
64 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
65 |
CPUS=1
|
|
66 |
fi
|
|
67 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
68 |
./configure --prefix=%{_prefix} \
|
|
69 |
--sysconfdir=%{_sysconfdir} \
|
|
70 |
--libexecdir=%{_libexecdir} \
|
|
71 |
--mandir=%{_mandir}
|
|
72 |
make -j $CPUS
|
|
73 |
|
|
74 |
%install
|
|
75 |
make DESTDIR=$RPM_BUILD_ROOT install
|
|
76 |
rm $RPM_BUILD_ROOT%{_libdir}/libdbus-1*.a
|
|
77 |
rm $RPM_BUILD_ROOT%{_libdir}/libdbus-1*.la
|
|
78 |
rm $RPM_BUILD_ROOT%{_libdir}/libdbus-glib-1*.a
|
|
79 |
rm $RPM_BUILD_ROOT%{_libdir}/libdbus-glib-1*.la
|
|
80 |
|
|
81 |
%post
|
|
82 |
/sbin/ldconfig
|
|
83 |
|
|
84 |
%postun
|
|
85 |
/sbin/ldconfig
|
|
86 |
|
|
87 |
%clean
|
|
88 |
rm -rf $RPM_BUILD_ROOT
|
|
89 |
|
|
90 |
%files
|
|
91 |
%defattr(-, root, root)
|
|
92 |
%config %{_sysconfdir}/dbus-1/session.conf
|
|
93 |
%config %{_sysconfdir}/dbus-1/system.conf
|
|
94 |
%{_bindir}/*
|
|
95 |
%{_libdir}/libdbus-1.so.*
|
|
96 |
%{_libdir}/libdbus-glib-1.so.*
|
|
97 |
%{_datadir}/man/*
|
|
98 |
|
|
99 |
%files devel
|
|
100 |
%defattr(-, root, root)
|
19305
|
101 |
%{_libdir}/*.so
|
19264
|
102 |
%{_includedir}/dbus-1.0/*
|
|
103 |
%{_libdir}/dbus-1.0/*
|
|
104 |
%{_libdir}/pkgconfig/*
|
|
105 |
|
|
106 |
%changelog
|
19458
|
107 |
* Mon Jun 20 2005 - [email protected]
|
|
108 |
- dbus 0.23 is actually shipped with gnome 2.10 so bumping down tarball
|
|
109 |
|
19386
|
110 |
* Thu Jun 09 2005 - [email protected]
|
|
111 |
- add buildrequires glib2, libxml2
|
19264
|
112 |
* Thu May 12 2005 - [email protected]
|
|
113 |
- Initial spec file for dbus.
|