]>
Commit | Line | Data |
---|---|---|
3f8dd6e4 AF |
1 | %define gettext_package dbus |
2 | %define expat_version 1.95.5 | |
3 | %define glib2_version 2.2.0 | |
4 | %define qt_version 3.1.0 | |
5 | ||
6 | Summary: D-BUS message bus | |
7 | Name: dbus | |
8 | Version: 0.11 | |
9 | Release: 1 | |
10 | Source0: http://www.freedesktop.org/software/dbus/releases/%{name}-%{version}.tar.gz | |
bded3ba7 | 11 | # Source0-md5: 87f8cf7ffd114846d577e454ef3129aa |
3f8dd6e4 AF |
12 | Patch0: %{name}-ac.patch |
13 | URL: http://www.freedesktop.org/software/dbus/ | |
14 | License: AFL/GPL | |
15 | Group: Libraries | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | PreReq: chkconfig | |
18 | BuildRequires: expat-devel >= %{expat_version} | |
19 | BuildRequires: glib2-devel >= %{glib2_version} | |
20 | BuildRequires: qt-devel >= %{qt_version} | |
21 | BuildRequires: kdelibs-devel | |
22 | ||
23 | %description | |
24 | D-BUS is a system for sending messages between applications. It is | |
25 | used both for the systemwide message bus service, and as a | |
26 | per-user-login-session messaging facility. | |
27 | ||
28 | %package devel | |
29 | Summary: Libraries and headers for D-BUS | |
30 | Group: Development/Libraries | |
31 | Requires: %name = %{version} | |
32 | ||
33 | %description devel | |
34 | Headers and static libraries for D-BUS. | |
35 | ||
36 | %package glib | |
37 | Summary: GLib-based library for using D-BUS | |
38 | Group: Development/Libraries | |
39 | Requires: %name = %{version} | |
40 | ||
41 | %description glib | |
42 | D-BUS add-on library to integrate the standard D-BUS library with the | |
43 | GLib thread abstraction and main loop. | |
44 | ||
45 | ||
46 | %package qt | |
47 | Summary: Qt-based library for using D-BUS | |
48 | Group: Development/Libraries | |
49 | Requires: %name = %{version} | |
50 | ||
51 | %description qt | |
52 | D-BUS add-on library to integrate the standard D-BUS library with the | |
53 | Qt thread abstraction and main loop. | |
54 | ||
55 | %prep | |
56 | %setup -q | |
57 | %patch0 -p1 | |
58 | ||
59 | %build | |
60 | %{__libtoolize} | |
61 | %{__aclocal} | |
62 | %{__autoconf} | |
63 | %{__automake} | |
64 | COMMON_ARGS="--enable-glib=yes --enable-qt=yes" | |
65 | export QTDIR=/usr | |
66 | ||
67 | %configure $COMMON_ARGS \ | |
68 | --disable-tests \ | |
69 | --disable-verbose-mode \ | |
70 | --disable-asserts | |
71 | %{__make} | |
72 | ||
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %{__make} install \ | |
77 | DESTDIR=$RPM_BUILD_ROOT | |
78 | ||
79 | ## %find_lang %{gettext_package} | |
80 | ||
81 | %clean | |
82 | rm -rf %{buildroot} | |
83 | ||
84 | %pre | |
85 | # Add the "messagebus" user | |
86 | #/usr/sbin/useradd -c 'System message bus' -u 81 \ | |
87 | # -s /sbin/nologin -r -d '/' messagebus 2> /dev/null || : | |
88 | ||
89 | %post | |
90 | /sbin/ldconfig | |
91 | #/sbin/chkconfig --add messagebus | |
92 | ||
93 | %preun | |
94 | #if [ $1 = 0 ]; then | |
95 | # service messagebus stop > /dev/null 2>&1 | |
96 | # /sbin/chkconfig --del messagebus | |
97 | #fi | |
98 | ||
99 | %postun | |
100 | /sbin/ldconfig | |
101 | #if [ "$1" -ge "1" ]; then | |
102 | # service messagebus condrestart > /dev/null 2>&1 | |
103 | #fi | |
104 | ||
105 | %post glib -p /sbin/ldconfig | |
106 | %postun glib -p /sbin/ldconfig | |
107 | ||
108 | %post qt -p /sbin/ldconfig | |
109 | %postun qt -p /sbin/ldconfig | |
110 | ||
111 | ## -f %{gettext_package}.lang | |
112 | %files | |
113 | %defattr(644,root,root,755) | |
114 | %doc COPYING ChangeLog NEWS | |
115 | %dir %{_sysconfdir}/dbus-1 | |
116 | %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/dbus-1/*.conf | |
117 | #/etc/rc.d/init.d/* | |
118 | %dir %{_sysconfdir}/dbus-1/system.d | |
119 | %dir %{_localstatedir}/run/dbus | |
120 | %dir %{_libdir}/dbus-* | |
121 | %attr(755,root,root) %{_bindir}/* | |
122 | %{_libdir}/*dbus-1*.so.* | |
123 | %{_mandir}/man*/* | |
124 | #%{_libdir}/dbus-1.0/services | |
125 | ||
126 | %files devel | |
127 | %defattr(644,root,root,755) | |
128 | %{_libdir}/libdbus-1*.so | |
129 | %{_libdir}/libdbus-1*.la | |
130 | %{_libdir}/dbus-*/include | |
131 | %{_pkgconfigdir}/* | |
132 | %{_includedir}/* | |
133 | %{_libdir}/lib*.a | |
134 | ||
135 | %files glib | |
136 | %defattr(644,root,root,755) | |
137 | %{_libdir}/*glib*.so.*.* | |
138 | ||
139 | %files qt | |
140 | %defattr(644,root,root,755) | |
141 | %{_libdir}/*qt*.so.*.* |