2024-01-05 21:51:49 +01:00
|
|
|
Name: docbook-xsl
|
2024-01-05 21:51:50 +01:00
|
|
|
Version: 1.79.2
|
2024-01-05 21:51:51 +01:00
|
|
|
Release: 4mamba
|
2024-01-05 21:51:49 +01:00
|
|
|
Summary: Norman Walsh's XSL stylesheets for DocBook XML
|
|
|
|
Group: Applications/Publishing
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 21:51:50 +01:00
|
|
|
URL: https://github.com/docbook/xslt10-stylesheets
|
|
|
|
Source0: https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F%{version}/docbook-xsl-nons-%{version}.tar.bz2
|
|
|
|
Source1: docbook-xsl-Makefile
|
|
|
|
Source2: https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F{%version}/docbook-xsl-doc-%{version}.tar.bz2
|
2024-01-05 21:51:51 +01:00
|
|
|
# Docbook 5
|
|
|
|
Source3: https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F{%version}/docbook-xsl-%{version}.tar.bz2
|
2024-01-05 21:51:50 +01:00
|
|
|
Patch0: docbook-xsl-1.79.2-marginleft.patch
|
2024-01-05 21:51:49 +01:00
|
|
|
Patch1: docbook-xsl-listblock.patch
|
2024-01-05 21:51:50 +01:00
|
|
|
Patch2: docbook-xsl-1.79.2-non-recursive-string-subst.patch
|
|
|
|
Patch3: docbook-xsl-1.79.2-pagesetup.patch
|
|
|
|
Patch4: docbook-xsl-1.79.2-newmethods.patch
|
|
|
|
Patch5: docbook-xsl-1.79.2-non-constant-expression.patch
|
|
|
|
Patch6: docbook-xsl-1.79.2-xsl-list-item-body.patch
|
|
|
|
Patch7: docbook-xsl-1.79.2-mandir.patch
|
|
|
|
Patch8: docbook-xsl-1.79.2-fix-gtk-doc-multilib.patch
|
2024-01-05 21:51:49 +01:00
|
|
|
License: Distributable
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 21:51:50 +01:00
|
|
|
Requires(post): libxml2-utils
|
|
|
|
Requires(postun): libxml2-utils
|
2024-01-05 21:51:49 +01:00
|
|
|
Requires: docbook-dtds >= 1.0
|
2024-01-05 21:51:51 +01:00
|
|
|
Requires: xml-common
|
2024-01-05 21:51:49 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
These XSL stylesheets allow you to transform any DocBook XML document to other formats, such as HTML, FO, and XHMTL. They are highly customizable.
|
|
|
|
|
2024-01-05 21:51:51 +01:00
|
|
|
%package -n docbook5-xsl
|
|
|
|
Group: Applications/Publishing
|
|
|
|
Summary: Norman Walsh's XSL stylesheets for DocBook 5.X
|
|
|
|
Requires(post): libxml2 >= 2.4.8
|
|
|
|
Requires(postun): libxml2 >= 2.4.8
|
|
|
|
Requires: docbook5-schemas >= 5.1
|
|
|
|
|
|
|
|
%description -n docbook5-xsl
|
|
|
|
These XSL stylesheets allow you to transform any DocBook 5 XML document to other formats, such as HTML, FO, and XHMTL. They are highly customizable.
|
|
|
|
|
|
|
|
%package -n docbook5-xsl-extensions
|
|
|
|
Group: Applications/Publishing
|
|
|
|
Summary: Norman Walsh's XSL stylesheets Java extensions for DocBook 5.X
|
|
|
|
Requires: docbook5-xsl = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description -n docbook5-xsl-extensions
|
|
|
|
This package contains Java extensions for XSL namespace aware stylesheets.
|
|
|
|
|
2024-01-05 21:51:49 +01:00
|
|
|
%prep
|
2024-01-05 21:51:51 +01:00
|
|
|
%setup -q -n docbook-xsl-nons-%{version} -a2 -a3
|
2024-01-05 21:51:50 +01:00
|
|
|
mv docbook-xsl-%{version}/doc .
|
|
|
|
|
|
|
|
%patch0 -p1 -b .marginleft
|
|
|
|
##%patch1 -p2 -b .listblock
|
|
|
|
%patch2 -p2
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
|
|
|
%patch8 -p1
|
|
|
|
|
|
|
|
cp %{SOURCE1} Makefile
|
|
|
|
|
|
|
|
# fix of non UTF-8 files rpmlint warnings
|
|
|
|
for fhtml in $(find ./doc -name '*.html' -type f); do
|
|
|
|
iconv -f ISO-8859-1 -t UTF-8 "$fhtml" -o "$fhtml".tmp
|
|
|
|
mv -f "$fhtml".tmp "$fhtml"
|
|
|
|
sed -i 's/charset=ISO-8859-1/charset=UTF-8/' "$fhtml"
|
|
|
|
done
|
|
|
|
|
|
|
|
for f in $(find -name "*'*"); do
|
|
|
|
mv -v "$f" $(echo "$f" | tr -d "'")
|
|
|
|
done
|
2024-01-05 21:51:49 +01:00
|
|
|
|
2024-01-05 21:51:51 +01:00
|
|
|
# Docbook 5
|
|
|
|
cd %{name}-%{version}
|
|
|
|
rm -rf $(find -name '.gitignore' -type f)
|
|
|
|
#make ruby scripts executable
|
|
|
|
chmod +x epub/bin/dbtoepub
|
|
|
|
|
2024-01-05 21:51:49 +01:00
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-05 21:51:50 +01:00
|
|
|
DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
make install \
|
|
|
|
BINDIR=%{buildroot}%{_bindir} \
|
|
|
|
DESTDIR=%{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}
|
|
|
|
|
|
|
|
cp -a VERSION.xsl %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}/VERSION.xsl
|
|
|
|
ln -s xsl-stylesheets-%{version} \
|
|
|
|
%{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets
|
2024-01-05 21:51:51 +01:00
|
|
|
|
2024-01-05 21:51:50 +01:00
|
|
|
# Don't ship the extensions (bug #177256).
|
|
|
|
rm -rf %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets/extensions/*
|
2024-01-05 21:51:49 +01:00
|
|
|
|
2024-01-05 21:51:51 +01:00
|
|
|
# Docbook 5
|
|
|
|
cd %{name}-%{version}
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version
|
|
|
|
cp -a [[:lower:]]* %{buildroot}%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version/
|
|
|
|
cp -a VERSION %{buildroot}%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version/VERSION.xsl
|
|
|
|
ln -s VERSION.xsl \
|
|
|
|
%{buildroot}%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version/VERSION
|
|
|
|
ln -s xsl-ns-stylesheets-%{version} \
|
|
|
|
%{buildroot}%{_datadir}/sgml/docbook/xsl-ns-stylesheets
|
|
|
|
|
|
|
|
# Don't ship install shell script.
|
|
|
|
rm -rf %{buildroot}%{_datadir}/sgml/docbook/xsl-ns-stylesheets/install.sh
|
2024-01-05 21:51:49 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post
|
|
|
|
if [ $1 -ge 1 ]; then
|
2024-01-05 21:51:50 +01:00
|
|
|
CATALOG=%{_sysconfdir}/xml/catalog
|
2024-01-05 21:51:49 +01:00
|
|
|
%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
|
2024-01-05 21:51:50 +01:00
|
|
|
"http://cdn.docbook.org/release/xsl-nons/%{version}" \
|
|
|
|
"file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
|
2024-01-05 21:51:49 +01:00
|
|
|
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
|
2024-01-05 21:51:50 +01:00
|
|
|
"http://cdn.docbook.org/release/xsl-nons/%{version}" \
|
|
|
|
"file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
|
2024-01-05 21:51:49 +01:00
|
|
|
%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
|
2024-01-05 21:51:50 +01:00
|
|
|
"http://cdn.docbook.org/release/xsl-nons/current/" \
|
|
|
|
"file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
|
2024-01-05 21:51:49 +01:00
|
|
|
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
|
2024-01-05 21:51:50 +01:00
|
|
|
"http://cdn.docbook.org/release/xsl-nons/current/" \
|
|
|
|
"file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
|
|
|
|
#keep the old one sourceforge URIs at least temporarily
|
2024-01-05 21:51:49 +01:00
|
|
|
%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
|
2024-01-05 21:51:50 +01:00
|
|
|
"http://docbook.sourceforge.net/release/xsl/current" \
|
|
|
|
"file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
|
2024-01-05 21:51:49 +01:00
|
|
|
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
|
2024-01-05 21:51:50 +01:00
|
|
|
"http://docbook.sourceforge.net/release/xsl/current" \
|
|
|
|
"file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
|
2024-01-05 21:51:49 +01:00
|
|
|
fi
|
2024-01-05 21:51:50 +01:00
|
|
|
:
|
2024-01-05 21:51:49 +01:00
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ $1 -eq 0 ]; then
|
2024-01-05 21:51:50 +01:00
|
|
|
CATALOG=%{_sysconfdir}/xml/catalog
|
|
|
|
%{_bindir}/xmlcatalog --noout --del \
|
|
|
|
"file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
|
2024-01-05 21:51:49 +01:00
|
|
|
fi
|
2024-01-05 21:51:50 +01:00
|
|
|
:
|
2024-01-05 21:51:49 +01:00
|
|
|
|
2024-01-05 21:51:51 +01:00
|
|
|
%post -n docbook5-xsl
|
|
|
|
CATALOG=%{_sysconfdir}/xml/catalog
|
|
|
|
%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
|
|
|
|
"http://cdn.docbook.org/release/xsl/%{version}" \
|
|
|
|
"file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
|
|
|
|
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
|
|
|
|
"http://cdn.docbook.org/release/xsl/%{version}" \
|
|
|
|
"file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
|
|
|
|
%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
|
|
|
|
"http://cdn.docbook.org/release/xsl/current/" \
|
|
|
|
"file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
|
|
|
|
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
|
|
|
|
"http://cdn.docbook.org/release/xsl/current/" \
|
|
|
|
"file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
|
|
|
|
|
|
|
|
%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
|
|
|
|
"http://docbook.sourceforge.net/release/xsl-ns/current" \
|
|
|
|
"file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
|
|
|
|
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
|
|
|
|
"http://docbook.sourceforge.net/release/xsl-ns/current" \
|
|
|
|
"file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
|
|
|
|
:
|
|
|
|
|
|
|
|
%postun -n docbook5-xsl
|
|
|
|
# remove entries only on removal of package
|
|
|
|
if [ "$1" = 0 ]; then
|
|
|
|
CATALOG=%{_sysconfdir}/xml/catalog
|
|
|
|
%{_bindir}/xmlcatalog --noout --del \
|
|
|
|
"file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
|
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
2024-01-05 21:51:49 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_datadir}/sgml/docbook/xsl-stylesheets
|
|
|
|
%dir %{_datadir}/sgml/docbook/xsl-stylesheets-%{version}
|
|
|
|
%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}/*
|
|
|
|
%doc COPYING
|
2024-01-05 21:51:51 +01:00
|
|
|
|
|
|
|
%files -n docbook5-xsl
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}
|
|
|
|
%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}/*
|
|
|
|
%{_datadir}/sgml/docbook/xsl-ns-stylesheets
|
|
|
|
%exclude %{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}/extensions
|
|
|
|
%doc %{name}-%{version}/COPYING
|
|
|
|
|
|
|
|
%files -n docbook5-xsl-extensions
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}/extensions
|
|
|
|
%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}/extensions/*
|
|
|
|
%doc %{name}-%{version}/extensions/LICENSE.txt
|
2024-01-05 21:51:49 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 21:51:51 +01:00
|
|
|
* Wed May 19 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.79.2-4mamba
|
|
|
|
- re-add docbook5 support in docbook5-xsl subpackage
|
|
|
|
|
2024-01-05 21:51:50 +01:00
|
|
|
* Sat May 15 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.79.2-3mamba
|
|
|
|
- rebuilt with Fedora patches and recipe
|
|
|
|
|
2024-01-05 21:51:50 +01:00
|
|
|
* Wed May 09 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 1.79.2-2mamba
|
|
|
|
- patch lib.xsl to fix samba 4.8.0 build (https://forums.funtoo.org/topic/1257-samba-installation-fails-due-to-manpage/)
|
|
|
|
|
2024-01-05 21:51:50 +01:00
|
|
|
* Sat Dec 23 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 1.79.2-1mamba
|
|
|
|
- update to 1.79.2
|
|
|
|
|
2024-01-05 21:51:49 +01:00
|
|
|
* Mon Jan 04 2016 Automatic Build System <autodist@mambasoft.it> 1.79.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:51:49 +01:00
|
|
|
* Sat Apr 27 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.78.1-2mamba
|
|
|
|
- install VERSION as VERSION.xsl and add a compatibility symlink to VERSION
|
|
|
|
|
|
|
|
* Mon Apr 22 2013 Automatic Build System <autodist@mambasoft.it> 1.78.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Nov 09 2010 Automatic Build System <autodist@mambasoft.it> 1.76.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Aug 11 2010 Davide Madrisan <davide.madrisan@gmail.com> 1.75.2-2mamba
|
|
|
|
- create symlinks xsl-stylesheets and xsl-stylesheets in %{_datadir}/sgml/docbook
|
|
|
|
|
|
|
|
* Mon Jul 27 2009 Automatic Build System <autodist@mambasoft.it> 1.75.2-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Jul 03 2009 Automatic Build System <autodist@mambasoft.it> 1.75.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sun Apr 26 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.74.3-2mamba
|
|
|
|
- set libxml2-utils as PreReq
|
|
|
|
|
|
|
|
* Fri Mar 06 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.74.3-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Sep 26 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.74.0-2mamba
|
|
|
|
- don't use make install which won't install most needed files and directories
|
|
|
|
|
|
|
|
* Tue Sep 23 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.74.0-1mamba
|
|
|
|
- update to 1.74.0
|
|
|
|
|
|
|
|
* Fri Nov 04 2005 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 1.68.1-3qilnx
|
|
|
|
- architecture changed to noarch
|
|
|
|
|
|
|
|
* Wed Feb 23 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.68.1-2qilnx
|
|
|
|
- create catalog if empty
|
|
|
|
- fix libxml2 requirements
|
|
|
|
|
|
|
|
* Tue Feb 22 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.68.1-1qilnx
|
|
|
|
- update to version 1.68.1 by autospec
|
|
|
|
|
|
|
|
* Tue Jul 27 2004 Davide Madrisan <davide.madrisan@qilinux.it> 1.65.1-1qilnx
|
|
|
|
- initial build
|