9397
|
1 |
#
|
|
2 |
# spec file for package SUNWgnome-user-docs
|
|
3 |
#
|
|
4 |
# includes module(s): gnome-user-docs
|
|
5 |
#
|
|
6 |
# Copyright (c) 2004 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: dcarbery
|
|
11 |
#
|
|
12 |
%include Solaris.inc
|
|
13 |
|
|
14 |
%use gud = gnome-user-docs.spec
|
|
15 |
|
|
16 |
Name: SUNWgnome-user-docs
|
|
17 |
Summary: GNOME user documentation
|
|
18 |
Version: %{default_pkg_version}
|
|
19 |
SUNW_BaseDir: %{_basedir}
|
12016
|
20 |
SUNW_Copyright: %{name}.copyright
|
9397
|
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
22 |
%include default-depend.inc
|
10174
|
23 |
BuildRequires: SUNWlxml-python
|
9397
|
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 |
%gud.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 |
%gud.build -d %name-%version
|
|
47 |
|
|
48 |
%install
|
|
49 |
%gud.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)
|
13673
|
80 |
%doc -d gnome-user-docs-%{gud.version} README AUTHORS
|
|
81 |
%doc(bzip2) -d gnome-user-docs-%{gud.version} COPYING COPYING-DOCS
|
|
82 |
%doc(bzip2) -d gnome-user-docs-%{gud.version} NEWS ChangeLog
|
|
83 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
9397
|
84 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
85 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
86 |
%{_datadir}/gnome/help/*/C
|
|
87 |
%{_datadir}/omf/*/*-C.omf
|
|
88 |
|
|
89 |
%if %build_l10n
|
|
90 |
%files l10n
|
|
91 |
%defattr (-, root, bin)
|
|
92 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
93 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
94 |
%{_datadir}/gnome/help/*/[a-z]*
|
|
95 |
%{_datadir}/omf/*/*-[a-z][a-z].omf
|
|
96 |
%{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf
|
|
97 |
%endif
|
|
98 |
|
|
99 |
|
|
100 |
%changelog
|
13673
|
101 |
* Fri Sep 19 2008 - [email protected]
|
|
102 |
- Add %doc part to %files
|
12016
|
103 |
* Thu Apr 03 2008 - [email protected]
|
|
104 |
- Add SUNW_Copyright.
|
10174
|
105 |
* Tue Jul 10 2007 - [email protected]
|
|
106 |
- Add BuildRequires SUNWlxml-python.
|
9397
|
107 |
* Wed Aug 16 2006 - [email protected]
|
|
108 |
- Add %files entry to pick up pt_BR and zh_CN omf files.
|
|
109 |
* Fri Jul 14 2006 - [email protected]
|
|
110 |
- update %post/%postun/etc scripts to support diskless client setup,
|
|
111 |
part of 6448317
|
|
112 |
* Thu Jun 29 2006 - [email protected]
|
|
113 |
- update postrun scripts
|
|
114 |
* Sun Jun 11 2006 - [email protected]
|
|
115 |
- change group from other to bin/sys
|
|
116 |
* Wed Mar 22 2006 - [email protected]
|
|
117 |
- Uncomment removal of l10n files when not doing l10n build.
|
|
118 |
* Tue Mar 14 2006 - [email protected]
|
|
119 |
- Uncomment l10n files to pick up 'it' files.
|
|
120 |
* Tue Feb 21 2006 - [email protected]
|
|
121 |
- Delete scrollkeeper files before packaging.
|
|
122 |
* Tue Nov 29 2005 - [email protected]
|
|
123 |
- remove javahelp stuff
|
|
124 |
* Fri Sep 30 2005 [email protected]
|
|
125 |
- Remove obsolete javahelp references.
|
|
126 |
* Thu Sep 30 2004 [email protected]
|
|
127 |
- Fixed dependencies lies for base package
|
|
128 |
* Wed Aug 25 2004 [email protected]
|
|
129 |
- Updated files to extracted only l10n content
|
|
130 |
* Tue Aug 24 2004 [email protected]
|
|
131 |
- separated l10n content into l10n subpkg
|
|
132 |
* Thu Aug 19 2004 [email protected]
|
|
133 |
- Remove xml perms change - done in base spec file.
|
|
134 |
* Wed Aug 18 2004 [email protected]
|
|
135 |
- Change xml perms for Solaris integration.
|
|
136 |
* Sat Jun 26 2004 [email protected]
|
|
137 |
- Changed install location to /usr/...
|