15331
|
1 |
#
|
|
2 |
# spec file for package SUNWdbus-glib
|
|
3 |
#
|
15350
|
4 |
# includes module(s): dbus-glib
|
15331
|
5 |
#
|
15350
|
6 |
# Copyright 2009 Sun Microsystems, Inc.
|
15331
|
7 |
# This file and all modifications and additions to the pristine
|
|
8 |
# package are under the same license as the package itself.
|
|
9 |
#
|
|
10 |
# Owner: yippi
|
|
11 |
# bugdb: bugzilla.freedesktop.org
|
|
12 |
#
|
|
13 |
%include Solaris.inc
|
|
14 |
|
|
15 |
%ifarch amd64 sparcv9
|
|
16 |
%include arch64.inc
|
|
17 |
%use dbus_glib_64 = dbus-glib.spec
|
|
18 |
%define _libdir %{_basedir}/lib
|
|
19 |
%endif
|
|
20 |
|
|
21 |
%include base.inc
|
|
22 |
%use dbus_glib = dbus-glib.spec
|
|
23 |
|
|
24 |
Name: SUNWdbus-glib
|
|
25 |
Summary: D-Bus GLib bindings
|
15350
|
26 |
Version: %{dbus_glib.version}
|
15331
|
27 |
Source: %{name}-manpages-0.1.tar.gz
|
|
28 |
SUNW_BaseDir: %{_basedir}
|
|
29 |
SUNW_Copyright: %{name}.copyright
|
|
30 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
31 |
%include default-depend.inc
|
|
32 |
Requires: SUNWdbus
|
|
33 |
Requires: SUNWgnome-base-libs
|
|
34 |
Requires: SUNWlxml
|
|
35 |
Requires: SUNWlexpt
|
|
36 |
BuildRequires: SUNWdbus-devel
|
|
37 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
38 |
BuildRequires: SUNWlxml
|
|
39 |
BuildRequires: SUNWsfwhea
|
|
40 |
|
|
41 |
%package devel
|
|
42 |
Summary: %{summary} - development files
|
|
43 |
SUNW_BaseDir: %{_basedir}
|
|
44 |
%include default-depend.inc
|
|
45 |
Requires: SUNWgnome-base-libs
|
|
46 |
|
|
47 |
%prep
|
|
48 |
rm -rf %name-%version
|
|
49 |
mkdir %name-%version
|
|
50 |
|
|
51 |
%ifarch amd64 sparcv9
|
|
52 |
mkdir %name-%version/%_arch64
|
|
53 |
%dbus_glib_64.prep -d %name-%version/%_arch64
|
|
54 |
%endif
|
|
55 |
|
|
56 |
mkdir %name-%version/%{base_arch}
|
|
57 |
%dbus_glib.prep -d %name-%version/%{base_arch}
|
|
58 |
|
|
59 |
cd %{_builddir}/%name-%version
|
|
60 |
gzcat %SOURCE0 | tar xf -
|
|
61 |
|
|
62 |
%build
|
|
63 |
PKG_CONFIG_DISABLE_UNINSTALLED=
|
|
64 |
unset PKG_CONFIG_DISABLE_UNINSTALLED
|
|
65 |
%if %cc_is_gcc
|
|
66 |
export EXTRA_CFLAGS="-I/usr/sfw/include"
|
|
67 |
%else
|
|
68 |
export EXTRA_CFLAGS="-xc99 -D_REENTRANT -I/usr/sfw/include -D__EXTENSIONS__"
|
|
69 |
%endif
|
|
70 |
# Put /usr/ccs/lib first in the PATH so that cpp is picked up from there
|
|
71 |
# note: I didn't put /usr/lib in the PATH because there's too much other
|
|
72 |
# stuff in there
|
|
73 |
#
|
|
74 |
export PATH=/usr/ccs/lib:$PATH
|
|
75 |
|
|
76 |
%ifarch amd64 sparcv9
|
|
77 |
export EXTRA_LDFLAGS="-L/usr/sfw/lib/%{_arch64} -R/usr/sfw/lib/%{_arch64} -lexpat"
|
|
78 |
export PKG_CONFIG_PATH=../dbus-glib-%{dbus_glib.version}:/usr/lib/%{_arch64}/pkgconfig
|
|
79 |
%dbus_glib_64.build -d %name-%version/%_arch64
|
|
80 |
%endif
|
|
81 |
|
|
82 |
export PKG_CONFIG_PATH=../dbus-glib-%{dbus_glib.version}
|
|
83 |
export EXTRA_LDFLAGS="-L/usr/sfw/lib -R/usr/sfw/lib -lexpat"
|
|
84 |
%dbus_glib.build -d %name-%version/%{base_arch}
|
|
85 |
|
|
86 |
%install
|
|
87 |
rm -rf $RPM_BUILD_ROOT
|
|
88 |
%ifarch amd64 sparcv9
|
|
89 |
%dbus_glib_64.install -d %name-%version/%_arch64
|
|
90 |
%endif
|
|
91 |
|
|
92 |
%dbus_glib.install -d %name-%version/%{base_arch}
|
|
93 |
|
|
94 |
# Remove dbus-bash-completion.sh, a bash autocompletion script in the
|
|
95 |
# %{_sysconfdir}/profile.d dir. We don't ship such files. It is the only file
|
|
96 |
# under %{_sysconfdir} so remove the entire structure.
|
|
97 |
# rm/rmdir used instead of 'rm -r' so that files added under %{_sysconfdir} are
|
|
98 |
# found, via build failure.
|
|
99 |
rm $RPM_BUILD_ROOT%{_libexecdir}/dbus-bash-completion-helper
|
|
100 |
%ifarch amd64 sparcv9
|
|
101 |
rm $RPM_BUILD_ROOT%{_libexecdir}/%{_arch64}/dbus-bash-completion-helper
|
|
102 |
%endif
|
|
103 |
rm $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/dbus-bash-completion.sh
|
|
104 |
rmdir $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
|
|
105 |
rmdir $RPM_BUILD_ROOT%{_sysconfdir}
|
|
106 |
|
|
107 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
108 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
109 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
110 |
|
|
111 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
112 |
|
|
113 |
%clean
|
|
114 |
rm -rf $RPM_BUILD_ROOT
|
|
115 |
|
|
116 |
%files
|
|
117 |
%defattr (-, root, bin)
|
|
118 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
119 |
%{_bindir}/*
|
|
120 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
121 |
%{_libdir}/lib*.so*
|
|
122 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
123 |
%{_datadir}/dbus-1
|
|
124 |
%doc %{base_arch}/dbus-glib-%{dbus_glib.version}/AUTHORS
|
|
125 |
%doc %{base_arch}/dbus-glib-%{dbus_glib.version}/README
|
|
126 |
%doc(bzip2) %{base_arch}/dbus-glib-%{dbus_glib.version}/COPYING
|
|
127 |
%doc(bzip2) %{base_arch}/dbus-glib-%{dbus_glib.version}/ChangeLog
|
|
128 |
%doc(bzip2) %{base_arch}/dbus-glib-%{dbus_glib.version}/NEWS
|
|
129 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
|
130 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
131 |
%dir %attr(0755, root, bin) %{_mandir}/man1
|
|
132 |
%dir %attr(0755, root, bin) %{_mandir}/man3
|
|
133 |
%{_mandir}/man1/*
|
|
134 |
%{_mandir}/man3/*
|
|
135 |
%ifarch amd64 sparcv9
|
|
136 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
|
|
137 |
%{_libdir}/%{_arch64}/lib*.so*
|
|
138 |
%endif
|
|
139 |
|
|
140 |
%files devel
|
|
141 |
%defattr (-, root, bin)
|
|
142 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
143 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
144 |
%{_libdir}/pkgconfig/*
|
|
145 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
146 |
%{_includedir}/*
|
|
147 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
148 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
|
149 |
%{_datadir}/gtk-doc
|
|
150 |
%ifarch amd64 sparcv9
|
|
151 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
|
|
152 |
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig
|
|
153 |
%{_libdir}/%{_arch64}/pkgconfig/*.pc
|
|
154 |
%endif
|
|
155 |
|
|
156 |
%changelog
|
15350
|
157 |
* Tue Mar 10 2009 - [email protected]
|
|
158 |
- Cleanup based on code review.
|
15331
|
159 |
* Thu Mar 05 2009 - [email protected]
|
|
160 |
- Split from SUNWdbus-bindings.spec.
|
|
161 |
* Wed Mar 04 2009 - [email protected]
|
|
162 |
- Add /usr/share/man/man1 in %files
|
|
163 |
* Sun Sep 14 2008 - [email protected]
|
|
164 |
- Add new copyright files.
|
|
165 |
* Thu Mar 27 2008 - [email protected]
|
|
166 |
- Add SUNW_Copyright
|
|
167 |
* Tue Nov 20 2007 - [email protected]
|
|
168 |
- Add libdbus-glib-1.3 manpage.
|
|
169 |
* Fri Sep 28 2007 - [email protected]
|
|
170 |
- convert to new style multi-ISA build
|
|
171 |
- delete SUNWxwrtl dep
|
|
172 |
* Sat Feb 25 2007 - [email protected]
|
|
173 |
- updated to include 64-bit build RFE: #6480511
|
|
174 |
* Fri Jan 26 2007 - [email protected]
|
|
175 |
- Set PKG_CONFIG vars in %build because dbus-python use autofoo/configure/make
|
|
176 |
process rather than setup.py.
|
|
177 |
* Thu Jan 25 2007 - [email protected]
|
|
178 |
- Add %{_datadir}/doc to devel pkg, because of new dbus-python tarball.
|
|
179 |
* Thu Dec 21 2006 - [email protected]
|
|
180 |
- Remove references to SUNWdbus-bindings-root since we do not
|
|
181 |
build this package.
|
|
182 |
* Thu Sep 21 2006 - [email protected]
|
|
183 |
- Created.
|
|
184 |
|