527237
Name: docbook5-style-xsl
527237
Version: 1.78.1
71dddb
Release: 4%{?dist}
527237
Group: Applications/Text
527237
527237
Summary: Norman Walsh's XSL stylesheets for DocBook 5.X
527237
527237
# Package is licensed as MIT/X (http://wiki.docbook.org/topic/DocBookLicense),
527237
# some .js files under ./slides/browser/ are licensed MPLv1.1
527237
License: MIT and MPLv1.1
527237
URL: http://wiki.docbook.org/DocBookXslStylesheets
527237
527237
Provides: docbook-xsl-ns = %{version}
527237
# xml-common was using /usr/share/xml until 0.6.3-8.
527237
Requires: xml-common >= 0.6.3-8
527237
# libxml2 required because of usage of /usr/bin/xmlcatalog
527237
Requires(post): libxml2 >= 2.4.8
527237
Requires(postun): libxml2 >= 2.4.8
527237
Conflicts: passivetex < 1.21
527237
527237
BuildArch: noarch
527237
Source0: http://downloads.sourceforge.net/docbook/docbook-xsl-ns-%{version}.tar.bz2
527237
527237
%description
527237
These XSL namespace aware stylesheets allow you to transform any
527237
DocBook 5 document to other formats, such as HTML, manpages, FO,
527237
XHMTL and other formats. They are highly customizable. For more
527237
information see W3C page about XSL.
527237
71dddb
%package extensions
71dddb
Group: Applications/Text
71dddb
Summary: Norman Walsh's XSL stylesheets extensions for DocBook 5.X
71dddb
# Package is licensed as MIT/X (http://wiki.docbook.org/topic/DocBookLicense),
71dddb
# some .js files under ./slides/browser/ are licensed MPLv1.1
71dddb
License: MIT and ASL 2.0
71dddb
Requires: docbook-xsl-ns = %{version}
71dddb
71dddb
%description extensions
71dddb
This package contains Java extensions for XSL namespace aware stylesheets.
71dddb
527237
%prep
527237
%setup -q -n docbook-xsl-ns-%{version}
527237
#remove .gitignore files
527237
rm -rf $(find -name '.gitignore' -type f)
527237
#make ruby scripts executable
527237
chmod +x epub/bin/dbtoepub
527237
527237
%build
527237
527237
%install
527237
DESTDIR=$RPM_BUILD_ROOT
527237
mkdir -p $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version
527237
cp -a [[:lower:]]* $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version/
527237
cp -a VERSION $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version/VERSION.xsl
527237
ln -s VERSION.xsl \
527237
$DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version/VERSION
527237
ln -s xsl-ns-stylesheets-%{version} \
527237
 $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets
527237
527237
# Don't ship install shell script.
527237
rm -rf $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets/install.sh
527237
527237
%files
527237
%defattr (-,root,root,-)
527237
%doc BUGS
527237
%doc README COPYING
527237
%doc TODO NEWS
527237
%doc RELEASE-NOTES.*
527237
%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}
527237
%{_datadir}/sgml/docbook/xsl-ns-stylesheets
71dddb
%exclude %{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}/extensions
71dddb
71dddb
%files extensions
71dddb
%doc extensions/README.txt extensions/LICENSE.txt
71dddb
%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}/extensions
527237
527237
%post
527237
CATALOG=%{_sysconfdir}/xml/catalog
527237
%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
527237
 "http://docbook.sourceforge.net/release/xsl-ns/%{version}" \
527237
 "file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
527237
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
527237
 "http://docbook.sourceforge.net/release/xsl-ns/%{version}" \
527237
 "file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
527237
%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
527237
 "http://docbook.sourceforge.net/release/xsl-ns/current" \
527237
 "file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
527237
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
527237
 "http://docbook.sourceforge.net/release/xsl-ns/current" \
527237
 "file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
527237
527237
527237
%postun
527237
# remove entries only on removal of package
527237
if [ "$1" = 0 ]; then
527237
  CATALOG=%{_sysconfdir}/xml/catalog
527237
  %{_bindir}/xmlcatalog --noout --del \
527237
   "file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
527237
fi
527237
527237
%changelog
71dddb
* Wed Jul 16 2014 Ondrej Vasik <ovasik@redhat.com> 1.78.1-4
71dddb
- fix the extensions inclusion
71dddb
71dddb
* Wed Jul 16 2014 Ondrej Vasik <ovasik@redhat.com> 1.78.1-3
71dddb
- include extensions in extensions subpackage (#1084491)
71dddb
339fc5
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.78.1-2
339fc5
- Mass rebuild 2013-12-27
339fc5
527237
* Mon Mar 18 2013 Ondrej Vasik <ovasik@redhat.com> 1.78.1-1
527237
- new upstream release 1.78.1
527237
527237
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.78.0-3
527237
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
527237
527237
* Thu Jan 03 2013 Ondrej Vasik <ovasik@redhat.com> 1.78.0-2
527237
- resolve missing VERSION.xsl (#891459)
527237
527237
* Thu Dec 20 2012 Ondrej Vasik <ovasik@redhat.com> 1.78.0-1
527237
- new upstream release 1.78.0
527237
527237
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.77.1-2
527237
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
527237
527237
* Tue Jun 05 2012 Ondrej Vasik <ovasik@redhat.com> 1.77.1-1
527237
- new upstream release 1.77.1
527237
527237
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.76.1-2
527237
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
527237
527237
* Tue Nov 02 2010 Ondrej Vasik <ovasik@redhat.com> 1.76.1-1
527237
- new upstream release 1.76.1
527237
527237
* Mon Sep 06 2010 Ondrej Vasik <ovasik@redhat.com> 1.76.0-1
527237
- new upstream release 1.76.0
527237
527237
* Tue Feb 23 2010 Ondrej Vasik <ovasik@redhat.com> 1.75.2-4
527237
- fix the licenses, use better URL
527237
527237
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.75.2-3
527237
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
527237
527237
* Wed Jul 22 2009 Ondrej Vasik <ovasik@redhat.com> 1.75.2-2
527237
- upstream changed tarballs after release
527237
527237
* Tue Jul 21 2009 Ondrej Vasik <ovasik@redhat.com> 1.75.2-1
527237
- new upstream release 1.75.2
527237
527237
* Thu May 28 2009 Ondrej Vasik <ovasik@redhat.com> 1.75.1-1
527237
- new upstream release 1.75.1
527237
527237
* Mon May 11 2009 Ondrej Vasik <ovasik@redhat.com> 1.75.0-1
527237
- new upstream release 1.75.0
527237
527237
* Wed Mar 11 2009 Ondrej Vasik <ovasik@redhat.com> 1.74.3-1
527237
- new upstream release 1.74.3
527237
527237
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.74.2-2
527237
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
527237
527237
* Fri Feb 20 2009 Ondrej Vasik <ovasik@redhat.com> 1.74.2-1
527237
- new upstream release 1.74.2
527237
527237
* Wed Feb 18 2009 Ondrej Vasik <ovasik@redhat.com> 1.74.1-1
527237
- new upstream release 1.74.1
527237
527237
* Fri Feb 13 2009 Ondrej Vasik <ovasik@redhat.com> 1.74.0-2
527237
- Ship VERSION file (#485297) , ship RELEASE-NOTES
527237
527237
* Mon Nov 10 2008 Ondrej Vasik <ovasik@redhat.com> 1.74.0-1
527237
- Initial Fedora release