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