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