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 |
#
|
12410
|
10 |
# Owner:jerrytan
|
12109
|
11 |
#
|
|
12 |
%include Solaris.inc
|
|
13 |
|
|
14 |
%use libgsf = libgsf.spec
|
|
15 |
|
|
16 |
Name: SUNWlibgsf
|
|
17 |
Summary: GNOME Structured File Library
|
|
18 |
Version: %{default_pkg_version}
|
|
19 |
SUNW_BaseDir: %{_basedir}
|
|
20 |
SUNW_Copyright: %{name}.copyright
|
|
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
22 |
|
|
23 |
%include default-depend.inc
|
|
24 |
Requires: SUNWlibgsf-root
|
|
25 |
Requires: SUNWgnome-base-libs
|
|
26 |
Requires: SUNWgnome-component
|
|
27 |
Requires: SUNWgnome-vfs
|
|
28 |
Requires: SUNWgnome-config
|
|
29 |
Requires: SUNWdbus
|
|
30 |
Requires: SUNWdbus-bindings
|
|
31 |
Requires: SUNWlxml
|
|
32 |
Requires: SUNWbzip
|
|
33 |
Requires: SUNWzlib
|
|
34 |
Requires: SUNWlibm
|
|
35 |
Requires: SUNWopenssl-libraries
|
|
36 |
Requires: SUNWgnome-python-libs
|
|
37 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
38 |
BuildRequires: SUNWgnome-component-devel
|
|
39 |
BuildRequires: SUNWgnome-vfs-devel
|
|
40 |
BuildRequires: SUNWlxml-devel
|
|
41 |
BuildRequires: SUNWopenssl-include
|
|
42 |
BuildRequires: SUNWgnome-python-libs-devel
|
|
43 |
|
|
44 |
%package root
|
|
45 |
Summary: %{summary} - / filesystem
|
|
46 |
SUNW_BaseDir: /
|
|
47 |
%include default-depend.inc
|
|
48 |
Requires: SUNWpostrun
|
|
49 |
|
|
50 |
%package devel
|
|
51 |
Summary: %{summary} - development files
|
|
52 |
SUNW_BaseDir: %{_basedir}
|
|
53 |
%include default-depend.inc
|
|
54 |
Requires: %{name}
|
|
55 |
|
|
56 |
%if %build_l10n
|
|
57 |
%package l10n
|
|
58 |
Summary: %{summary} - l10n files
|
|
59 |
SUNW_BaseDir: %{_basedir}
|
|
60 |
%include default-depend.inc
|
|
61 |
Requires: %{name}
|
|
62 |
%endif
|
|
63 |
|
|
64 |
%prep
|
|
65 |
rm -rf %name-%version
|
|
66 |
mkdir %name-%version
|
|
67 |
%libgsf.prep -d %name-%version
|
|
68 |
|
|
69 |
%build
|
|
70 |
export CFLAGS="%optflags -I/usr/sfw/include"
|
|
71 |
export LDFLAGS="%_ldflags -L/usr/sfw/lib -R/usr/sfw/lib"
|
|
72 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
73 |
|
|
74 |
%libgsf.build -d %name-%version
|
|
75 |
|
|
76 |
%install
|
|
77 |
rm -rf $RPM_BUILD_ROOT
|
|
78 |
|
|
79 |
%libgsf.install -d %name-%version
|
|
80 |
|
|
81 |
%if %build_l10n
|
|
82 |
%else
|
|
83 |
# REMOVE l10n FILES
|
|
84 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
85 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z][a-z]
|
|
86 |
%endif
|
|
87 |
|
|
88 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
89 |
|
|
90 |
%clean
|
|
91 |
rm -rf $RPM_BUILD_ROOT
|
|
92 |
|
|
93 |
%post root
|
|
94 |
%include gconf-install.script
|
|
95 |
|
|
96 |
%preun root
|
|
97 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
|
|
98 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
|
|
99 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
|
|
100 |
echo ' exit 0';
|
|
101 |
echo '}';
|
|
102 |
echo 'umask 0022';
|
|
103 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
|
|
104 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
|
|
105 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
|
|
106 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
|
|
107 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
|
|
108 |
echo 'schemas="$SDIR/gsf-office-thumbnailer.schemas"';
|
|
109 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
|
|
110 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
|
|
111 |
|
|
112 |
%files
|
|
113 |
%defattr (-, root, bin)
|
|
114 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
115 |
%{_bindir}/*
|
|
116 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
117 |
%{_libdir}/lib*.so*
|
|
118 |
%attr (-, root, bin) %{_libdir}/python*
|
|
119 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
120 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
121 |
%dir %attr(0755, root, bin) %{_mandir}/man1
|
|
122 |
%{_mandir}/man1/*
|
|
123 |
|
|
124 |
%files root
|
|
125 |
%defattr (-, root, sys)
|
|
126 |
%attr (0755, root, sys) %dir %{_sysconfdir}
|
|
127 |
%{_sysconfdir}/gconf/schemas/gsf-office-thumbnailer.schemas
|
|
128 |
|
|
129 |
%files devel
|
|
130 |
%defattr (-, root, bin)
|
|
131 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
132 |
%{_includedir}/libgsf-1
|
|
133 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
134 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
135 |
%{_libdir}/pkgconfig/*
|
|
136 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
137 |
%{_datadir}/gtk-doc
|
|
138 |
|
|
139 |
%if %build_l10n
|
|
140 |
%files l10n
|
|
141 |
%defattr (-, root, bin)
|
|
142 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
143 |
%attr (-, root, other) %{_datadir}/locale
|
|
144 |
%endif
|
|
145 |
|
|
146 |
%changelog
|
|
147 |
* Mon Apr 14 2008 - [email protected]
|
|
148 |
- Spilit from SUNWdesktop-search-libs.spec
|