9397
|
1 |
#
|
|
2 |
# spec file for package SUNWgnome-xml-root and SUNWgnome-xml-share
|
|
3 |
#
|
|
4 |
# includes module(s): sgml-common docbook-dtds docbook-style-dsssl
|
|
5 |
# docbook-style-xsl
|
|
6 |
# all of the above originally taken from Fedora Core 6
|
|
7 |
#
|
|
8 |
# Copyright 2007 Sun Microsystems, Inc.
|
|
9 |
# This file and all modifications and additions to the pristine
|
|
10 |
# package are under the same license as the package itself.
|
|
11 |
#
|
|
12 |
# Owner: laca
|
|
13 |
#
|
|
14 |
%include Solaris.inc
|
|
15 |
|
|
16 |
%use common = sgml-common.spec
|
|
17 |
%use dtds = docbook-dtds.spec
|
|
18 |
%use dsssl = docbook-style-dsssl.spec
|
|
19 |
%use xsl = docbook-style-xsl.spec
|
|
20 |
|
11965
|
21 |
Name: SUNWgnome-xml
|
|
22 |
SUNW_Pkg: %{name}-share
|
9397
|
23 |
Summary: docbook SGML and XML stylesheets
|
|
24 |
Version: %{default_pkg_version}
|
|
25 |
SUNW_BaseDir: %{_basedir}
|
11965
|
26 |
SUNW_Copyright: %{name}.copyright
|
9397
|
27 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
28 |
Source1: docbook-catalog-install.sh
|
|
29 |
Source2: docbook-catalog-uninstall.sh
|
|
30 |
%include default-depend.inc
|
|
31 |
Requires: SUNWlxml
|
|
32 |
Requires: SUNWbash
|
|
33 |
Requires: SUNWperl584core
|
|
34 |
# /usr/bin/unzip in SUNWunzip on Nevada, SUNWswmt on Solaris 10.
|
|
35 |
%if %is_nevada
|
|
36 |
BuildRequires: SUNWunzip
|
|
37 |
%else
|
|
38 |
BuildRequires: SUNWswmt
|
|
39 |
%endif
|
|
40 |
|
|
41 |
%package -n SUNWgnome-xml-root
|
|
42 |
Summary: %{summary} - / filesystem
|
|
43 |
SUNW_BaseDir: /
|
|
44 |
%include default-depend.inc
|
|
45 |
Requires: SUNWgnome-xml-share
|
|
46 |
Requires: SUNWpostrun-root
|
|
47 |
|
|
48 |
%prep
|
|
49 |
rm -rf %name-%version
|
|
50 |
mkdir %name-%version
|
|
51 |
%common.prep -d %name-%version
|
|
52 |
%dtds.prep -d %name-%version
|
|
53 |
%dsssl.prep -d %name-%version
|
|
54 |
%xsl.prep -d %name-%version
|
|
55 |
|
|
56 |
%build
|
|
57 |
%common.build -d %name-%version
|
|
58 |
%dtds.build -d %name-%version
|
|
59 |
%dsssl.build -d %name-%version
|
|
60 |
%xsl.build -d %name-%version
|
|
61 |
|
|
62 |
%install
|
|
63 |
rm -rf $RPM_BUILD_ROOT
|
|
64 |
%common.install -d %name-%version
|
|
65 |
%dtds.install -d %name-%version
|
|
66 |
%dsssl.install -d %name-%version
|
|
67 |
%xsl.install -d %name-%version
|
|
68 |
|
|
69 |
install -m 744 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/sgml/docbook
|
|
70 |
install -m 744 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/sgml/docbook
|
|
71 |
touch $RPM_BUILD_ROOT%{_sysconfdir}/xml/catalog
|
|
72 |
|
|
73 |
# move collateindex.pl out of /usr/bin
|
|
74 |
mv $RPM_BUILD_ROOT%{_bindir}/collateindex.pl \
|
|
75 |
$RPM_BUILD_ROOT%{_datadir}/sgml/docbook
|
|
76 |
|
|
77 |
# move /usr/share/sgml/docbook/xmlcatalog to /etc/xml because it's edited
|
|
78 |
# by the postinstall script
|
|
79 |
mv $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/xmlcatalog \
|
|
80 |
$RPM_BUILD_ROOT%{_sysconfdir}/xml/docbook-xmlcatalog
|
|
81 |
( cd $RPM_BUILD_ROOT%{_datadir}/sgml/docbook;
|
|
82 |
ln -s ../../../../etc/xml/docbook-xmlcatalog xmlcatalog )
|
|
83 |
|
|
84 |
# create an empty catalog so that it's included in the pkgmap
|
|
85 |
touch $RPM_BUILD_ROOT%{_sysconfdir}/sgml/catalog
|
|
86 |
|
|
87 |
# remove stale symlinks -- the files these point to are created by the
|
|
88 |
# postinstall script, so create the symlink there
|
|
89 |
rm $RPM_BUILD_ROOT%{_sysconfdir}/sgml/sgml-docbook.cat
|
|
90 |
rm $RPM_BUILD_ROOT%{_sysconfdir}/sgml/xml-docbook.cat
|
|
91 |
|
|
92 |
%clean
|
|
93 |
rm -rf $RPM_BUILD_ROOT
|
|
94 |
|
|
95 |
%files
|
|
96 |
%defattr (-, root, bin)
|
9605
|
97 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
98 |
%{_bindir}/install-catalog
|
|
99 |
%{_bindir}/sgmlwhich
|
9397
|
100 |
%dir %attr (0755, root, sys) %{_datadir}
|
9605
|
101 |
%{_datadir}/sgml
|
|
102 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
|
103 |
%{_datadir}/doc/*
|
|
104 |
%{_datadir}/xml
|
|
105 |
%{_datadir}/man
|
9397
|
106 |
|
|
107 |
%files -n SUNWgnome-xml-root
|
|
108 |
%defattr (-, root, sys)
|
|
109 |
%dir %attr (0755, root, sys) %{_sysconfdir}
|
|
110 |
%ghost %{_sysconfdir}/*
|
|
111 |
%defattr (-, root, sys)
|
|
112 |
|
|
113 |
%post -n SUNWgnome-xml-root
|
|
114 |
( echo %{_datadir}/sgml/docbook/docbook-catalog-install.sh
|
11283
|
115 |
) | $BASEDIR/var/lib/postrun/postrun -c JDS
|
9397
|
116 |
|
|
117 |
|
|
118 |
%preun -n SUNWgnome-xml-root
|
|
119 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
|
|
120 |
( echo %{_datadir}/sgml/docbook/docbook-catalog-uninstall.sh
|
|
121 |
) | $BASEDIR/var/lib/postrun/postrun -c JDS
|
|
122 |
|
|
123 |
%changelog
|
9605
|
124 |
* Wed Mar 21 2007 - [email protected]
|
|
125 |
- update %files after fixing sgml-common
|
9397
|
126 |
* Wed Feb 28 2007 - [email protected]
|
|
127 |
- Update Build/Requires after running check-deps.pl script.
|
|
128 |
* Sun Jun 11 2006 - [email protected]
|
|
129 |
- change group from other to bin/sys
|
|
130 |
* Tue Mar 21 2006 - [email protected]
|
|
131 |
- Modify BuildRequires to work on s10 and snv, where /usr/bin/unzip in
|
|
132 |
different packages.
|
|
133 |
* Mon Mar 13 2006 - [email protected]
|
|
134 |
- Add BuildRequires for SUNWunzip.
|
|
135 |
* Mon Feb 20 2006 - [email protected]
|
|
136 |
- Update Build/Requires after running check-deps.pl script.
|
|
137 |
* Fri Jan 27 2006 - [email protected]
|
|
138 |
- Add BuildRequires SUNWswmt for /usr/bin/unzip.
|
|
139 |
* Tue Sep 13 2005 - [email protected]
|
|
140 |
- Bump to 2.12.
|
|
141 |
* Thu Sep 08 2005 - [email protected]
|
|
142 |
- Verified builds fine on Solaris, bump to 2.11.
|
|
143 |
* Fri Sep 02 2005 - [email protected]
|
|
144 |
- remove unpackaged files
|
|
145 |
* Sat Jun 26 2004 [email protected]
|
|
146 |
- Changed install location to /usr/...
|
|
147 |
* Tue Feb 24 2004 - [email protected]
|
|
148 |
- Initial version
|