Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37560707
en ru br
Репозитории ALT
S:1.79.1-alt4
5.1: 1.73.2-alt1
4.1: 1.73.2-alt1
4.0: 1.73.2-alt0.M40.1
3.0: 1.69.0-alt1
www.altlinux.org/Changes

Группа :: Издательство
Пакет: docbook-style-xsl

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: docbook-style-xsl
Version: 1.69.0
Release: alt1
Group: Publishing

%define saxon_version 653

Summary: Norman Walsh's XSL stylesheets for DocBook XML
#'

License: Distributable
Url: http://docbook.sourceforge.net/projects/xsl/

%define xmlbase %_datadir/xml
%define xmlconfdir %_sysconfdir/xml
%define hack_output_encodings koi8-r koi8-u windows-1251

Provides: docbook-xsl
#PreReq: docbook-dtd-xml
PreReq: xml-common xml-utils

AutoReq: yes, noperl

Source0: http://prdownloads.sourceforge.net/docbook/docbook-xsl-%version.tar.bz2
Source1: http://prdownloads.sourceforge.net/docbook/docbook-xsl-doc-%version.tar.bz2
Source2: docbook-output-stub.xsl
Source3: docbook-add-output-encoding.xsl

BuildArch: noarch
BuildRequires: xsltproc perl-base

%package doc
Summary: Documentation for DocBook XSL stylesheets
Group: Publishing
AutoReqProv: none

%description
These XSL stylesheets allow to convert any DocBook document to other
formats, including those suited for print formatting (FO), online use
(HTML, XHTML), and manual files (man, htmlhelp, javahelp).
The stylesheets are highly customizable.

%description doc
This package contains extensive documentation to DocBook XSL stylesheets
in the HTML format.

%prep
%setup -q -n docbook-xsl-%version
%setup -q -n docbook-xsl-%version -b 1
find . -type -f -name +a+x -print0 | xargs -r0 chmod a-x
mv manpages/README README.manpages

grep -Flr 'docbook/xml/4.0' . | xargs perl -pi -e 's|docbook/xml/4\.0|docbook/xml/4.1.2|g'

%build
for enc in %hack_output_encodings; do
   xsltproc -o html/docbook-$enc.xsl --stringparam output.encoding $enc \
%SOURCE3 %SOURCE2
done

%install
%__install -d -m755 %buildroot%xmlbase/docbook/xsl-stylesheets-%version
%__install -d -m755 %buildroot%xmlbase/docbook/xsl-stylesheets-%version/extensions
%__cp -a VERSION common eclipse fo html htmlhelp images javahelp \
        lib manpages profiling slides template website xhtml \
   %buildroot%xmlbase/docbook/xsl-stylesheets-%version/
%__install -p -m644 extensions/*.jar \
   %buildroot%xmlbase/docbook/xsl-stylesheets-%version/extensions/

ln -sf xsl-stylesheets-%version %buildroot%xmlbase/docbook/xsl-stylesheets

cd %buildroot%xmlbase/docbook/xsl-stylesheets-%version/extensions/
for j in saxon*.jar; do
   if [ "$j" != saxon%saxon_version.jar ] &&
      cmp "$j" saxon%saxon_version.jar
   then
%__rm -f "$j"
%__ln_s saxon%saxon_version.jar "$j"
   fi
done
cd -

%files
%doc AUTHORS BUGS ChangeLog COPYING README* RELEASE-NOTES.* TODO
%xmlbase/docbook/xsl-stylesheets-%version
%xmlbase/docbook/xsl-stylesheets

%files doc
%doc doc/*

%post
CATALOG=%xmlconfdir/catalog
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
"http://docbook.sourceforge.net/release/xsl/%version" \
"%xmlbase/docbook/xsl-stylesheets-%version" $CATALOG ||:
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
"http://docbook.sourceforge.net/release/xsl/%version" \
"%xmlbase/docbook/xsl-stylesheets-%version" $CATALOG ||:
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
"http://docbook.sourceforge.net/release/xsl/current" \
"%xmlbase/docbook/xsl-stylesheets-%version" $CATALOG ||:
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
"http://docbook.sourceforge.net/release/xsl/current" \
"%xmlbase/docbook/xsl-stylesheets-%version" $CATALOG ||:

%postun
if [ ! -d "%xmlbase/docbook/xsl-stylesheets-%version" ]; then
   CATALOG=%xmlconfdir/catalog
   /usr/bin/xmlcatalog --noout --del \
"%xmlbase/docbook/xsl-stylesheets-%version" $CATALOG ||:
fi

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin