Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > c19c3ada319eda98c4c93336ebc6d353 > files > 2

docbook5-style-xsl-1.78.1-6.mga5.src.rpm

Name:          docbook5-style-xsl
Version:       1.78.1
Release:       %mkrel 6
Summary:       Norman Walsh's XSL stylesheets for DocBook 5.X
Group:         Publishing
License:       MIT, MPLv1.1
Url:           http://docbook.sourceforge.net/
Source0:       http://downloads.sourceforge.net/docbook/docbook-xsl-ns-%{version}.tar.bz2
Provides:      docbook-xsl-ns = %{version}
# required /usr/bin/xmlcatalog
Requires(post): libxml2-utils
Requires(postun): libxml2-utils
BuildArch:     noarch

%description
These XSL namespace aware stylesheets allow you to transform any
DocBook 5 document to other formats, such as HTML, manpages, FO,
XHMTL and other formats. They are highly customizable. For more
information see W3C page about XSL.

%prep
%setup -q -n docbook-xsl-ns-%{version}

rm -rf $(find -name '.gitignore' -type f)
chmod +x epub/bin/dbtoepub

%build

%install
mkdir -p %{buildroot}%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version
cp -a [[:lower:]]* %{buildroot}%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version/
cp -a VERSION VERSION.xsl %{buildroot}%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version/
ln -s xsl-ns-stylesheets-%{version} %{buildroot}%{_datadir}/sgml/docbook/xsl-ns-stylesheets

rm -rf %{buildroot}%{_datadir}/sgml/docbook/xsl-ns-stylesheets/extensions
rm -rf %{buildroot}%{_datadir}/sgml/docbook/xsl-ns-stylesheets/install.sh

%post
CATALOG=/etc/xml/catalog
 %{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
  "http://docbook.sourceforge.net/release/xsl-ns/%{version}" \
  "file:///usr/share/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
 "http://docbook.sourceforge.net/release/xsl-ns/%{version}" \
 "file:///usr/share/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
 "http://docbook.sourceforge.net/release/xsl-ns/current" \
 "file:///usr/share/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
 "http://docbook.sourceforge.net/release/xsl-ns/current" \
 "file:///usr/share/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG

%postun
if [ "$1" = 0 ]; then
CATALOG=/etc/xml/catalog
%{_bindir}/xmlcatalog --noout --del \
"file:///usr/share/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
fi

%files
%{_datadir}/sgml/docbook/xsl-ns-stylesheets
%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}
%doc BUGS COPYING NEWS README RELEASE-NOTES.* TODO


%changelog
* Wed Oct 15 2014 umeabot <umeabot> 1.78.1-6.mga5
+ Revision: 744689
- Second Mageia 5 Mass Rebuild

* Fri Sep 26 2014 tv <tv> 1.78.1-5.mga5
+ Revision: 725048
- rebuild for bogus file deps

* Tue Sep 16 2014 umeabot <umeabot> 1.78.1-4.mga5
+ Revision: 678792
- Mageia 5 Mass Rebuild

* Wed Jan 15 2014 shlomif <shlomif> 1.78.1-3.mga4
+ Revision: 566607
- Include VERSION.xsl in the install. (mga#12274).

* Tue Oct 22 2013 umeabot <umeabot> 1.78.1-2.mga4
+ Revision: 541355
- Mageia 4 Mass Rebuild

* Sat Oct 12 2013 fwang <fwang> 1.78.1-1.mga4
+ Revision: 495659
- new version 1.78.1

* Fri Jan 11 2013 umeabot <umeabot> 1.76.1-2.mga3
+ Revision: 349051
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Tue Nov 01 2011 gil <gil> 1.76.1-1.mga2
+ Revision: 161048
- imported package docbook5-style-xsl