author | Jon Tibble <meths@btinternet.com> |
Sat, 06 Oct 2012 16:11:50 +0100 | |
branch | s11express-2010-11 |
changeset 22109 | db10202d5f6d |
parent 17937 | 664c0536875a |
child 18269 | 5218a1567988 |
child 20169 | 269b1e9ef64e |
permissions | -rw-r--r-- |
12109 | 1 |
# |
2 |
# spec file for packages SUNWlibgsf |
|
3 |
# |
|
4 |
# includes module(s): libgsf |
|
5 |
# |
|
15556 | 6 |
# Copyright 2009 Sun Microsystems, Inc. |
12109 | 7 |
# This file and all modifications and additions to the pristine |
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
16434 | 10 |
%define owner jerrytan |
16765 | 11 |
%define pythonver 2.4 |
12 |
||
12109 | 13 |
%include Solaris.inc |
14 |
||
13623 | 15 |
%ifarch amd64 sparcv9 |
16 |
%include arch64.inc |
|
17 |
%use libgsf_64 = libgsf.spec |
|
18 |
%endif |
|
19 |
||
20 |
%include base.inc |
|
12109 | 21 |
%use libgsf = libgsf.spec |
22 |
||
23 |
Name: SUNWlibgsf |
|
17937
664c0536875a
Added tags IPS_package_name and Meta(info.consolidation)
davelam
parents:
17902
diff
changeset
|
24 |
IPS_package_name: library/desktop/libgsf |
664c0536875a
Added tags IPS_package_name and Meta(info.consolidation)
davelam
parents:
17902
diff
changeset
|
25 |
Meta(info.classification): %{classification_prefix}:Desktop (GNOME)/Libraries |
12109 | 26 |
Summary: GNOME Structured File Library |
27 |
Version: %{default_pkg_version} |
|
14493 | 28 |
Source: %{name}-manpages-0.1.tar.gz |
12109 | 29 |
SUNW_BaseDir: %{_basedir} |
30 |
SUNW_Copyright: %{name}.copyright |
|
31 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
32 |
||
33 |
%include default-depend.inc |
|
15650 | 34 |
Requires: SUNWlxmlr |
35 |
Requires: SUNWglib2 |
|
12109 | 36 |
Requires: SUNWlibgsf-root |
37 |
Requires: SUNWgnome-component |
|
38 |
Requires: SUNWgnome-vfs |
|
39 |
Requires: SUNWgnome-config |
|
40 |
Requires: SUNWlxml |
|
41 |
Requires: SUNWbzip |
|
42 |
Requires: SUNWzlib |
|
13081 | 43 |
Requires: SUNWlibms |
12109 | 44 |
Requires: SUNWgnome-python-libs |
15556 | 45 |
Requires: SUNWdesktop-cache |
15650 | 46 |
BuildRequires: SUNWglib2-devel |
13081 | 47 |
BuildRequires: SUNWlibm |
12109 | 48 |
BuildRequires: SUNWgnome-component-devel |
49 |
BuildRequires: SUNWgnome-vfs-devel |
|
50 |
BuildRequires: SUNWlxml-devel |
|
51 |
BuildRequires: SUNWgnome-python-libs-devel |
|
14933 | 52 |
BuildRequires: SUNWpython-setuptools |
12109 | 53 |
|
54 |
%package root |
|
55 |
Summary: %{summary} - / filesystem |
|
56 |
SUNW_BaseDir: / |
|
57 |
%include default-depend.inc |
|
58 |
||
59 |
%package devel |
|
60 |
Summary: %{summary} - development files |
|
61 |
SUNW_BaseDir: %{_basedir} |
|
62 |
%include default-depend.inc |
|
63 |
Requires: %{name} |
|
15650 | 64 |
Requires: SUNWglib2-devel |
15488 | 65 |
Requires: SUNWlxml-devel |
66 |
Requires: SUNWgnome-component-devel |
|
12109 | 67 |
|
68 |
%if %build_l10n |
|
69 |
%package l10n |
|
70 |
Summary: %{summary} - l10n files |
|
71 |
SUNW_BaseDir: %{_basedir} |
|
72 |
%include default-depend.inc |
|
73 |
Requires: %{name} |
|
74 |
%endif |
|
75 |
||
76 |
%prep |
|
77 |
rm -rf %name-%version |
|
78 |
mkdir %name-%version |
|
13623 | 79 |
|
80 |
%ifarch amd64 sparcv9 |
|
81 |
mkdir %name-%version/%_arch64 |
|
82 |
%libgsf_64.prep -d %name-%version/%_arch64 |
|
83 |
%endif |
|
84 |
||
85 |
mkdir %name-%version/%{base_arch} |
|
86 |
%libgsf.prep -d %name-%version/%{base_arch} |
|
12109 | 87 |
|
14493 | 88 |
cd %{_builddir}/%name-%version |
89 |
gzcat %SOURCE0 | tar xf - |
|
90 |
||
12109 | 91 |
%build |
13623 | 92 |
%ifarch amd64 sparcv9 |
93 |
if [ "x`basename $CC`" != xgcc ] |
|
94 |
then |
|
95 |
FLAG64="-xarch=generic64" |
|
96 |
else |
|
97 |
FLAG64="-m64" |
|
98 |
fi |
|
99 |
||
100 |
export LDFLAGS="$FLAG64" |
|
101 |
export CFLAGS="%optflags64" |
|
102 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
16161 | 103 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" |
13623 | 104 |
%libgsf_64.build -d %name-%version/%_arch64 |
105 |
%endif |
|
106 |
||
107 |
export LDFLAGS="%_ldflags" |
|
13354 | 108 |
export CFLAGS="%optflags" |
12109 | 109 |
export RPM_OPT_FLAGS="$CFLAGS" |
13354 | 110 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" |
13623 | 111 |
%libgsf.build -d %name-%version/%{base_arch} |
12109 | 112 |
|
113 |
%install |
|
114 |
rm -rf $RPM_BUILD_ROOT |
|
115 |
||
13623 | 116 |
%ifarch amd64 sparcv9 |
117 |
%libgsf_64.install -d %name-%version/%_arch64 |
|
118 |
%endif |
|
119 |
||
120 |
%libgsf.install -d %name-%version/%{base_arch} |
|
12109 | 121 |
|
122 |
%if %build_l10n |
|
123 |
%else |
|
124 |
# REMOVE l10n FILES |
|
125 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
126 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z][a-z] |
|
127 |
%endif |
|
128 |
||
14493 | 129 |
# install man page |
130 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
131 |
cd %{_builddir}/%name-%version/sun-manpages |
|
132 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
133 |
||
12109 | 134 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
135 |
||
136 |
%clean |
|
137 |
rm -rf $RPM_BUILD_ROOT |
|
138 |
||
15556 | 139 |
%post |
140 |
%restart_fmri gconf-cache |
|
12109 | 141 |
|
142 |
%files |
|
143 |
%defattr (-, root, bin) |
|
144 |
%dir %attr (0755, root, bin) %{_bindir} |
|
145 |
%{_bindir}/* |
|
146 |
%dir %attr (0755, root, bin) %{_libdir} |
|
147 |
%{_libdir}/lib*.so* |
|
148 |
%attr (-, root, bin) %{_libdir}/python* |
|
149 |
%dir %attr (0755, root, sys) %{_datadir} |
|
13623 | 150 |
%ifarch amd64 sparcv9 |
151 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64} |
|
13670 | 152 |
%{_libdir}/%{_arch64}/lib*.so* |
13623 | 153 |
%endif |
14493 | 154 |
%dir %attr(0755, root, bin) %{_mandir} |
155 |
%dir %attr(0755, root, bin) %{_mandir}/man1 |
|
15348 | 156 |
%dir %attr(0755, root, bin) %{_mandir}/man3 |
14493 | 157 |
%{_mandir}/man1/* |
15348 | 158 |
%{_mandir}/man3/* |
12109 | 159 |
|
160 |
%files root |
|
161 |
%defattr (-, root, sys) |
|
162 |
%attr (0755, root, sys) %dir %{_sysconfdir} |
|
163 |
%{_sysconfdir}/gconf/schemas/gsf-office-thumbnailer.schemas |
|
164 |
||
165 |
%files devel |
|
166 |
%defattr (-, root, bin) |
|
167 |
%dir %attr (0755, root, bin) %{_includedir} |
|
168 |
%{_includedir}/libgsf-1 |
|
169 |
%dir %attr (0755, root, bin) %{_libdir} |
|
170 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
171 |
%{_libdir}/pkgconfig/* |
|
172 |
%dir %attr (0755, root, sys) %{_datadir} |
|
173 |
%{_datadir}/gtk-doc |
|
13670 | 174 |
%ifarch amd64 sparcv9 |
175 |
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig |
|
176 |
%{_libdir}/%{_arch64}/pkgconfig/* |
|
177 |
%endif |
|
178 |
%doc -d %{base_arch}/libgsf-%{libgsf.version} AUTHORS ChangeLog NEWS README |
|
179 |
%doc(bzip2) -d %{base_arch}/libgsf-%{libgsf.version} COPYING COPYING.LIB |
|
180 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
12109 | 181 |
|
182 |
%if %build_l10n |
|
183 |
%files l10n |
|
184 |
%defattr (-, root, bin) |
|
185 |
%dir %attr (0755, root, sys) %{_datadir} |
|
186 |
%attr (-, root, other) %{_datadir}/locale |
|
187 |
%endif |
|
188 |
||
189 |
%changelog |
|
15556 | 190 |
* Fri Apr 3 2009 - [email protected] |
191 |
- use desktop-cache instead of postrun |
|
15488 | 192 |
* Mon Mar 24 2009 - [email protected] |
193 |
- Since /usr/lib/amd64/pkgconfig/libgsf-1.pc (SUNWlibgsf-devel) requires |
|
194 |
/usr/lib/amd64/pkgconfig/glib-2.0.pc which is found in |
|
195 |
SUNWgnome-base-libs-devel, add the dependency. |
|
196 |
- Since /usr/lib/amd64/pkgconfig/libgsf-1.pc (SUNWlibgsf-devel) requires |
|
197 |
/usr/lib/amd64/pkgconfig/gobject-2.0.pc which is found in |
|
198 |
SUNWgnome-base-libs-devel, add the dependency. |
|
199 |
- Since /usr/lib/amd64/pkgconfig/libgsf-1.pc (SUNWlibgsf-devel) requires |
|
200 |
/usr/lib/amd64/pkgconfig/libxml-2.0.pc which is found in |
|
201 |
SUNWlxml-devel, add the dependency. |
|
202 |
- Since /usr/lib/amd64/pkgconfig/libgsf-gnome-1.pc (SUNWlibgsf-devel) requires |
|
203 |
/usr/lib/amd64/pkgconfig/libbonobo-2.0.pc which is found in |
|
204 |
SUNWgnome-component-devel, add the dependency. |
|
15348 | 205 |
* Wed Mar 11 2009 - [email protected] |
206 |
- Add %{_datadir}/man/man3 in %files |
|
13670 | 207 |
* Fri Sep 19 2008 - [email protected] |
208 |
- Add %doc for copyright files and fix an install issue. |
|
13623 | 209 |
* Wed Sep 17 2008 - [email protected] |
210 |
- Use gio and support 64bit build |
|
13354 | 211 |
* Tue Sep 02 2008 - [email protected] |
212 |
- Remove useless /usr/sfw stuff to CFLAGS and LDFLAGS |
|
213 |
- Add /usr/share/aclocal to ACLOCAL_FLAGS to fix build issue |
|
13081 | 214 |
* Fri Aug 08 2008 - [email protected] |
215 |
- Correct the dependency as below to fix the integration issues(CR6734966) |
|
216 |
Requires: SUNWlibms, BuildRequires: SUNWlibm |
|
12109 | 217 |
* Mon Apr 14 2008 - [email protected] |
218 |
- Spilit from SUNWdesktop-search-libs.spec |
|
15650 | 219 |