author | chrisk |
Mon, 31 Aug 2009 16:23:04 +0000 | |
changeset 16434 | f21f22550fe9 |
parent 16405 | 5ff7f1bd3644 |
child 16650 | fffb95029f0f |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWgnome-character-map |
|
3 |
# |
|
4 |
# includes module(s): gucharmap |
|
5 |
# |
|
15556 | 6 |
# Copyright 2009 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 |
# |
|
16434 | 10 |
%define owner dkenny |
9397 | 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 |
|
15650 | 24 |
Requires: SUNWgtk2 |
9397 | 25 |
Requires: SUNWgnome-libs |
15650 | 26 |
BuildRequires: SUNWgtk2-devel |
9397 | 27 |
BuildRequires: SUNWgnome-libs-devel |
10637 | 28 |
BuildRequires: SUNWgnome-doc-utils |
15556 | 29 |
Requires: SUNWdesktop-cache |
12642 | 30 |
Requires: %{name}-root |
9397 | 31 |
|
11290 | 32 |
%package root |
33 |
Summary: %{summary} - / filesystem |
|
34 |
SUNW_BaseDir: / |
|
35 |
%include default-depend.inc |
|
36 |
||
9397 | 37 |
%package devel |
38 |
Summary: %{summary} - development files |
|
39 |
SUNW_BaseDir: %{_basedir} |
|
40 |
%include default-depend.inc |
|
41 |
Requires: SUNWgnome-character-map |
|
42 |
Requires: SUNWperl584usr |
|
43 |
Requires: SUNWlibms |
|
44 |
||
45 |
%if %build_l10n |
|
46 |
%package l10n |
|
47 |
Summary: %{summary} - l10n files |
|
48 |
SUNW_BaseDir: %{_basedir} |
|
49 |
%include default-depend.inc |
|
50 |
Requires: %{name} |
|
51 |
%endif |
|
52 |
||
53 |
%prep |
|
54 |
rm -rf %name-%version |
|
55 |
mkdir %name-%version |
|
56 |
%gucharmap.prep -d %name-%version |
|
57 |
cd %{_builddir}/%name-%version |
|
58 |
gzcat %SOURCE0 | tar xf - |
|
59 |
||
60 |
%build |
|
61 |
export PKG_CONFIG_PATH=%{_pkg_config_path} |
|
62 |
export CFLAGS="%optflags -I%{_includedir}" |
|
63 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
64 |
export LDFLAGS="%_ldflags" |
|
12681 | 65 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" |
9397 | 66 |
%gucharmap.build -d %name-%version |
67 |
||
68 |
%install |
|
69 |
%gucharmap.install -d %name-%version |
|
70 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
71 |
cd %{_builddir}/%name-%version/sun-manpages |
|
72 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
73 |
||
74 |
# Remove scrollkeeper files. |
|
75 |
rm -rf $RPM_BUILD_ROOT%{_localstatedir} |
|
76 |
||
77 |
%if %build_l10n |
|
78 |
%else |
|
79 |
# REMOVE l10n FILES |
|
80 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
81 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]* |
|
82 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf |
|
83 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf |
|
84 |
%endif |
|
85 |
||
86 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
87 |
||
88 |
%clean |
|
89 |
rm -rf $RPM_BUILD_ROOT |
|
90 |
||
91 |
%post |
|
15556 | 92 |
%restart_fmri desktop-mime-cache gconf-cache |
9397 | 93 |
|
94 |
%postun |
|
15556 | 95 |
%restart_fmri desktop-mime-cache |
11290 | 96 |
|
9397 | 97 |
%files |
98 |
%defattr (-, root, bin) |
|
99 |
%dir %attr (0755, root, bin) %{_bindir} |
|
100 |
%{_bindir}/*char*map* |
|
101 |
%dir %attr (0755, root, bin) %{_libdir} |
|
102 |
%{_libdir}/libgucharmap*.so* |
|
103 |
%dir %attr (0755, root, sys) %{_datadir} |
|
104 |
%dir %attr (0755, root, other) %{_datadir}/applications |
|
105 |
%{_datadir}/applications/gucharmap.desktop |
|
106 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
107 |
%{_datadir}/gnome/help/gucharmap/C |
|
108 |
%{_datadir}/omf/gucharmap/gucharmap-C.omf |
|
109 |
%dir %attr(0755, root, bin) %{_mandir} |
|
110 |
%dir %attr(0755, root, bin) %{_mandir}/* |
|
111 |
%{_mandir}/*/*char*map* |
|
16373 | 112 |
%doc -d gucharmap-%{gucharmap.version}-git AUTHORS COPYING.UNICODE NEWS README |
113 |
%doc -d gucharmap-%{gucharmap.version}-git ChangeLog.README |
|
114 |
%doc(bzip2) -d gucharmap-%{gucharmap.version}-git COPYING ChangeLog |
|
115 |
%doc(bzip2) -d gucharmap-%{gucharmap.version}-git ChangeLog.pre-2-23 |
|
16405
5ff7f1bd3644
fix /usr/share/doc attribute issue in %file section
davelam
parents:
16384
diff
changeset
|
116 |
%dir %attr(0755, root, other) %{_datadir}/doc |
9397 | 117 |
|
11290 | 118 |
%files root |
119 |
%defattr (-, root, sys) |
|
120 |
%attr (0755, root, sys) %dir %{_sysconfdir} |
|
121 |
%{_sysconfdir}/gconf/schemas/gucharmap.schemas |
|
122 |
||
9397 | 123 |
%files devel |
124 |
%defattr (-, root, bin) |
|
125 |
%dir %attr (0755, root, bin) %{_libdir} |
|
126 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
127 |
%{_libdir}/pkgconfig/* |
|
128 |
%dir %attr (0755, root, bin) %{_includedir} |
|
129 |
%{_includedir}/* |
|
130 |
||
131 |
%if %build_l10n |
|
132 |
%files l10n |
|
133 |
%defattr (-, root, bin) |
|
134 |
%dir %attr (0755, root, sys) %{_datadir} |
|
135 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
136 |
%attr (-, root, other) %{_datadir}/locale |
|
137 |
%{_datadir}/gnome/help/*/[a-z]* |
|
138 |
%{_datadir}/omf/*/*-[a-z][a-z].omf |
|
139 |
%{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf |
|
140 |
%endif |
|
141 |
||
142 |
%changelog |
|
15556 | 143 |
* Fri Apr 3 2009 - [email protected] |
144 |
- use desktop-cache instead of postrun |
|
13566
3d50ed60541d
* SUNWgnome-character-map.spec: Add %doc to %files
mattman
parents:
12681
diff
changeset
|
145 |
* Fri Sep 12 2008 - [email protected] |
3d50ed60541d
* SUNWgnome-character-map.spec: Add %doc to %files
mattman
parents:
12681
diff
changeset
|
146 |
- Update copyright |
12681 | 147 |
* Tue Jun 17 2008 - [email protected] |
148 |
- Update %files as the %{_datadir}/icons dir is no longer delivered - a stock |
|
149 |
icon is used. |
|
12642 | 150 |
* Thu Jun 12 2008 - [email protected] |
151 |
- Add missing root package dependency |
|
11370 | 152 |
* Thu Jan 3 2008 - [email protected] |
153 |
- use gconf-install.script instead of an inline script |
|
11290 | 154 |
* Wed Nov 05 2007 - [email protected] |
155 |
- Add root package and post/preun scripts for gucharmap.schemas. |
|
10637 | 156 |
* Wed Oct 10 2007 - [email protected] |
157 |
- Remove 'Requires: SUNWgnome-doc-utils' as it is only used during building; |
|
158 |
change SUNWgnome-doc-utils-devel to SUNWgnome-doc-utils to match change in |
|
159 |
SUNWgnome-doc-utils.spec. |
|
9397 | 160 |
* Fri Sep 01 2006 - [email protected] |
161 |
- New Manpage tarball |
|
162 |
* Fri Aug 25 2006 - [email protected] |
|
163 |
- Add new charmap.1 manpage. |
|
164 |
* Sat Aug 12 2006 - [email protected] |
|
165 |
- delete some unnecessary env variables |
|
166 |
* Sat Aug 12 2006 - [email protected] |
|
167 |
- change datadir/icons permissions back to root:other since it's a stable |
|
168 |
interface and wasn't supposed to be changed |
|
169 |
* Fri Jul 14 2006 - [email protected] |
|
170 |
- update %post/%postun/etc scripts to support diskless client setup, |
|
171 |
part of 6448317 |
|
172 |
* Thu Jun 29 2006 - [email protected] |
|
173 |
- update postrun scripts |
|
174 |
* Sun Jun 11 2006 - [email protected] |
|
175 |
- change group from other to bin/sys |
|
176 |
* Fri Jun 02 2006 - [email protected] |
|
177 |
- Add Build/Requires SUNWgnome-doc-utils/-devel otherwise build fails. |
|
178 |
* Wed May 10 2006 - [email protected] |
|
179 |
- merge -share pkg(s) into the base pkg(s) |
|
180 |
* Mon Feb 20 2006 - [email protected] |
|
181 |
- Update Build/Requires after running check-deps.pl script. |
|
182 |
* Tue Feb 14 2006 - [email protected] |
|
183 |
- Change %files share for new tarball (gucharmap.png now under icons). |
|
184 |
* Mon Jan 30 2006 - [email protected] |
|
185 |
- Delete scrollkeeper files before packaging. |
|
186 |
* Sat Dec 3 2005 - [email protected] |
|
187 |
- add %post script that runs update-desktop-database |
|
188 |
* Tue Nov 29 2005 - [email protected] |
|
189 |
- remove javahelp stuff |
|
190 |
* Tue May 17 2005 - [email protected] |
|
191 |
- Split out from SUNWgnome-utils.spec, since it is now a dependancy |
|
192 |
on gnome-applets (in SUNWgnome-panel) and SUNWgnome-utils depends |
|
193 |
on SUNWgnome-panel. |
|
15650 | 194 |