author | davelam |
Mon, 10 Sep 2007 09:22:46 +0000 | |
changeset 10481 | 6dc6408c2ebc |
parent 10480 | 241566351bf4 |
child 10483 | c4b4b3b07fc2 |
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 |
||
17 |
Name: SUNWgnome-devel-docs |
|
18 |
Summary: GNOME developer documentation |
|
19 |
Version: %{default_pkg_version} |
|
20 |
SUNW_BaseDir: %{_basedir} |
|
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
22 |
%include default-depend.inc |
|
23 |
BuildRequires: SUNWlxml-python |
|
24 |
Requires: SUNWgnome-help-viewer |
|
25 |
Requires: SUNWpostrun |
|
26 |
||
27 |
%if %build_l10n |
|
28 |
%package l10n |
|
29 |
Summary: %{summary} - l10n files |
|
30 |
SUNW_BaseDir: %{_basedir} |
|
31 |
%include default-depend.inc |
|
32 |
Requires: %{name} |
|
33 |
%endif |
|
34 |
||
35 |
%prep |
|
36 |
rm -rf %name-%version |
|
37 |
mkdir %name-%version |
|
38 |
%gdd.prep -d %name-%version |
|
39 |
||
40 |
%build |
|
41 |
export PKG_CONFIG_PATH=%{_pkg_config_path} |
|
42 |
export MSGFMT="/usr/bin/msgfmt" |
|
43 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" |
|
44 |
export LDFLAGS="%_ldflags" |
|
45 |
export CFLAGS="%optflags" |
|
46 |
%gdd.build -d %name-%version |
|
47 |
||
48 |
%install |
|
49 |
%gdd.install -d %name-%version |
|
50 |
||
51 |
%if %build_l10n |
|
52 |
%else |
|
53 |
# REMOVE l10n FILES |
|
54 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]* |
|
55 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf |
|
56 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf |
|
57 |
%endif |
|
58 |
||
59 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
60 |
||
61 |
# Remove scrollkeeper files before packaging. |
|
62 |
rm -rf $RPM_BUILD_ROOT/var |
|
63 |
||
64 |
%clean |
|
65 |
rm -rf $RPM_BUILD_ROOT |
|
66 |
||
67 |
%post |
|
68 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; |
|
69 |
echo '/usr/bin/scrollkeeper-update' |
|
70 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
71 |
||
72 |
%postun |
|
73 |
test -x $BASEDIR/lib/postrun || exit 0 |
|
74 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; |
|
75 |
echo '/usr/bin/scrollkeeper-update' |
|
76 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
77 |
||
78 |
%files |
|
79 |
%defattr (-, root, bin) |
|
80 |
%dir %attr (0755, root, sys) %{_datadir} |
|
81 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
82 |
%{_datadir}/gnome/help/*/C |
|
83 |
%{_datadir}/omf/*/*-C.omf |
|
84 |
||
85 |
%if %build_l10n |
|
86 |
%files l10n |
|
87 |
%defattr (-, root, bin) |
|
88 |
%dir %attr (0755, root, sys) %{_datadir} |
|
89 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
90 |
%{_datadir}/gnome/help/*/[a-z]* |
|
91 |
%{_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
|
92 |
#%{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf |
10480 | 93 |
%endif |
94 |
||
95 |
%changelog |
|
96 |
* Sat Sep 01 2007 - Dave Lin <[email protected]> |
|
97 |
- initial version |
|
98 |