9397
|
1 |
#
|
|
2 |
# spec file for package SUNWgnome-character-map
|
|
3 |
#
|
|
4 |
# includes module(s): gucharmap
|
|
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: dkenny
|
|
11 |
#
|
|
12 |
%include Solaris.inc
|
|
13 |
|
|
14 |
%use gucharmap = gucharmap.spec
|
|
15 |
|
|
16 |
Name: SUNWgnome-character-map
|
|
17 |
Summary: GNOME character map utility
|
|
18 |
Version: %{default_pkg_version}
|
|
19 |
Source: %{name}-manpages-0.1.tar.gz
|
|
20 |
SUNW_BaseDir: %{_basedir}
|
12114
|
21 |
SUNW_Copyright: %{name}.copyright
|
9397
|
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
23 |
%include default-depend.inc
|
|
24 |
Requires: SUNWgnome-libs
|
|
25 |
Requires: SUNWgnome-base-libs
|
|
26 |
BuildRequires: SUNWgnome-libs-devel
|
|
27 |
BuildRequires: SUNWgnome-base-libs-devel
|
10637
|
28 |
BuildRequires: SUNWgnome-doc-utils
|
9397
|
29 |
Requires: SUNWpostrun
|
12642
|
30 |
Requires: %{name}-root
|
9397
|
31 |
|
11290
|
32 |
%package root
|
|
33 |
Summary: %{summary} - / filesystem
|
|
34 |
SUNW_BaseDir: /
|
|
35 |
%include default-depend.inc
|
|
36 |
Requires: SUNWpostrun-root
|
|
37 |
Requires: SUNWgnome-config
|
|
38 |
|
9397
|
39 |
%package devel
|
|
40 |
Summary: %{summary} - development files
|
|
41 |
SUNW_BaseDir: %{_basedir}
|
|
42 |
%include default-depend.inc
|
|
43 |
Requires: SUNWgnome-character-map
|
|
44 |
Requires: SUNWperl584usr
|
|
45 |
Requires: SUNWlibms
|
|
46 |
|
|
47 |
%if %build_l10n
|
|
48 |
%package l10n
|
|
49 |
Summary: %{summary} - l10n files
|
|
50 |
SUNW_BaseDir: %{_basedir}
|
|
51 |
%include default-depend.inc
|
|
52 |
Requires: %{name}
|
|
53 |
%endif
|
|
54 |
|
|
55 |
%prep
|
|
56 |
rm -rf %name-%version
|
|
57 |
mkdir %name-%version
|
|
58 |
%gucharmap.prep -d %name-%version
|
|
59 |
cd %{_builddir}/%name-%version
|
|
60 |
gzcat %SOURCE0 | tar xf -
|
|
61 |
|
|
62 |
%build
|
|
63 |
export PKG_CONFIG_PATH=%{_pkg_config_path}
|
|
64 |
export CFLAGS="%optflags -I%{_includedir}"
|
|
65 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
66 |
export LDFLAGS="%_ldflags"
|
12681
|
67 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
|
9397
|
68 |
%gucharmap.build -d %name-%version
|
|
69 |
|
|
70 |
%install
|
|
71 |
%gucharmap.install -d %name-%version
|
|
72 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
73 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
74 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
75 |
|
|
76 |
# Remove scrollkeeper files.
|
|
77 |
rm -rf $RPM_BUILD_ROOT%{_localstatedir}
|
|
78 |
|
|
79 |
%if %build_l10n
|
|
80 |
%else
|
|
81 |
# REMOVE l10n FILES
|
|
82 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
83 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]*
|
|
84 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf
|
|
85 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf
|
|
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
|
|
94 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
95 |
echo '/usr/bin/update-desktop-database'
|
|
96 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait
|
|
97 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
|
|
98 |
echo '/usr/bin/scrollkeeper-update'
|
|
99 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
100 |
|
|
101 |
%postun
|
|
102 |
test -x $BASEDIR/lib/postrun || exit 0
|
|
103 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
104 |
echo '/usr/bin/update-desktop-database'
|
|
105 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
106 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
|
|
107 |
echo '/usr/bin/scrollkeeper-update'
|
|
108 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
109 |
|
11290
|
110 |
%post root
|
11370
|
111 |
%include gconf-install.script
|
11290
|
112 |
|
|
113 |
%preun root
|
|
114 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
|
|
115 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
|
|
116 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
|
|
117 |
echo ' exit 0';
|
|
118 |
echo '}';
|
|
119 |
echo 'umask 0022';
|
|
120 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
|
|
121 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
|
|
122 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
|
|
123 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
|
|
124 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
|
|
125 |
echo 'schemas="$SDIR/metacity.schemas"';
|
|
126 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
|
|
127 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
|
|
128 |
|
9397
|
129 |
%files
|
|
130 |
%defattr (-, root, bin)
|
|
131 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
132 |
%{_bindir}/*char*map*
|
|
133 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
134 |
%{_libdir}/libgucharmap*.so*
|
|
135 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
136 |
%dir %attr (0755, root, other) %{_datadir}/applications
|
|
137 |
%{_datadir}/applications/gucharmap.desktop
|
|
138 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
139 |
%{_datadir}/gnome/help/gucharmap/C
|
|
140 |
%{_datadir}/omf/gucharmap/gucharmap-C.omf
|
|
141 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
142 |
%dir %attr(0755, root, bin) %{_mandir}/*
|
|
143 |
%{_mandir}/*/*char*map*
|
|
144 |
|
11290
|
145 |
%files root
|
|
146 |
%defattr (-, root, sys)
|
|
147 |
%attr (0755, root, sys) %dir %{_sysconfdir}
|
|
148 |
%{_sysconfdir}/gconf/schemas/gucharmap.schemas
|
|
149 |
|
9397
|
150 |
%files devel
|
|
151 |
%defattr (-, root, bin)
|
|
152 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
153 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
154 |
%{_libdir}/pkgconfig/*
|
|
155 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
156 |
%{_includedir}/*
|
|
157 |
|
|
158 |
%if %build_l10n
|
|
159 |
%files l10n
|
|
160 |
%defattr (-, root, bin)
|
|
161 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
162 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
163 |
%attr (-, root, other) %{_datadir}/locale
|
|
164 |
%{_datadir}/gnome/help/*/[a-z]*
|
|
165 |
%{_datadir}/omf/*/*-[a-z][a-z].omf
|
|
166 |
%{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf
|
|
167 |
%endif
|
|
168 |
|
|
169 |
%changelog
|
12681
|
170 |
* Tue Jun 17 2008 - [email protected]
|
|
171 |
- Update %files as the %{_datadir}/icons dir is no longer delivered - a stock
|
|
172 |
icon is used.
|
12642
|
173 |
* Thu Jun 12 2008 - [email protected]
|
|
174 |
- Add missing root package dependency
|
11370
|
175 |
* Thu Jan 3 2008 - [email protected]
|
|
176 |
- use gconf-install.script instead of an inline script
|
11290
|
177 |
* Wed Nov 05 2007 - [email protected]
|
|
178 |
- Add root package and post/preun scripts for gucharmap.schemas.
|
10637
|
179 |
* Wed Oct 10 2007 - [email protected]
|
|
180 |
- Remove 'Requires: SUNWgnome-doc-utils' as it is only used during building;
|
|
181 |
change SUNWgnome-doc-utils-devel to SUNWgnome-doc-utils to match change in
|
|
182 |
SUNWgnome-doc-utils.spec.
|
9397
|
183 |
* Fri Sep 01 2006 - [email protected]
|
|
184 |
- New Manpage tarball
|
|
185 |
* Fri Aug 25 2006 - [email protected]
|
|
186 |
- Add new charmap.1 manpage.
|
|
187 |
* Sat Aug 12 2006 - [email protected]
|
|
188 |
- delete some unnecessary env variables
|
|
189 |
* Sat Aug 12 2006 - [email protected]
|
|
190 |
- change datadir/icons permissions back to root:other since it's a stable
|
|
191 |
interface and wasn't supposed to be changed
|
|
192 |
* Fri Jul 14 2006 - [email protected]
|
|
193 |
- update %post/%postun/etc scripts to support diskless client setup,
|
|
194 |
part of 6448317
|
|
195 |
* Thu Jun 29 2006 - [email protected]
|
|
196 |
- update postrun scripts
|
|
197 |
* Sun Jun 11 2006 - [email protected]
|
|
198 |
- change group from other to bin/sys
|
|
199 |
* Fri Jun 02 2006 - [email protected]
|
|
200 |
- Add Build/Requires SUNWgnome-doc-utils/-devel otherwise build fails.
|
|
201 |
* Wed May 10 2006 - [email protected]
|
|
202 |
- merge -share pkg(s) into the base pkg(s)
|
|
203 |
* Mon Feb 20 2006 - [email protected]
|
|
204 |
- Update Build/Requires after running check-deps.pl script.
|
|
205 |
* Tue Feb 14 2006 - [email protected]
|
|
206 |
- Change %files share for new tarball (gucharmap.png now under icons).
|
|
207 |
* Mon Jan 30 2006 - [email protected]
|
|
208 |
- Delete scrollkeeper files before packaging.
|
|
209 |
* Sat Dec 3 2005 - [email protected]
|
|
210 |
- add %post script that runs update-desktop-database
|
|
211 |
* Tue Nov 29 2005 - [email protected]
|
|
212 |
- remove javahelp stuff
|
|
213 |
* Tue May 17 2005 - [email protected]
|
|
214 |
- Split out from SUNWgnome-utils.spec, since it is now a dependancy
|
|
215 |
on gnome-applets (in SUNWgnome-panel) and SUNWgnome-utils depends
|
|
216 |
on SUNWgnome-panel.
|