author | an230044 |
Mon, 27 Sep 2010 11:32:21 +0000 | |
branch | opensolaris-2009-06 |
changeset 20102 | 2d19c462bb98 |
parent 12018 | 53a2de4c0eec |
child 15412 | e305a27c0e82 |
permissions | -rw-r--r-- |
10480 | 1 |
# |
2 |
# spec file for package SUNWgnome-devel-docs |
|
3 |
# |
|
4 |
# includes module(s): GNOME Devel Docs |
|
5 |
# |
|
6 |
# Copyright (c) 2005 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 |
# |
|
10 |
# Owner: davelam |
|
11 |
# |
|
12 |
# |
|
13 |
%include Solaris.inc |
|
14 |
||
15 |
%use gdd = gnome-devel-docs.spec |
|
16 |
||
10483 | 17 |
Name: SUNWgnome-devel-docs |
18 |
Summary: GNOME developer documentation |
|
19 |
Version: %{default_pkg_version} |
|
20 |
SUNW_BaseDir: %{_basedir} |
|
12018 | 21 |
SUNW_Copyright: %{name}.copyright |
10483 | 22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
10480 | 23 |
%include default-depend.inc |
24 |
BuildRequires: SUNWlxml-python |
|
10483 | 25 |
BuildRequires: SUNWlxsl |
26 |
BuildRequires: SUNWgnome-libs |
|
10480 | 27 |
Requires: SUNWgnome-help-viewer |
10483 | 28 |
Requires: SUNWgnome-libs |
10480 | 29 |
Requires: SUNWpostrun |
30 |
||
31 |
%if %build_l10n |
|
32 |
%package l10n |
|
33 |
Summary: %{summary} - l10n files |
|
34 |
SUNW_BaseDir: %{_basedir} |
|
35 |
%include default-depend.inc |
|
36 |
Requires: %{name} |
|
37 |
%endif |
|
38 |
||
39 |
%prep |
|
40 |
rm -rf %name-%version |
|
41 |
mkdir %name-%version |
|
42 |
%gdd.prep -d %name-%version |
|
43 |
||
44 |
%build |
|
45 |
export PKG_CONFIG_PATH=%{_pkg_config_path} |
|
46 |
export MSGFMT="/usr/bin/msgfmt" |
|
47 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" |
|
48 |
export LDFLAGS="%_ldflags" |
|
49 |
export CFLAGS="%optflags" |
|
50 |
%gdd.build -d %name-%version |
|
51 |
||
52 |
%install |
|
53 |
%gdd.install -d %name-%version |
|
54 |
||
55 |
%if %build_l10n |
|
56 |
%else |
|
57 |
# REMOVE l10n FILES |
|
10483 | 58 |
rm -r $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]* |
59 |
rm -r $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf |
|
10480 | 60 |
%endif |
61 |
||
62 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
63 |
||
64 |
# Remove scrollkeeper files before packaging. |
|
65 |
rm -rf $RPM_BUILD_ROOT/var |
|
66 |
||
67 |
%clean |
|
68 |
rm -rf $RPM_BUILD_ROOT |
|
69 |
||
70 |
%post |
|
71 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; |
|
72 |
echo '/usr/bin/scrollkeeper-update' |
|
73 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
74 |
||
75 |
%postun |
|
76 |
test -x $BASEDIR/lib/postrun || exit 0 |
|
77 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; |
|
78 |
echo '/usr/bin/scrollkeeper-update' |
|
79 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
80 |
||
81 |
%files |
|
82 |
%defattr (-, root, bin) |
|
83 |
%dir %attr (0755, root, sys) %{_datadir} |
|
84 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
85 |
%{_datadir}/gnome/help/*/C |
|
86 |
%{_datadir}/omf/*/*-C.omf |
|
87 |
||
88 |
%if %build_l10n |
|
89 |
%files l10n |
|
90 |
%defattr (-, root, bin) |
|
91 |
%dir %attr (0755, root, sys) %{_datadir} |
|
92 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
93 |
%{_datadir}/gnome/help/*/[a-z]* |
|
94 |
%{_datadir}/omf/*/*-[a-z][a-z].omf |
|
10481
6dc6408c2ebc
comment out '%{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf' in '%files l10n' section since there is no such files so far
davelam
parents:
10480
diff
changeset
|
95 |
#%{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf |
10480 | 96 |
%endif |
97 |
||
98 |
%changelog |
|
10483 | 99 |
* Mon Sep 10 2007 - Damien Carbery <[email protected]> |
100 |
- Update dependencies. |
|
101 |
||
10480 | 102 |
* Sat Sep 01 2007 - Dave Lin <[email protected]> |
103 |
- initial version |
|
104 |