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