|
|
8862b08 |
Name: docbook5-style-xsl
|
|
|
638d68e |
Version: 1.76.1
|
|
|
6d48cc7 |
Release: 1%{?dist}
|
|
|
8862b08 |
Group: Applications/Text
|
|
|
8862b08 |
|
|
|
8862b08 |
Summary: Norman Walsh's XSL stylesheets for DocBook 5.X
|
|
|
8862b08 |
|
|
|
ebbd4ce |
# Package is licensed as MIT/X (http://wiki.docbook.org/topic/DocBookLicense),
|
|
|
ebbd4ce |
# some .js files under ./slides/browser/ are licensed MPLv1.1
|
|
|
ebbd4ce |
License: MIT and MPLv1.1
|
|
|
ebbd4ce |
URL: http://wiki.docbook.org/topic/DocBookXslStylesheets
|
|
|
8862b08 |
|
|
|
8862b08 |
Provides: docbook-xsl-ns = %{version}
|
|
|
8862b08 |
# xml-common was using /usr/share/xml until 0.6.3-8.
|
|
|
8862b08 |
Requires: xml-common >= 0.6.3-8
|
|
|
8862b08 |
# libxml2 required because of usage of /usr/bin/xmlcatalog
|
|
|
8862b08 |
Requires(post): libxml2 >= 2.4.8
|
|
|
8862b08 |
Requires(postun): libxml2 >= 2.4.8
|
|
|
8862b08 |
Conflicts: passivetex < 1.21
|
|
|
8862b08 |
|
|
|
8862b08 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
8862b08 |
|
|
|
8862b08 |
BuildArch: noarch
|
|
|
8862b08 |
Source0: http://downloads.sourceforge.net/docbook/docbook-xsl-ns-%{version}.tar.bz2
|
|
|
8862b08 |
|
|
|
8862b08 |
%description
|
|
|
8862b08 |
These XSL namespace aware stylesheets allow you to transform any
|
|
|
8862b08 |
DocBook 5 document to other formats, such as HTML, manpages, FO,
|
|
|
8862b08 |
XHMTL and other formats. They are highly customizable. For more
|
|
|
8862b08 |
information see W3C page about XSL.
|
|
|
8862b08 |
|
|
|
8862b08 |
%prep
|
|
|
8862b08 |
%setup -q -n docbook-xsl-ns-%{version}
|
|
|
8862b08 |
#remove .gitignore files
|
|
|
8862b08 |
rm -rf $(find -name '.gitignore' -type f)
|
|
|
8862b08 |
#make ruby scripts executable
|
|
|
8862b08 |
chmod +x epub/bin/dbtoepub
|
|
|
8862b08 |
|
|
|
8862b08 |
%build
|
|
|
8862b08 |
|
|
|
8862b08 |
%install
|
|
|
8862b08 |
DESTDIR=$RPM_BUILD_ROOT
|
|
|
8862b08 |
rm -rf $RPM_BUILD_ROOT
|
|
|
8862b08 |
mkdir -p $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version
|
|
|
8862b08 |
cp -a [[:lower:]]* $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version/
|
|
|
fe0671e |
cp -a VERSION $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version/
|
|
|
8862b08 |
ln -s xsl-ns-stylesheets-%{version} \
|
|
|
8862b08 |
$DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets
|
|
|
8862b08 |
|
|
|
8862b08 |
# Don't ship the extensions.
|
|
|
8862b08 |
rm -rf $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets/extensions
|
|
|
8862b08 |
# Don't ship install shell script.
|
|
|
8862b08 |
rm -rf $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets/install.sh
|
|
|
8862b08 |
|
|
|
8862b08 |
%clean
|
|
|
8862b08 |
rm -rf $RPM_BUILD_ROOT
|
|
|
8862b08 |
|
|
|
8862b08 |
%files
|
|
|
8862b08 |
%defattr (-,root,root,-)
|
|
|
8862b08 |
%doc BUGS
|
|
|
8862b08 |
%doc README COPYING
|
|
|
8862b08 |
%doc TODO NEWS
|
|
|
fe0671e |
%doc RELEASE-NOTES.*
|
|
|
8862b08 |
%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}
|
|
|
8862b08 |
%{_datadir}/sgml/docbook/xsl-ns-stylesheets
|
|
|
8862b08 |
|
|
|
8862b08 |
%post
|
|
|
8862b08 |
CATALOG=%{_sysconfdir}/xml/catalog
|
|
|
8862b08 |
%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
|
|
|
8862b08 |
"http://docbook.sourceforge.net/release/xsl-ns/%{version}" \
|
|
|
8862b08 |
"file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
|
|
|
8862b08 |
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
|
|
|
8862b08 |
"http://docbook.sourceforge.net/release/xsl-ns/%{version}" \
|
|
|
8862b08 |
"file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
|
|
|
8862b08 |
%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
|
|
|
8862b08 |
"http://docbook.sourceforge.net/release/xsl-ns/current" \
|
|
|
8862b08 |
"file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
|
|
|
8862b08 |
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
|
|
|
8862b08 |
"http://docbook.sourceforge.net/release/xsl-ns/current" \
|
|
|
8862b08 |
"file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
|
|
|
8862b08 |
|
|
|
8862b08 |
|
|
|
8862b08 |
%postun
|
|
|
8862b08 |
# remove entries only on removal of package
|
|
|
8862b08 |
if [ "$1" = 0 ]; then
|
|
|
8862b08 |
CATALOG=%{_sysconfdir}/xml/catalog
|
|
|
8862b08 |
%{_bindir}/xmlcatalog --noout --del \
|
|
|
8862b08 |
"file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
|
|
|
8862b08 |
fi
|
|
|
8862b08 |
|
|
|
8862b08 |
%changelog
|
|
|
638d68e |
* Tue Nov 02 2010 Ondrej Vasik <ovasik@redhat.com> 1.76.1-1
|
|
|
638d68e |
- new upstream release 1.76.1
|
|
|
638d68e |
|
|
|
5d9bd0b |
* Mon Sep 06 2010 Ondrej Vasik <ovasik@redhat.com> 1.76.0-1
|
|
|
6d48cc7 |
- new upstream release 1.76.0
|
|
|
6d48cc7 |
|
|
|
ebbd4ce |
* Tue Feb 23 2010 Ondrej Vasik <ovasik@redhat.com> 1.75.2-4
|
|
|
ebbd4ce |
- fix the licenses, use better URL
|
|
|
ebbd4ce |
|
|
|
06c8067 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.75.2-3
|
|
|
06c8067 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
06c8067 |
|
|
|
da33a05 |
* Wed Jul 22 2009 Ondrej Vasik <ovasik@redhat.com> 1.75.2-2
|
|
|
da33a05 |
- upstream changed tarballs after release
|
|
|
da33a05 |
|
|
|
efbaa72 |
* Tue Jul 21 2009 Ondrej Vasik <ovasik@redhat.com> 1.75.2-1
|
|
|
efbaa72 |
- new upstream release 1.75.2
|
|
|
efbaa72 |
|
|
|
58768bc |
* Thu May 28 2009 Ondrej Vasik <ovasik@redhat.com> 1.75.1-1
|
|
|
58768bc |
- new upstream release 1.75.1
|
|
|
58768bc |
|
|
|
67f03e0 |
* Mon May 11 2009 Ondrej Vasik <ovasik@redhat.com> 1.75.0-1
|
|
|
67f03e0 |
- new upstream release 1.75.0
|
|
|
67f03e0 |
|
|
|
5a029e0 |
* Wed Mar 11 2009 Ondrej Vasik <ovasik@redhat.com> 1.74.3-1
|
|
|
5a029e0 |
- new upstream release 1.74.3
|
|
|
5a029e0 |
|
|
|
322e3e2 |
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.74.2-2
|
|
|
322e3e2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
322e3e2 |
|
|
|
8772df9 |
* Fri Feb 20 2009 Ondrej Vasik <ovasik@redhat.com> 1.74.2-1
|
|
|
8772df9 |
- new upstream release 1.74.2
|
|
|
8772df9 |
|
|
|
16e7860 |
* Wed Feb 18 2009 Ondrej Vasik <ovasik@redhat.com> 1.74.1-1
|
|
|
16e7860 |
- new upstream release 1.74.1
|
|
|
16e7860 |
|
|
|
fe0671e |
* Fri Feb 13 2009 Ondrej Vasik <ovasik@redhat.com> 1.74.0-2
|
|
|
fe0671e |
- Ship VERSION file (#485297) , ship RELEASE-NOTES
|
|
|
fe0671e |
|
|
|
8862b08 |
* Mon Nov 10 2008 Ondrej Vasik <ovasik@redhat.com> 1.74.0-1
|
|
|
8862b08 |
- Initial Fedora release
|