9397
|
1 |
#
|
|
2 |
# spec file for package SUNWgnome-pilot
|
|
3 |
#
|
|
4 |
# includes module(s): gnome-pilot
|
|
5 |
#
|
10600
|
6 |
# Copyright 2007 Sun Microsystems, Inc.
|
9397
|
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: jyu_mit
|
|
11 |
#
|
|
12 |
%include Solaris.inc
|
|
13 |
%define makeinstall make install
|
|
14 |
%use gpilot = gnome-pilot.spec
|
|
15 |
|
|
16 |
Name: SUNWgnome-pilot
|
|
17 |
Summary: PalmPilot link utilities
|
|
18 |
Version: %{gpilot.version}
|
|
19 |
Source: %{name}-manpages-0.1.tar.gz
|
|
20 |
SUNW_BaseDir: %{_basedir}
|
|
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
22 |
%include default-depend.inc
|
|
23 |
Requires: SUNWgnome-panel
|
|
24 |
Requires: SUNWgnome-base-libs
|
|
25 |
Requires: SUNWgnome-libs
|
|
26 |
Requires: SUNWxwrtl
|
|
27 |
# SUNWxwplt and SUNWxwice contain the libSM.so.6 and libICE.so.6 libraries while
|
|
28 |
# SUNWxwrtl contains symlinks pointing to these. ldd points to the symlinks.
|
|
29 |
Requires: SUNWxwplt
|
|
30 |
Requires: SUNWxwice
|
|
31 |
Requires: SUNWlxml
|
|
32 |
Requires: SUNWzlib
|
|
33 |
Requires: SUNWlibpopt
|
|
34 |
Requires: SUNWmlib
|
|
35 |
Requires: SUNWlibms
|
|
36 |
Requires: SUNWlibmsr
|
|
37 |
Requires: SUNWgnome-component
|
|
38 |
Requires: SUNWgnome-config
|
|
39 |
Requires: SUNWgnome-vfs
|
|
40 |
Requires: SUNWpostrun
|
|
41 |
Requires: SUNWpilot-link
|
|
42 |
BuildRequires: SUNWgnome-panel-devel
|
|
43 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
44 |
BuildRequires: SUNWgnome-libs-devel
|
|
45 |
BuildRequires: SUNWgnome-component-devel
|
|
46 |
BuildRequires: SUNWgnome-config-devel
|
|
47 |
BuildRequires: SUNWgnome-vfs-devel
|
|
48 |
BuildRequires: SUNWpilot-link-devel
|
|
49 |
BuildConflicts: SUNWgnome-pilot-link
|
|
50 |
BuildConflicts: SUNWgnome-pilot-link-root
|
|
51 |
BuildConflicts: SUNWgnome-pilot-link-share
|
|
52 |
BuildConflicts: SUNWgnome-pilot-link-devel
|
|
53 |
BuildConflicts: SUNWgnome-pilot-link-devel-share
|
|
54 |
|
|
55 |
%if %build_l10n
|
|
56 |
%package l10n
|
|
57 |
Summary: %{summary} - l10n files
|
|
58 |
SUNW_BaseDir: %{_basedir}
|
|
59 |
%include default-depend.inc
|
|
60 |
Requires: %{name}
|
|
61 |
%endif
|
|
62 |
|
|
63 |
%package root
|
|
64 |
Summary: %{summary} - / filesystem
|
|
65 |
SUNW_BaseDir: /
|
|
66 |
%include default-depend.inc
|
|
67 |
Requires: SUNWpostrun-root
|
|
68 |
Requires: SUNWgnome-config
|
|
69 |
|
|
70 |
%package devel
|
|
71 |
Summary: %{summary} - development files
|
|
72 |
SUNW_BaseDir: %{_basedir}
|
|
73 |
%include default-depend.inc
|
|
74 |
Requires: %{name}
|
|
75 |
|
|
76 |
%prep
|
|
77 |
rm -rf %name-%version
|
|
78 |
mkdir -p %name-%version
|
|
79 |
%gpilot.prep -d %name-%version
|
|
80 |
cd %{_builddir}/%name-%version
|
|
81 |
gzcat %SOURCE0 | tar xf -
|
|
82 |
|
|
83 |
%build
|
10600
|
84 |
export LDFLAGS="%_ldflags"
|
9397
|
85 |
export PKG_CONFIG_PATH=%{_pkg_config_path}
|
|
86 |
export CFLAGS="%optflags"
|
|
87 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
88 |
%gpilot.build -d %name-%version
|
|
89 |
|
|
90 |
%install
|
|
91 |
rm -rf $RPM_BUILD_ROOT
|
|
92 |
%gpilot.install -d %name-%version
|
|
93 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
94 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
95 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
96 |
|
|
97 |
%if %build_l10n
|
|
98 |
%else
|
|
99 |
# REMOVE l10n FILES
|
|
100 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
101 |
# rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]*
|
|
102 |
# rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/gnome-pilot-??*.omf
|
|
103 |
%endif
|
|
104 |
|
|
105 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):supported" $RPM_BUILD_ROOT}
|
|
106 |
|
|
107 |
%clean
|
|
108 |
rm -rf $RPM_BUILD_ROOT
|
|
109 |
|
|
110 |
%post
|
|
111 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
112 |
echo '/usr/bin/update-desktop-database'
|
|
113 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait
|
|
114 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
|
|
115 |
echo '/usr/bin/scrollkeeper-update'
|
|
116 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
117 |
|
|
118 |
%postun
|
|
119 |
test -x $BASEDIR/lib/postrun || exit 0
|
|
120 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
121 |
echo '/usr/bin/update-desktop-database'
|
|
122 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
123 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
|
|
124 |
echo '/usr/bin/scrollkeeper-update'
|
|
125 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
126 |
|
|
127 |
%post root
|
|
128 |
( echo 'test -x /usr/bin/gconftool-2 || {';
|
|
129 |
echo ' echo "ERROR: gconftool-2 not found"';
|
|
130 |
echo ' exit 0';
|
|
131 |
echo '}';
|
|
132 |
echo 'umask 0022';
|
|
133 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:/etc/gconf/gconf.xml.defaults';
|
|
134 |
echo 'export GCONF_CONFIG_SOURCE';
|
|
135 |
echo '/usr/bin/gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/*.schemas'
|
|
136 |
) | $BASEDIR/var/lib/postrun/postrun -u -c JDS_wait
|
|
137 |
|
|
138 |
%preun root
|
|
139 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
|
|
140 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
|
|
141 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
|
|
142 |
echo ' exit 0';
|
|
143 |
echo '}';
|
|
144 |
echo 'umask 0022';
|
|
145 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
|
|
146 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
|
|
147 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
|
|
148 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
|
|
149 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
|
|
150 |
echo 'schemas="$SDIR/pilot.schemas"';
|
|
151 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
|
|
152 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
|
|
153 |
|
|
154 |
%files
|
|
155 |
%defattr (-, root, bin)
|
|
156 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
157 |
%{_bindir}/*
|
|
158 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
159 |
%{_libdir}/lib*.so*
|
|
160 |
%{_libdir}/bonobo
|
|
161 |
%{_libdir}/gnome-pilot/conduits/lib*.so
|
|
162 |
%{_libexecdir}/gpilotd
|
|
163 |
%{_libexecdir}/gpilot-applet
|
|
164 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
165 |
%{_datadir}/gnome-pilot
|
|
166 |
%dir %attr (0755, root, other) %{_datadir}/mime-info
|
|
167 |
%{_datadir}/mime-info/*
|
|
168 |
%dir %attr (0755, root, other) %{_datadir}/pixmaps
|
|
169 |
%{_datadir}/pixmaps/*
|
|
170 |
%dir %attr (0755, root, other) %{_datadir}/applications
|
|
171 |
%{_datadir}/applications/*
|
|
172 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
173 |
%{_datadir}/gnome/help/gnome-pilot/C
|
|
174 |
%{_datadir}/omf/gnome-pilot/*-C.omf
|
|
175 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
176 |
%dir %attr(0755, root, bin) %{_mandir}/*
|
|
177 |
%{_mandir}/*/*
|
|
178 |
|
|
179 |
%if %build_l10n
|
|
180 |
%files l10n
|
|
181 |
%defattr (-, root, bin)
|
|
182 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
183 |
%attr (-, root, other) %{_datadir}/locale
|
|
184 |
%endif
|
|
185 |
|
|
186 |
%files devel
|
|
187 |
%defattr (-, root, bin)
|
|
188 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
189 |
%{_includedir}/*
|
|
190 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
191 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
192 |
%{_libdir}/pkgconfig/*
|
|
193 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
194 |
%{_datadir}/idl
|
|
195 |
|
|
196 |
%files root
|
9780
|
197 |
%defattr (-, root, sys)
|
9397
|
198 |
%dir %attr (0755, root, sys) %{_sysconfdir}
|
|
199 |
%{_sysconfdir}/gconf/schemas/pilot.schemas
|
|
200 |
|
|
201 |
%changelog
|
10600
|
202 |
* Wed Oct 3 2007 - [email protected]
|
|
203 |
- delete unneeded env vars, set LDFLAGS to %_ldflags
|
9780
|
204 |
* Tue Apr 24 2007 - [email protected]
|
|
205 |
- s/0755/-/ in defattr so that files are not made all executable
|
9397
|
206 |
* Thu Jan 04 2007 - [email protected]
|
|
207 |
- Update to new version 2.0.15
|
|
208 |
* Mon Sep 04 2006 - [email protected]
|
|
209 |
- New Manpage tarball
|
|
210 |
* Fri Jul 14 2006 - [email protected]
|
|
211 |
- update %post/%postun/etc scripts to support diskless client setup,
|
|
212 |
part of 6448317
|
|
213 |
* Thu Jun 29 2006 - [email protected]
|
|
214 |
- update postrun scripts
|
|
215 |
* Wed Jun 28 2006 - [email protected]
|
|
216 |
- Remove Build/Requires SUNWgob.
|
|
217 |
* Sun Jun 11 2006 - [email protected]
|
|
218 |
- change group from other to bin/sys
|
|
219 |
* Thu Jan 08 2006 - [email protected]
|
|
220 |
- Change dependency from SUNWgob2 to SUNWgob.
|
|
221 |
* Tue Jun 06 2006 - [email protected]
|
|
222 |
- Add build depend SUNWgob2.
|
|
223 |
* Fri Jun 2 2006 - [email protected]
|
|
224 |
- use post/preun scripts to install schemas into the merged gconf files
|
|
225 |
* Thu Jun 01 2006 - [email protected]
|
|
226 |
- Remove SUNWlibmr dependency. It was a typo when fixing 6380655. This removal
|
|
227 |
fixes 6432832.
|
|
228 |
* Thu May 11 2006 - [email protected]
|
|
229 |
- Change %defattr to (-, root, other).
|
|
230 |
- Merge -share pkg(s) into the base pkg(s).
|
|
231 |
* Mon Mar 20 2006 - [email protected]
|
|
232 |
- Install capplet into the correct location.
|
|
233 |
* Fri Feb 3 2006 - [email protected]
|
|
234 |
- Add multiple Build/Requires to fix 6380655.
|
|
235 |
* Tue Jan 10 2006 - [email protected]
|
|
236 |
- Inherited from SUNWgnome-pilot-link(tag=cinnabar-solaris)
|
|
237 |
to replace SUNWgnome-pilot-link.spec.
|
|
238 |
* Sat Dec 3 2005 - [email protected]
|
|
239 |
- add %post script that runs update-desktop-database
|
|
240 |
* Tue Nov 29 2005 - [email protected]
|
|
241 |
- remove javahelp stuff
|
|
242 |
* Mon Sep 12 2005 - [email protected]
|
|
243 |
- Add missing dir to %files
|
|
244 |
* Tue Jul 12 2005 - [email protected]
|
|
245 |
- Disable inclusion of some l10n files as they are not yet available.
|
|
246 |
* Sat Oct 02 2004 - [email protected]
|
|
247 |
- added %pkgbuild_postprocess
|
|
248 |
* Thu Sep 09 2004 [email protected]
|
|
249 |
- Added gpilot-install-file.1, gpilotd-control-applet.1 manpages
|
|
250 |
* Thu Aug 26 2004 [email protected]
|
|
251 |
- Minor mod to how omf files specified in l10n package so C locale version is
|
|
252 |
not included as it is already in the -share package.
|
|
253 |
* Wed Aug 25 2004 [email protected]
|
|
254 |
- Added l10n help entry in l10 pkg
|
|
255 |
* Sat Jun 26 2004 [email protected]
|
|
256 |
- Changed install location to /usr/...
|
|
257 |
* Wed Jun 2 2004 - [email protected]
|
|
258 |
- Added %{_datadir}/locale to install l10n messages
|
|
259 |
* Tue Mar 16 2004 - <[email protected]>
|
|
260 |
- initial version created
|