|
|
56ebd8 |
%define pkg docbook-slides
|
|
|
56ebd8 |
Summary: DocBook Slides document type and stylesheets
|
|
|
56ebd8 |
Name: docbook-slides
|
|
|
56ebd8 |
Version: 3.4.0
|
|
|
c65140 |
Release: 13%{?dist}
|
|
|
56ebd8 |
License: MIT
|
|
|
56ebd8 |
Group: Applications/Text
|
|
|
56ebd8 |
URL: http://sourceforge.net/projects/docbook
|
|
|
56ebd8 |
Source0: http://downloads.sourceforge.net/docbook/%{name}-%{version}.tar.gz
|
|
|
56ebd8 |
Source1: %{name}.xml
|
|
|
56ebd8 |
Source2: %{name}.cat
|
|
|
56ebd8 |
Source3: %{name}.README.redhat
|
|
|
56ebd8 |
#tests update and buildtools could be downloaded at upstream svn ... e.g.
|
|
|
56ebd8 |
#http://docbook.svn.sourceforge.net/viewvc/docbook/trunk/slides/tests/
|
|
|
56ebd8 |
Source4: %{name}-tests.tar.gz
|
|
|
56ebd8 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
56ebd8 |
BuildArch: noarch
|
|
|
56ebd8 |
Requires: docbook-dtds
|
|
|
56ebd8 |
Requires: docbook-xsl
|
|
|
56ebd8 |
Requires: docbook-simple
|
|
|
56ebd8 |
Requires: sgml-common
|
|
|
56ebd8 |
Requires(post): sed
|
|
|
56ebd8 |
Requires(post): libxml2 >= 2.4.8
|
|
|
56ebd8 |
Requires(postun): libxml2 >= 2.4.8
|
|
|
56ebd8 |
|
|
|
56ebd8 |
|
|
|
56ebd8 |
%description
|
|
|
56ebd8 |
DocBook Slides provides customization layers of the both the
|
|
|
56ebd8 |
Simplified and the full DocBook XML DTD, as well as the DocBook XSL
|
|
|
56ebd8 |
Stylesheets. This package contains the XML document type definition
|
|
|
56ebd8 |
and stylesheets for processing DocBook Slides XML. The slides doctype
|
|
|
56ebd8 |
and stylesheets are for generating presentations, primarily in HTML.
|
|
|
56ebd8 |
|
|
|
56ebd8 |
%prep
|
|
|
56ebd8 |
%setup -q -n %{pkg}-%{version}
|
|
|
56ebd8 |
tar xf %{SOURCE4}
|
|
|
56ebd8 |
|
|
|
56ebd8 |
%build
|
|
|
56ebd8 |
|
|
|
56ebd8 |
%install
|
|
|
56ebd8 |
rm -rf $RPM_BUILD_ROOT
|
|
|
56ebd8 |
|
|
|
56ebd8 |
DESTDIR=$RPM_BUILD_ROOT%{_datadir}/xml/docbook/slides/%{version}
|
|
|
56ebd8 |
mkdir -p $DESTDIR
|
|
|
56ebd8 |
cp -a browser $DESTDIR
|
|
|
56ebd8 |
cp -a graphics $DESTDIR
|
|
|
56ebd8 |
cp -a schema $DESTDIR
|
|
|
56ebd8 |
cp -a xsl $DESTDIR
|
|
|
56ebd8 |
cp -a VERSION $DESTDIR
|
|
|
56ebd8 |
cp -a catalog.xml $DESTDIR
|
|
|
56ebd8 |
|
|
|
56ebd8 |
## Install package catalogs into /etc/*ml/ ##
|
|
|
56ebd8 |
|
|
|
56ebd8 |
XML_CAT_DIR=$RPM_BUILD_ROOT%{_sysconfdir}/xml
|
|
|
56ebd8 |
mkdir -p $XML_CAT_DIR
|
|
|
56ebd8 |
install -p -m 644 %{SOURCE1} $XML_CAT_DIR
|
|
|
56ebd8 |
|
|
|
56ebd8 |
SGML_CAT_DIR=$RPM_BUILD_ROOT%{_sysconfdir}/sgml
|
|
|
56ebd8 |
mkdir -p $SGML_CAT_DIR
|
|
|
56ebd8 |
install -p -m 644 %{SOURCE2} $SGML_CAT_DIR
|
|
|
56ebd8 |
|
|
|
56ebd8 |
cp -p %{SOURCE3} ./README2
|
|
|
56ebd8 |
|
|
|
56ebd8 |
%clean
|
|
|
56ebd8 |
rm -rf $RPM_BUILD_ROOT
|
|
|
56ebd8 |
|
|
|
56ebd8 |
%files
|
|
|
56ebd8 |
%defattr (-,root,root, -)
|
|
|
56ebd8 |
%doc doc
|
|
|
56ebd8 |
%doc tests
|
|
|
56ebd8 |
%doc README
|
|
|
56ebd8 |
%doc NEWS
|
|
|
56ebd8 |
%doc README2
|
|
|
56ebd8 |
%dir %{_datadir}/xml/docbook/slides/
|
|
|
56ebd8 |
%{_datadir}/xml/docbook/slides/%{version}
|
|
|
56ebd8 |
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sgml/docbook-slides.cat
|
|
|
56ebd8 |
%config(noreplace) %{_sysconfdir}/xml/docbook-slides.xml
|
|
|
56ebd8 |
|
|
|
56ebd8 |
|
|
|
56ebd8 |
%post
|
|
|
56ebd8 |
|
|
|
56ebd8 |
################## XML catalog registration #######################
|
|
|
56ebd8 |
|
|
|
56ebd8 |
## Define handy variables ##
|
|
|
56ebd8 |
|
|
|
56ebd8 |
ROOT_XML_CATALOG=%{_sysconfdir}/xml/catalog
|
|
|
56ebd8 |
PKG_XML_CATALOG=%{_sysconfdir}/xml/docbook-slides.xml
|
|
|
56ebd8 |
#LOCAL_XML_CATALOG=/usr/share/xml/docbook/slides/3.4.0/catalog.xml
|
|
|
56ebd8 |
|
|
|
56ebd8 |
#
|
|
|
56ebd8 |
# Register it in the super catalog with the appropriate delegates
|
|
|
56ebd8 |
#
|
|
|
56ebd8 |
if [ -w $ROOTCATALOG ]
|
|
|
56ebd8 |
then
|
|
|
56ebd8 |
%{_bindir}/xmlcatalog --noout --add "delegatePublic" \
|
|
|
56ebd8 |
"-//Norman Walsh//DTD Slides" \
|
|
|
56ebd8 |
"file://$PKG_XML_CATALOG" $ROOT_XML_CATALOG
|
|
|
56ebd8 |
|
|
|
56ebd8 |
%{_bindir}/xmlcatalog --noout --add "delegateSystem" \
|
|
|
56ebd8 |
"http://docbook.sourceforge.net/release/slides" \
|
|
|
56ebd8 |
"file://$PKG_XML_CATALOG" $ROOT_XML_CATALOG
|
|
|
56ebd8 |
%{_bindir}/xmlcatalog --noout --add "delegateURI" \
|
|
|
56ebd8 |
"http://docbook.sourceforge.net/release/slides" \
|
|
|
56ebd8 |
"file://$PKG_XML_CATALOG" $ROOT_XML_CATALOG
|
|
|
56ebd8 |
fi
|
|
|
56ebd8 |
####################################################################
|
|
|
56ebd8 |
|
|
|
56ebd8 |
|
|
|
56ebd8 |
################# SGML catalog registration ######################
|
|
|
56ebd8 |
|
|
|
56ebd8 |
ROOT_SGML_CATALOG=%{_sysconfdir}/sgml/catalog
|
|
|
56ebd8 |
PKG_SGML_CATALOG=%{_sysconfdir}/sgml/docbook-slides.cat
|
|
|
56ebd8 |
|
|
|
56ebd8 |
#### Root SGML Catalog Entries ####
|
|
|
56ebd8 |
#### "Delegate" appropriate lookups to package catalog ####
|
|
|
56ebd8 |
|
|
|
56ebd8 |
############## use install-catalog ######################
|
|
|
56ebd8 |
|
|
|
56ebd8 |
if [ -w $ROOT_SGML_CATALOG ]
|
|
|
56ebd8 |
then
|
|
|
56ebd8 |
# xmlcatalog deletes OVERRIDE YES directive, use install-catalog instead
|
|
|
56ebd8 |
# /usr/bin/xmlcatalog --sgml --noout --add \
|
|
|
56ebd8 |
# "/etc/sgml/docbook-slides.cat"
|
|
|
56ebd8 |
|
|
|
56ebd8 |
install-catalog --add \
|
|
|
56ebd8 |
$PKG_SGML_CATALOG \
|
|
|
56ebd8 |
$ROOT_SGML_CATALOG 1>/dev/null
|
|
|
56ebd8 |
|
|
|
56ebd8 |
# Hack to workaround bug in install-catalog
|
|
|
56ebd8 |
sed -i '/^CATALOG.*log\"$/d' $PKG_SGML_CATALOG
|
|
|
56ebd8 |
sed -i '/^CATALOG.*log$/d' $PKG_SGML_CATALOG
|
|
|
56ebd8 |
fi
|
|
|
56ebd8 |
|
|
|
56ebd8 |
####################################################################
|
|
|
56ebd8 |
|
|
|
56ebd8 |
# Finally, make sure everything in /etc/*ml is readable!
|
|
|
56ebd8 |
/bin/chmod a+r %{_sysconfdir}/sgml/*
|
|
|
56ebd8 |
/bin/chmod a+r %{_sysconfdir}/xml/*
|
|
|
56ebd8 |
|
|
|
56ebd8 |
%postun
|
|
|
56ebd8 |
##
|
|
|
56ebd8 |
## SGML and XML catalogs
|
|
|
56ebd8 |
##
|
|
|
56ebd8 |
## Jobs: remove package catalog entries from both root catalogs &
|
|
|
56ebd8 |
## remove package catalogs
|
|
|
56ebd8 |
|
|
|
56ebd8 |
# remove catalog entries only on removal of package
|
|
|
56ebd8 |
if [ "$1" = 0 ]; then
|
|
|
56ebd8 |
%{_bindir}/xmlcatalog --sgml --noout --del \
|
|
|
56ebd8 |
%{_sysconfdir}/sgml/catalog \
|
|
|
56ebd8 |
"%{_sysconfdir}/sgml/docbook-slides.cat"
|
|
|
56ebd8 |
|
|
|
56ebd8 |
%{_bindir}/xmlcatalog --noout --del \
|
|
|
56ebd8 |
"file://%{_sysconfdir}/xml/docbook-slides.xml" \
|
|
|
56ebd8 |
%{_sysconfdir}/xml/catalog
|
|
|
56ebd8 |
fi
|
|
|
56ebd8 |
|
|
|
56ebd8 |
%changelog
|
|
|
c65140 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.4.0-13
|
|
|
c65140 |
- Mass rebuild 2013-12-27
|
|
|
c65140 |
|
|
|
56ebd8 |
* Tue Nov 27 2012 Ondrej Vasik <ovasik@redhat.com> 3.4.0-12
|
|
|
56ebd8 |
- avoid using Fedora in the README2 file (portability)
|
|
|
56ebd8 |
|
|
|
56ebd8 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.0-11
|
|
|
56ebd8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
56ebd8 |
|
|
|
56ebd8 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.0-10
|
|
|
56ebd8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
56ebd8 |
|
|
|
56ebd8 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.0-9
|
|
|
56ebd8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
56ebd8 |
|
|
|
56ebd8 |
* Tue May 18 2010 Ondrej Vasik <ovasik@redhat.com> - 3.4.0-8
|
|
|
56ebd8 |
- post scriptlet requires sed (#593081)
|
|
|
56ebd8 |
|
|
|
56ebd8 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.0-7
|
|
|
56ebd8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
56ebd8 |
|
|
|
56ebd8 |
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.0-6
|
|
|
56ebd8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
56ebd8 |
|
|
|
56ebd8 |
* Fri Nov 21 2008 Ondrej Vasik <ovasik@redhat.com> - 3.4.0-5
|
|
|
56ebd8 |
- move tests subdir from tarball (sourceaudit check md5sum
|
|
|
56ebd8 |
failure)
|
|
|
56ebd8 |
- license should be MIT
|
|
|
56ebd8 |
|
|
|
56ebd8 |
* Fri Jul 18 2008 Ondrej Vasik <ovasik@redhat.com> - 3.4.0-4
|
|
|
56ebd8 |
- fix loop in post catalog registration(incomplete sed
|
|
|
56ebd8 |
coverage) #455680
|
|
|
56ebd8 |
- fix broken catalogs for package updates
|
|
|
56ebd8 |
- fix removal of files during updates
|
|
|
56ebd8 |
|
|
|
56ebd8 |
* Tue Nov 06 2007 Ondrej Vasik <ovasik@redhat.com> - 3.4.0-3
|
|
|
56ebd8 |
- merge review(#225702)
|
|
|
56ebd8 |
- spec file changed to follow guidelines
|
|
|
56ebd8 |
|
|
|
56ebd8 |
* Wed Oct 24 2007 Ondrej Vasik <ovasik@redhat.com> - 3.4.0-2
|
|
|
56ebd8 |
- rpmlint check
|
|
|
56ebd8 |
- fixed wrong requirements, some cosmetic changes
|
|
|
56ebd8 |
- /etc/ files marked as config
|
|
|
56ebd8 |
|
|
|
56ebd8 |
* Fri May 25 2007 Ondrej Vasik <ovasik@redhat.com> - 3.4.0-1
|
|
|
56ebd8 |
- Initial public release
|
|
|
56ebd8 |
- updated cvs files
|
|
|
56ebd8 |
|
|
|
56ebd8 |
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3.3.1-2.1.1
|
|
|
56ebd8 |
- rebuild
|
|
|
56ebd8 |
|
|
|
56ebd8 |
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
56ebd8 |
- rebuilt
|
|
|
56ebd8 |
|
|
|
56ebd8 |
* Wed Sep 8 2004 Mark Johnson <mjohnson@redhat.com> 3.3.1-1
|
|
|
56ebd8 |
- Initial public release
|
|
|
56ebd8 |
- Moved files to /usr/share/xml
|
|
|
56ebd8 |
- Added SGML catalog registration
|
|
|
56ebd8 |
- Fixed catalog.xml, which gets broken by xmlcatalog
|
|
|
56ebd8 |
- Composed README.fedora
|
|
|
56ebd8 |
|
|
|
56ebd8 |
* Mon Feb 2 2004 Tim Waugh <twaugh@redhat.com> 3.3.1-0.1
|
|
|
56ebd8 |
- 3.3.1.
|
|
|
56ebd8 |
|
|
|
56ebd8 |
* Tue Dec 23 2003 Tim Waugh <twaugh@redhat.com> 3.3.0-0.1
|
|
|
56ebd8 |
- 3.3.0.
|
|
|
56ebd8 |
|
|
|
56ebd8 |
* Wed Oct 22 2003 Tim Waugh <twaugh@redhat.com> 3.2.0-0.1
|
|
|
56ebd8 |
- Initial build.
|
|
|
56ebd8 |
|
|
|
56ebd8 |
|