Sisyphus
: 28 2022 | : 17607 | : 23716790
en ru br
ALT
S:0.4-alt2
5.1: 0.4-alt2
4.1: 0.4-alt1.M41.1
4.0: 0.4-alt1.M40.1
3.0: 0.3-alt2
+updates:0.3-alt2.1
www.altlinux.org/Changes

::
: alt-docs-xsl

             Sources      Gear   Bugs and FR  Repocop 

Name: alt-docs-xsl
Version: 0.4
Release: alt2
Group: Publishing

Summary: All XSL stylesheets from ALT Linux Documentation Project

License: Distributable
Url: http://docs.altlinux.ru

Source0: http://docs.altlinux.ru/%name-%version.tar.bz2

BuildArch: noarch

Requires: alt-docs-xsl-common = %version-%release
Requires: alt-docs-xsl-print = %version-%release
Requires: alt-docs-xsl-html = %version-%release
Requires: alt-docs-xsl-xhtml = %version-%release

%define xmlconfdir %_sysconfdir/xml
%define xsldir          %_datadir/xml/alt-docs-xsl
%define catalog         %xmlconfdir/catalog

%description
Virtual package with all of XSL stylesheets from ALT Linux
Documentation Project.

%description -l ru_RU.CP1251
XSL
ALT Linux.


%package common
Summary: Common stylesheets from ALT Linux Documentation Project
Group: Publishing
PreReq: xml-common xml-utils
Conflicts: alt-docs-xsl < 0.3-alt1

%description common
Common stylesheets used for all output formats.

%description common -l ru_RU.CP1251
, .


%package print
Summary: Printable (XSL/FO) stylesheets from ALT Linux Documentation Project
Group: Publishing
Requires: alt-docs-xsl-common >= %version-%release
Requires: docbook-style-xsl

%description print
Stylesheets from ALT Linux Documentation Project for XSL/FO
output. This styles modified original DocBook styles
http://www.docbook.org

%description print -l ru_RU.CP1251
XSL/FO,
(PDF, PS).
DocBook
http://www.docbook.org

%package html
Summary: HTML XSL stylesheets from ALT Linux Documentation Project
Group: Publishing
Requires: alt-docs-xsl-common >= %version-%release
Requires: docbook-style-xsl

%description html
XSL sylesheets from ALT Linux Documentation Project for HTML
output. This styles modified original DocBook styles
http://www.docbook.org

%description html -l ru_RU.CP1251
XSL HTML DocBook
XML. DocBook
http://www.docbook.org


%package xhtml
Summary: HTML XSL stylesheets from ALT Linux Documentation Project
Group: Publishing
Requires: alt-docs-xsl-common >= %version-%release
Requires: docbook-style-xsl

%description xhtml
XSL sylesheets from ALT Linux Documentation Project for XHTML
output. This styles modified original DocBook styles
http://www.docbook.org

%description xhtml -l ru_RU.CP1251
XSL XHTML DocBook
XML. DocBook
http://www.docbook.org

%prep
%setup

%build

%install

%__mkdir -p $RPM_BUILD_ROOT%xsldir
%__cp -a common html xhtml print website catalog.xml $RPM_BUILD_ROOT%xsldir
%__mkdir -p %buildroot%_sysconfdir/buildreqs/files/ignore.d
%__cp -a alt-docs-xsl.ignore.buildreq %buildroot%_sysconfdir/buildreqs/files/ignore.d/alt-docs-xsl-common


# FIXME: add ChangeLog (building from cvs)

%files

%files common
%dir %xsldir
%xsldir/catalog.xml
%xsldir/common
%doc README
%_sysconfdir/buildreqs/files/ignore.d/alt-docs-xsl-common

%files print
%xsldir/print

%files html
%xsldir/html

%files xhtml
%xsldir/xhtml

%post common
if [ $1 = 1 ] ; then
/usr/bin/xmlcatalog --noout --add "nextCatalog" \
       "file://%xsldir/catalog.xml" \
       "" \
       %catalog ||:
fi

%postun common
if [ $1 = "0" ] ; then
/usr/bin/xmlcatalog --noout --del \
"file://%xsldir/catalog.xml" \
       %catalog ||:
fi

%changelog

changelog

 
: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
: Michael Shigorin