Репозитории ALT
Группа :: Издательство
Пакет: docbook-style-dsssl
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: docbook-style-dsssl
Version: 1.79
Release: alt1
Summary: Modular stylesheets for DocBook by Norman Walsh
Group: Publishing
License: Distributable
Url: http://www.nwalsh.com/docbook/dsssl/
#PreReq: openjade >= 1.3
PreReq: docbook-dtds
Requires(post): sgml-common >= 0.5
Requires(postun): sgml-common >= 0.5
Requires(triggerun): sgml-common >= 0.5
Conflicts: sgml-tools <= 1.0.9-ipl21mdk
BuildArch: noarch
#AutoProv: no
AutoReq: noperl
Source0: http://prdownloads.sourceforge.net/docbook/docbook-dsssl-%version.tar.bz2
Source1: %name-%version.Makefile
%define sgmlbase %prefix/share/sgml
%define sgmlconfdir %_sysconfdir/sgml
%description
These DSSSL stylesheets allow to convert any DocBook document to another
printed (for example, RTF or PostScript) or online (for example, HTML) format.
They are highly customizable.
%package utils
Summary: utilities for DocBook modular stylesheets
Group: Publishing
AutoReq: yes
%description utils
This package contains a Perl script named collateindex.pl,
which is used to create index data for DocBook XML or SGML files.
%prep
%setup -q -n docbook-dsssl-%version
%__cp %SOURCE1 Makefile
%__subst '1 s/^\(#![^#]*\)#.*/\1/' bin/collateindex.pl
%install
%makeinstall
%__cp -a contrib \
$RPM_BUILD_ROOT%sgmlbase/docbook/dsssl-stylesheets-%version
%__ln_s -f dsssl-stylesheets-%version \
$RPM_BUILD_ROOT%sgmlbase/docbook/dsssl-stylesheets
%post
/bin/find %sgmlconfdir -type f \
\( -name 'sgml-docbook-*.cat' -o -name 'xml-docbook-*.cat' \) -print |
while read -r catalog; do
%_bindir/install-catalog --add "$catalog" \
%sgmlbase/docbook/dsssl-stylesheets-%version/catalog \
>/dev/null 2>&1
done
%postun
if [ $1 = 0 -o ! -f %sgmlbase/docbook/dsssl-stylesheets-%version/catalog ]
then
/bin/find %sgmlconfdir -type f \
\( -name 'sgml-docbook-*.cat' -o -name 'xml-docbook-*.cat' \) -print |
while read -r catalog; do
%_bindir/install-catalog --remove "$catalog" \
%sgmlbase/docbook/dsssl-stylesheets-%version/catalog \
>/dev/null 2>&1
done
fi
%triggerun -- docbook-style-dsssl < 1.78-alt2
DSLCATALOGS=$(echo %sgmlbase/docbook/dsssl-stylesheets-?.??*/catalog)
[ "$DSLCATALOGS" = '%sgmlbase/docbook/dsssl-stylesheets-?.??*/catalog' ] ||
/bin/find %sgmlconfdir -type f \
\( -name 'sgml-docbook-*.cat' -o -name 'xml-docbook-*.cat' \) -print |
while read -r catalog; do
for dslcatalog in $DSLCATALOGS; do
[ "$dslcatalog" = %sgmlbase/docbook/dsssl-stylesheets-%version/catalog ] ||
%_bindir/install-catalog --remove "$catalog" \
$dslcatalog >/dev/null 2>&1
done
done
%files
%doc BUGS README ChangeLog WhatsNew
%doc RELEASE-NOTES.*
%sgmlbase/docbook/dsssl-stylesheets-%version
%sgmlbase/docbook/dsssl-stylesheets
%files utils
%_bindir/*
%_man1dir/*
%changelog
…
Полный changelog можно просмотреть здесь
Version: 1.79
Release: alt1
Summary: Modular stylesheets for DocBook by Norman Walsh
Group: Publishing
License: Distributable
Url: http://www.nwalsh.com/docbook/dsssl/
#PreReq: openjade >= 1.3
PreReq: docbook-dtds
Requires(post): sgml-common >= 0.5
Requires(postun): sgml-common >= 0.5
Requires(triggerun): sgml-common >= 0.5
Conflicts: sgml-tools <= 1.0.9-ipl21mdk
BuildArch: noarch
#AutoProv: no
AutoReq: noperl
Source0: http://prdownloads.sourceforge.net/docbook/docbook-dsssl-%version.tar.bz2
Source1: %name-%version.Makefile
%define sgmlbase %prefix/share/sgml
%define sgmlconfdir %_sysconfdir/sgml
%description
These DSSSL stylesheets allow to convert any DocBook document to another
printed (for example, RTF or PostScript) or online (for example, HTML) format.
They are highly customizable.
%package utils
Summary: utilities for DocBook modular stylesheets
Group: Publishing
AutoReq: yes
%description utils
This package contains a Perl script named collateindex.pl,
which is used to create index data for DocBook XML or SGML files.
%prep
%setup -q -n docbook-dsssl-%version
%__cp %SOURCE1 Makefile
%__subst '1 s/^\(#![^#]*\)#.*/\1/' bin/collateindex.pl
%install
%makeinstall
%__cp -a contrib \
$RPM_BUILD_ROOT%sgmlbase/docbook/dsssl-stylesheets-%version
%__ln_s -f dsssl-stylesheets-%version \
$RPM_BUILD_ROOT%sgmlbase/docbook/dsssl-stylesheets
%post
/bin/find %sgmlconfdir -type f \
\( -name 'sgml-docbook-*.cat' -o -name 'xml-docbook-*.cat' \) -print |
while read -r catalog; do
%_bindir/install-catalog --add "$catalog" \
%sgmlbase/docbook/dsssl-stylesheets-%version/catalog \
>/dev/null 2>&1
done
%postun
if [ $1 = 0 -o ! -f %sgmlbase/docbook/dsssl-stylesheets-%version/catalog ]
then
/bin/find %sgmlconfdir -type f \
\( -name 'sgml-docbook-*.cat' -o -name 'xml-docbook-*.cat' \) -print |
while read -r catalog; do
%_bindir/install-catalog --remove "$catalog" \
%sgmlbase/docbook/dsssl-stylesheets-%version/catalog \
>/dev/null 2>&1
done
fi
%triggerun -- docbook-style-dsssl < 1.78-alt2
DSLCATALOGS=$(echo %sgmlbase/docbook/dsssl-stylesheets-?.??*/catalog)
[ "$DSLCATALOGS" = '%sgmlbase/docbook/dsssl-stylesheets-?.??*/catalog' ] ||
/bin/find %sgmlconfdir -type f \
\( -name 'sgml-docbook-*.cat' -o -name 'xml-docbook-*.cat' \) -print |
while read -r catalog; do
for dslcatalog in $DSLCATALOGS; do
[ "$dslcatalog" = %sgmlbase/docbook/dsssl-stylesheets-%version/catalog ] ||
%_bindir/install-catalog --remove "$catalog" \
$dslcatalog >/dev/null 2>&1
done
done
%files
%doc BUGS README ChangeLog WhatsNew
%doc RELEASE-NOTES.*
%sgmlbase/docbook/dsssl-stylesheets-%version
%sgmlbase/docbook/dsssl-stylesheets
%files utils
%_bindir/*
%_man1dir/*
%changelog
…
Полный changelog можно просмотреть здесь