2009-01-14 13:10:07 +00:00
|
|
|
Name: docbook5-style-xsl
|
2009-07-21 08:46:05 +00:00
|
|
|
Version: 1.75.2
|
2010-02-23 13:45:28 +00:00
|
|
|
Release: 4%{?dist}
|
2009-01-14 13:10:07 +00:00
|
|
|
Group: Applications/Text
|
|
|
|
|
|
|
|
Summary: Norman Walsh's XSL stylesheets for DocBook 5.X
|
|
|
|
|
2010-02-23 13:45:28 +00:00
|
|
|
# Package is licensed as MIT/X (http://wiki.docbook.org/topic/DocBookLicense),
|
|
|
|
# some .js files under ./slides/browser/ are licensed MPLv1.1
|
|
|
|
License: MIT and MPLv1.1
|
|
|
|
URL: http://wiki.docbook.org/topic/DocBookXslStylesheets
|
2009-01-14 13:10:07 +00:00
|
|
|
|
|
|
|
Provides: docbook-xsl-ns = %{version}
|
|
|
|
# xml-common was using /usr/share/xml until 0.6.3-8.
|
|
|
|
Requires: xml-common >= 0.6.3-8
|
|
|
|
# libxml2 required because of usage of /usr/bin/xmlcatalog
|
|
|
|
Requires(post): libxml2 >= 2.4.8
|
|
|
|
Requires(postun): libxml2 >= 2.4.8
|
|
|
|
Conflicts: passivetex < 1.21
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
Source0: http://downloads.sourceforge.net/docbook/docbook-xsl-ns-%{version}.tar.bz2
|
|
|
|
|
|
|
|
%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}
|
|
|
|
#remove .gitignore files
|
|
|
|
rm -rf $(find -name '.gitignore' -type f)
|
|
|
|
#make ruby scripts executable
|
|
|
|
chmod +x epub/bin/dbtoepub
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
mkdir -p $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version
|
|
|
|
cp -a [[:lower:]]* $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version/
|
2009-02-13 10:19:45 +00:00
|
|
|
cp -a VERSION $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%version/
|
2009-01-14 13:10:07 +00:00
|
|
|
ln -s xsl-ns-stylesheets-%{version} \
|
|
|
|
$DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets
|
|
|
|
|
|
|
|
# Don't ship the extensions.
|
|
|
|
rm -rf $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets/extensions
|
|
|
|
# Don't ship install shell script.
|
|
|
|
rm -rf $DESTDIR%{_datadir}/sgml/docbook/xsl-ns-stylesheets/install.sh
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr (-,root,root,-)
|
|
|
|
%doc BUGS
|
|
|
|
%doc README COPYING
|
|
|
|
%doc TODO NEWS
|
2009-02-13 10:19:45 +00:00
|
|
|
%doc RELEASE-NOTES.*
|
2009-01-14 13:10:07 +00:00
|
|
|
%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}
|
|
|
|
%{_datadir}/sgml/docbook/xsl-ns-stylesheets
|
|
|
|
|
|
|
|
%post
|
|
|
|
CATALOG=%{_sysconfdir}/xml/catalog
|
|
|
|
%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
|
|
|
|
"http://docbook.sourceforge.net/release/xsl-ns/%{version}" \
|
|
|
|
"file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
|
|
|
|
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
|
|
|
|
"http://docbook.sourceforge.net/release/xsl-ns/%{version}" \
|
|
|
|
"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
|
|
|
|
# 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
|
|
|
|
|
|
|
|
%changelog
|
2010-02-23 13:45:28 +00:00
|
|
|
* Tue Feb 23 2010 Ondrej Vasik <ovasik@redhat.com> 1.75.2-4
|
|
|
|
- fix the licenses, use better URL
|
|
|
|
|
2009-07-24 20:26:56 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.75.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-07-22 01:15:19 +00:00
|
|
|
* Wed Jul 22 2009 Ondrej Vasik <ovasik@redhat.com> 1.75.2-2
|
|
|
|
- upstream changed tarballs after release
|
|
|
|
|
2009-07-21 08:46:05 +00:00
|
|
|
* Tue Jul 21 2009 Ondrej Vasik <ovasik@redhat.com> 1.75.2-1
|
|
|
|
- new upstream release 1.75.2
|
|
|
|
|
2009-05-28 06:32:09 +00:00
|
|
|
* Thu May 28 2009 Ondrej Vasik <ovasik@redhat.com> 1.75.1-1
|
|
|
|
- new upstream release 1.75.1
|
|
|
|
|
2009-05-11 09:19:49 +00:00
|
|
|
* Mon May 11 2009 Ondrej Vasik <ovasik@redhat.com> 1.75.0-1
|
|
|
|
- new upstream release 1.75.0
|
|
|
|
|
2009-03-11 22:08:27 +00:00
|
|
|
* Wed Mar 11 2009 Ondrej Vasik <ovasik@redhat.com> 1.74.3-1
|
|
|
|
- new upstream release 1.74.3
|
|
|
|
|
2009-02-24 12:24:09 +00:00
|
|
|
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.74.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-02-20 09:05:35 +00:00
|
|
|
* Fri Feb 20 2009 Ondrej Vasik <ovasik@redhat.com> 1.74.2-1
|
|
|
|
- new upstream release 1.74.2
|
|
|
|
|
2009-02-18 11:04:04 +00:00
|
|
|
* Wed Feb 18 2009 Ondrej Vasik <ovasik@redhat.com> 1.74.1-1
|
|
|
|
- new upstream release 1.74.1
|
|
|
|
|
2009-02-13 10:19:45 +00:00
|
|
|
* Fri Feb 13 2009 Ondrej Vasik <ovasik@redhat.com> 1.74.0-2
|
|
|
|
- Ship VERSION file (#485297) , ship RELEASE-NOTES
|
|
|
|
|
2009-01-14 13:10:07 +00:00
|
|
|
* Mon Nov 10 2008 Ondrej Vasik <ovasik@redhat.com> 1.74.0-1
|
|
|
|
- Initial Fedora release
|