9397
|
1 |
#
|
|
2 |
# spec file for package dbus-glib
|
|
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 |
#
|
|
8 |
# Owner: yippi
|
|
9 |
# bugdb: bugzilla.freedesktop.org
|
|
10 |
#
|
|
11 |
Name: dbus-glib
|
|
12 |
License: GPL/AFL
|
|
13 |
Group: System/Libraries
|
|
14 |
Version: 0.73
|
|
15 |
Release: 1
|
|
16 |
Distribution: Java Desktop System
|
|
17 |
Vendor: Sun Microsystems, Inc.
|
|
18 |
Summary: Glib bindings for D-Bus
|
|
19 |
Source: http://dbus.freedesktop.org/releases/dbus-glib/%{name}-%{version}.tar.gz
|
|
20 |
#owner:yippi date:2006-11-27 type:bug
|
|
21 |
Patch1: dbus-glib-01-findlaunch.diff
|
|
22 |
URL: http://www.freedesktop.org/wiki/Software_2fdbus
|
|
23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
24 |
Docdir: %{_defaultdocdir}/doc
|
|
25 |
Autoreqprov: on
|
|
26 |
Prereq: /sbin/ldconfig
|
|
27 |
|
|
28 |
%define glib2_version 2.6.4
|
|
29 |
%define libxml2_version 2.6.19
|
|
30 |
BuildRequires: glib2-devel >= %glib2_version
|
|
31 |
BuildRequires: libxml2-devel >= %libxml2_version
|
|
32 |
# FIXME: get python rpm: BuildRequires: python >= %python_version
|
|
33 |
Requires: glib2 >= %glib2_version
|
|
34 |
Requires: libxml2 >= %libxml2_version
|
|
35 |
|
|
36 |
%description
|
|
37 |
Glib bindings for D-Bus.
|
|
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 |
Glib bindings for D-Bus.
|
|
46 |
|
|
47 |
%prep
|
|
48 |
%setup -q
|
|
49 |
%patch1 -p1
|
|
50 |
%ifos solaris
|
|
51 |
%ifarch amd64 sparcv9
|
|
52 |
cd ..
|
|
53 |
cp -pr %{name}-%{version} %{name}-%{version}-64
|
|
54 |
%endif
|
|
55 |
%endif
|
|
56 |
|
|
57 |
%build
|
|
58 |
%ifos linux
|
|
59 |
if [ -x /usr/bin/getconf ]; then
|
|
60 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
61 |
fi
|
|
62 |
%else
|
|
63 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
64 |
%endif
|
|
65 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
66 |
CPUS=1
|
|
67 |
fi
|
|
68 |
|
|
69 |
%ifos solaris
|
|
70 |
%ifarch amd64 sparcv9
|
|
71 |
export CC=${CC64:-$CC}
|
|
72 |
export CFLAGS="${CFLAGS64}"
|
|
73 |
export LDFLAGS="${LDFLAGS64}"
|
|
74 |
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}"
|
|
75 |
|
|
76 |
cd ../%{name}-%{version}-64
|
|
77 |
|
|
78 |
autoconf
|
|
79 |
automake -a -c -f
|
|
80 |
./configure --prefix=%{_prefix} \
|
|
81 |
--includedir=%{_includedir} \
|
|
82 |
--sysconfdir=%{_sysconfdir} \
|
|
83 |
--libdir=%{_libdir}/%{_arch64} \
|
|
84 |
--bindir=%{_bindir} \
|
|
85 |
--localstatedir=%{_localstatedir} \
|
|
86 |
--with-dbus-user=root \
|
|
87 |
--with-dbus-daemondir=%{_libdir} \
|
|
88 |
--mandir=%{_mandir} \
|
|
89 |
--datadir=%{_datadir} \
|
|
90 |
--disable-static
|
|
91 |
make -j $CPUS \
|
|
92 |
pyexecdir=%{_libdir}/%{_arch64}/python%{python_version}/vendor-packages
|
|
93 |
cd ../%{name}-%{version}
|
|
94 |
|
|
95 |
export CC=${CC32:-$CC}
|
|
96 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH32"
|
|
97 |
export CFLAGS="$CFLAGS32"
|
|
98 |
export LDFLAGS="$LDFLAGS32"
|
|
99 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
100 |
%endif
|
|
101 |
%endif
|
|
102 |
|
|
103 |
autoconf
|
|
104 |
automake -a -c -f
|
|
105 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
106 |
./configure --prefix=%{_prefix} \
|
|
107 |
--includedir=%{_includedir} \
|
|
108 |
--sysconfdir=%{_sysconfdir} \
|
|
109 |
--libdir=%{_libdir} \
|
|
110 |
--bindir=%{_bindir} \
|
|
111 |
--localstatedir=%{_localstatedir} \
|
|
112 |
--with-dbus-user=root \
|
|
113 |
--with-dbus-daemondir=%{_libdir} \
|
|
114 |
--mandir=%{_mandir} \
|
|
115 |
--datadir=%{_datadir} \
|
|
116 |
--disable-static
|
|
117 |
make -j $CPUS \
|
|
118 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages
|
|
119 |
|
|
120 |
%install
|
|
121 |
%ifos solaris
|
|
122 |
%ifarch amd64 sparcv9
|
|
123 |
cd ../%{name}-%{version}-64
|
|
124 |
make DESTDIR=$RPM_BUILD_ROOT install \
|
|
125 |
pyexecdir=%{_libdir}/%{_arch64}/python%{python_version}/vendor-packages
|
|
126 |
cd ../%{name}-%{version}
|
|
127 |
%endif
|
|
128 |
%endif
|
|
129 |
|
|
130 |
make DESTDIR=$RPM_BUILD_ROOT install \
|
|
131 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages
|
|
132 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/dbus-1/services
|
|
133 |
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.a" -exec rm -f {} ';'
|
|
134 |
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" -exec rm -f {} ';'
|
|
135 |
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.pyo" -exec rm -f {} ';'
|
|
136 |
|
|
137 |
%post
|
|
138 |
/sbin/ldconfig
|
|
139 |
|
|
140 |
%postun
|
|
141 |
/sbin/ldconfig
|
|
142 |
|
|
143 |
%clean
|
|
144 |
rm -rf $RPM_BUILD_ROOT
|
|
145 |
|
|
146 |
%files
|
|
147 |
%defattr(-, root, root)
|
|
148 |
%config %{_sysconfdir}/dbus-1/session.conf
|
|
149 |
%config %{_sysconfdir}/dbus-1/system.conf
|
|
150 |
%{_bindir}/*
|
|
151 |
%{_libdir}/libdbus*.so*
|
|
152 |
%{_datadir}/man/*
|
|
153 |
%{_datadir}/dbus-1/*
|
|
154 |
|
|
155 |
%files devel
|
|
156 |
%defattr(-, root, root)
|
|
157 |
%{_libdir}/*.so
|
|
158 |
%{_includedir}/dbus-1.0/*
|
|
159 |
%{_libdir}/dbus-1.0/*
|
|
160 |
%{_libdir}/pkgconfig/*
|
|
161 |
%{_libdir}/python?.?/vendor-packages/*
|
|
162 |
|
|
163 |
%changelog
|
|
164 |
* Sun Feb 25 2007 - [email protected]
|
|
165 |
- updated to include 64-bit build RFE: #6480511
|
|
166 |
|
|
167 |
* Wed Feb 14 2007 - [email protected]
|
|
168 |
- Bump to 0.73. Remove upstream patch 01-uninstalled-pc. Rename remainder.
|
|
169 |
|
|
170 |
* Thu Nov 27 2006 - [email protected]
|
|
171 |
- Created.
|