12109
|
1 |
#
|
|
2 |
# spec file for packages SUNWlibgsf
|
|
3 |
#
|
|
4 |
# includes module(s): libgsf
|
|
5 |
#
|
|
6 |
# Copyright 2008 Sun Microsystems, Inc.
|
|
7 |
# This file and all modifications and additions to the pristine
|
|
8 |
# package are under the same license as the package itself.
|
|
9 |
#
|
12591
|
10 |
# Owner:rickju
|
12109
|
11 |
#
|
|
12 |
%include Solaris.inc
|
|
13 |
|
13623
|
14 |
%ifarch amd64 sparcv9
|
|
15 |
%include arch64.inc
|
|
16 |
%use libgsf_64 = libgsf.spec
|
|
17 |
%endif
|
|
18 |
|
|
19 |
%include base.inc
|
12109
|
20 |
%use libgsf = libgsf.spec
|
|
21 |
|
|
22 |
Name: SUNWlibgsf
|
|
23 |
Summary: GNOME Structured File Library
|
|
24 |
Version: %{default_pkg_version}
|
|
25 |
SUNW_BaseDir: %{_basedir}
|
|
26 |
SUNW_Copyright: %{name}.copyright
|
|
27 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
28 |
|
|
29 |
%include default-depend.inc
|
|
30 |
Requires: SUNWlibgsf-root
|
|
31 |
Requires: SUNWgnome-base-libs
|
|
32 |
Requires: SUNWgnome-component
|
|
33 |
Requires: SUNWgnome-vfs
|
|
34 |
Requires: SUNWgnome-config
|
|
35 |
Requires: SUNWdbus
|
|
36 |
Requires: SUNWdbus-bindings
|
|
37 |
Requires: SUNWlxml
|
|
38 |
Requires: SUNWbzip
|
|
39 |
Requires: SUNWzlib
|
13081
|
40 |
Requires: SUNWlibms
|
12109
|
41 |
Requires: SUNWopenssl-libraries
|
|
42 |
Requires: SUNWgnome-python-libs
|
13081
|
43 |
BuildRequires: SUNWlibm
|
12109
|
44 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
45 |
BuildRequires: SUNWgnome-component-devel
|
|
46 |
BuildRequires: SUNWgnome-vfs-devel
|
|
47 |
BuildRequires: SUNWlxml-devel
|
|
48 |
BuildRequires: SUNWopenssl-include
|
|
49 |
BuildRequires: SUNWgnome-python-libs-devel
|
14173
|
50 |
BuildRequires: SUNWpython-setuptools
|
12109
|
51 |
|
|
52 |
%package root
|
|
53 |
Summary: %{summary} - / filesystem
|
|
54 |
SUNW_BaseDir: /
|
|
55 |
%include default-depend.inc
|
|
56 |
Requires: SUNWpostrun
|
|
57 |
|
|
58 |
%package devel
|
|
59 |
Summary: %{summary} - development files
|
|
60 |
SUNW_BaseDir: %{_basedir}
|
|
61 |
%include default-depend.inc
|
|
62 |
Requires: %{name}
|
|
63 |
|
|
64 |
%if %build_l10n
|
|
65 |
%package l10n
|
|
66 |
Summary: %{summary} - l10n files
|
|
67 |
SUNW_BaseDir: %{_basedir}
|
|
68 |
%include default-depend.inc
|
|
69 |
Requires: %{name}
|
|
70 |
%endif
|
|
71 |
|
|
72 |
%prep
|
|
73 |
rm -rf %name-%version
|
|
74 |
mkdir %name-%version
|
13623
|
75 |
|
|
76 |
%ifarch amd64 sparcv9
|
|
77 |
mkdir %name-%version/%_arch64
|
|
78 |
%libgsf_64.prep -d %name-%version/%_arch64
|
|
79 |
%endif
|
|
80 |
|
|
81 |
mkdir %name-%version/%{base_arch}
|
|
82 |
%libgsf.prep -d %name-%version/%{base_arch}
|
12109
|
83 |
|
|
84 |
%build
|
13623
|
85 |
%ifarch amd64 sparcv9
|
|
86 |
if [ "x`basename $CC`" != xgcc ]
|
|
87 |
then
|
|
88 |
FLAG64="-xarch=generic64"
|
|
89 |
else
|
|
90 |
FLAG64="-m64"
|
|
91 |
fi
|
|
92 |
|
|
93 |
export LDFLAGS="$FLAG64"
|
|
94 |
export CFLAGS="%optflags64"
|
|
95 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
96 |
%libgsf_64.build -d %name-%version/%_arch64
|
|
97 |
%endif
|
|
98 |
|
|
99 |
export LDFLAGS="%_ldflags"
|
13354
|
100 |
export CFLAGS="%optflags"
|
12109
|
101 |
export RPM_OPT_FLAGS="$CFLAGS"
|
13354
|
102 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
|
13623
|
103 |
%libgsf.build -d %name-%version/%{base_arch}
|
12109
|
104 |
|
|
105 |
%install
|
|
106 |
rm -rf $RPM_BUILD_ROOT
|
|
107 |
|
13623
|
108 |
%ifarch amd64 sparcv9
|
|
109 |
%libgsf_64.install -d %name-%version/%_arch64
|
|
110 |
%endif
|
|
111 |
|
|
112 |
%libgsf.install -d %name-%version/%{base_arch}
|
12109
|
113 |
|
|
114 |
%if %build_l10n
|
|
115 |
%else
|
|
116 |
# REMOVE l10n FILES
|
|
117 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
118 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z][a-z]
|
|
119 |
%endif
|
|
120 |
|
|
121 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
122 |
|
|
123 |
%clean
|
|
124 |
rm -rf $RPM_BUILD_ROOT
|
|
125 |
|
|
126 |
%post root
|
|
127 |
%include gconf-install.script
|
|
128 |
|
|
129 |
%preun root
|
|
130 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
|
|
131 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
|
|
132 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
|
|
133 |
echo ' exit 0';
|
|
134 |
echo '}';
|
|
135 |
echo 'umask 0022';
|
|
136 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
|
|
137 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
|
|
138 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
|
|
139 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
|
|
140 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
|
|
141 |
echo 'schemas="$SDIR/gsf-office-thumbnailer.schemas"';
|
|
142 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
|
|
143 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
|
|
144 |
|
|
145 |
%files
|
|
146 |
%defattr (-, root, bin)
|
|
147 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
148 |
%{_bindir}/*
|
|
149 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
150 |
%{_libdir}/lib*.so*
|
|
151 |
%attr (-, root, bin) %{_libdir}/python*
|
|
152 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
153 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
154 |
%dir %attr(0755, root, bin) %{_mandir}/man1
|
|
155 |
%{_mandir}/man1/*
|
13623
|
156 |
%ifarch amd64 sparcv9
|
|
157 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
|
13670
|
158 |
%{_libdir}/%{_arch64}/lib*.so*
|
13623
|
159 |
%endif
|
12109
|
160 |
|
|
161 |
%files root
|
|
162 |
%defattr (-, root, sys)
|
|
163 |
%attr (0755, root, sys) %dir %{_sysconfdir}
|
|
164 |
%{_sysconfdir}/gconf/schemas/gsf-office-thumbnailer.schemas
|
|
165 |
|
|
166 |
%files devel
|
|
167 |
%defattr (-, root, bin)
|
|
168 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
169 |
%{_includedir}/libgsf-1
|
|
170 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
171 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
172 |
%{_libdir}/pkgconfig/*
|
|
173 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
174 |
%{_datadir}/gtk-doc
|
13670
|
175 |
%ifarch amd64 sparcv9
|
|
176 |
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig
|
|
177 |
%{_libdir}/%{_arch64}/pkgconfig/*
|
|
178 |
%endif
|
|
179 |
%doc -d %{base_arch}/libgsf-%{libgsf.version} AUTHORS ChangeLog NEWS README
|
|
180 |
%doc(bzip2) -d %{base_arch}/libgsf-%{libgsf.version} COPYING COPYING.LIB
|
|
181 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
12109
|
182 |
|
|
183 |
%if %build_l10n
|
|
184 |
%files l10n
|
|
185 |
%defattr (-, root, bin)
|
|
186 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
187 |
%attr (-, root, other) %{_datadir}/locale
|
|
188 |
%endif
|
|
189 |
|
|
190 |
%changelog
|
13670
|
191 |
* Fri Sep 19 2008 - [email protected]
|
|
192 |
- Add %doc for copyright files and fix an install issue.
|
13623
|
193 |
* Wed Sep 17 2008 - [email protected]
|
|
194 |
- Use gio and support 64bit build
|
13354
|
195 |
* Tue Sep 02 2008 - [email protected]
|
|
196 |
- Remove useless /usr/sfw stuff to CFLAGS and LDFLAGS
|
|
197 |
- Add /usr/share/aclocal to ACLOCAL_FLAGS to fix build issue
|
13081
|
198 |
* Fri Aug 08 2008 - [email protected]
|
|
199 |
- Correct the dependency as below to fix the integration issues(CR6734966)
|
|
200 |
Requires: SUNWlibms, BuildRequires: SUNWlibm
|
12109
|
201 |
* Mon Apr 14 2008 - [email protected]
|
|
202 |
- Spilit from SUNWdesktop-search-libs.spec
|