|
|
4d4011 |
Name: docbook-simple
|
|
|
4d4011 |
Version: 1.1
|
|
|
4d4011 |
Release: 12%{?dist}
|
|
|
4d4011 |
Group: Applications/Text
|
|
|
4d4011 |
Summary: Simplified DocBook is a small subset of the DocBook XML DTD
|
|
|
4d4011 |
License: Freely redistributable without restriction
|
|
|
4d4011 |
URL: http://www.oasis-open.org/docbook/xml/simple/
|
|
|
4d4011 |
Source0: http://www.docbook.org/xml/simple/1.1/%{name}-%{version}.zip
|
|
|
4d4011 |
Source1: %{name}.README.redhat
|
|
|
4d4011 |
Source2: %{name}.xml
|
|
|
4d4011 |
Source3: %{name}.cat
|
|
|
4d4011 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
4d4011 |
BuildArch: noarch
|
|
|
4d4011 |
BuildRequires: unzip
|
|
|
4d4011 |
Requires: sgml-common
|
|
|
4d4011 |
Requires(post): sed
|
|
|
4d4011 |
Requires(post): libxml2 >= 2.4.8
|
|
|
4d4011 |
Requires(postun): libxml2 >= 2.4.8
|
|
|
4d4011 |
Requires: docbook-dtds
|
|
|
4d4011 |
|
|
|
4d4011 |
%description
|
|
|
4d4011 |
Simplified DocBook is an attempt to provide a proper subset of DocBook
|
|
|
4d4011 |
that is simultaneously smaller and still useful. Documents written in
|
|
|
4d4011 |
the subset must be 100% legal DocBook documents. This is a subset for
|
|
|
4d4011 |
single documents (articles, white papers, etc.), so there's no need
|
|
|
4d4011 |
for books or sets, just 'articles'. Simplified DocBook documents are
|
|
|
4d4011 |
viewable in online browsers if styled with CSS. (it's XML not SGML).
|
|
|
4d4011 |
|
|
|
4d4011 |
|
|
|
4d4011 |
%prep
|
|
|
4d4011 |
# splatter the files into a version-numbered directory
|
|
|
4d4011 |
%setup -q -c -n %{version}
|
|
|
4d4011 |
|
|
|
4d4011 |
# see http://rpm-devel.colug.net/max-rpm/s1-rpm-inside-macros.html
|
|
|
4d4011 |
# setup -c creates the dir then changes to it to expand SOURCE0
|
|
|
4d4011 |
|
|
|
4d4011 |
%build
|
|
|
4d4011 |
|
|
|
4d4011 |
%install
|
|
|
4d4011 |
|
|
|
4d4011 |
rm -rf $RPM_BUILD_ROOT
|
|
|
4d4011 |
|
|
|
4d4011 |
########## install versioned-numbered directory of dtd files ############
|
|
|
4d4011 |
|
|
|
4d4011 |
DESTDIR=$RPM_BUILD_ROOT%{_datadir}/xml/docbook/simple
|
|
|
4d4011 |
mkdir -p $DESTDIR
|
|
|
4d4011 |
cp -a ../%{version} $DESTDIR
|
|
|
4d4011 |
|
|
|
4d4011 |
########## install package catalogs ################
|
|
|
4d4011 |
|
|
|
4d4011 |
XML_CAT_DIR=$RPM_BUILD_ROOT%{_sysconfdir}/xml
|
|
|
4d4011 |
mkdir -p $XML_CAT_DIR
|
|
|
4d4011 |
install -p -m 644 %{SOURCE2} $XML_CAT_DIR
|
|
|
4d4011 |
|
|
|
4d4011 |
SGML_CAT_DIR=$RPM_BUILD_ROOT%{_sysconfdir}/sgml
|
|
|
4d4011 |
mkdir -p $SGML_CAT_DIR
|
|
|
4d4011 |
install -p -m 644 %{SOURCE3} $SGML_CAT_DIR
|
|
|
4d4011 |
|
|
|
4d4011 |
####### FIXME: must copy README.redhat to source directory ########
|
|
|
4d4011 |
####### for %doc to find it, ${SOURCE1} doesn't work ########
|
|
|
4d4011 |
|
|
|
4d4011 |
cp -p %{SOURCE1} ./README
|
|
|
4d4011 |
|
|
|
4d4011 |
%clean
|
|
|
4d4011 |
rm -rf $RPM_BUILD_ROOT
|
|
|
4d4011 |
rm -rf ../%{version}
|
|
|
4d4011 |
|
|
|
4d4011 |
%files
|
|
|
4d4011 |
%defattr (-,root,root,-)
|
|
|
4d4011 |
%doc sdocbook.css
|
|
|
4d4011 |
%doc README
|
|
|
4d4011 |
%dir %{_datadir}/xml/docbook/simple/
|
|
|
4d4011 |
%{_datadir}/xml/docbook/simple/%{version}
|
|
|
4d4011 |
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sgml/docbook-simple.cat
|
|
|
4d4011 |
%config(noreplace) %{_sysconfdir}/xml/docbook-simple.xml
|
|
|
4d4011 |
|
|
|
4d4011 |
|
|
|
4d4011 |
%post
|
|
|
4d4011 |
|
|
|
4d4011 |
################## XML catalog registration #######################
|
|
|
4d4011 |
|
|
|
4d4011 |
## Define handy variables ##
|
|
|
4d4011 |
|
|
|
4d4011 |
ROOT_XML_CATALOG=%{_sysconfdir}/xml/catalog
|
|
|
4d4011 |
PKG_XML_CATALOG=%{_sysconfdir}/xml/docbook-simple.xml
|
|
|
4d4011 |
|
|
|
4d4011 |
#### Root XML Catalog Entries ####
|
|
|
4d4011 |
#### Delegate appropriate lookups to package catalog ####
|
|
|
4d4011 |
|
|
|
4d4011 |
if [ -w $ROOT_XML_CATALOG ]
|
|
|
4d4011 |
then
|
|
|
4d4011 |
%{_bindir}/xmlcatalog --noout --add "delegatePublic" \
|
|
|
4d4011 |
"-//OASIS//DTD Simplified" \
|
|
|
4d4011 |
"file://$PKG_XML_CATALOG" $ROOT_XML_CATALOG
|
|
|
4d4011 |
|
|
|
4d4011 |
%{_bindir}/xmlcatalog --noout --add "delegateURI" \
|
|
|
4d4011 |
"http://www.oasis-open.org/docbook/xml/simple/1.1/" \
|
|
|
4d4011 |
"file://$PKG_XML_CATALOG" $ROOT_XML_CATALOG
|
|
|
4d4011 |
|
|
|
4d4011 |
# Next line because some resolvers misinterpret uri entries
|
|
|
4d4011 |
%{_bindir}/xmlcatalog --noout --add "delegateSystem" \
|
|
|
4d4011 |
"http://www.oasis-open.org/docbook/xml/simple/1.1/" \
|
|
|
4d4011 |
"file://$PKG_XML_CATALOG" $ROOT_XML_CATALOG
|
|
|
4d4011 |
fi
|
|
|
4d4011 |
|
|
|
4d4011 |
####################################################################
|
|
|
4d4011 |
|
|
|
4d4011 |
|
|
|
4d4011 |
################# SGML catalog registration ######################
|
|
|
4d4011 |
|
|
|
4d4011 |
ROOT_SGML_CATALOG=%{_sysconfdir}/sgml/catalog
|
|
|
4d4011 |
PKG_SGML_CATALOG=%{_sysconfdir}/sgml/docbook-simple.cat
|
|
|
4d4011 |
|
|
|
4d4011 |
#### Root SGML Catalog Entries ####
|
|
|
4d4011 |
#### "Delegate" appropriate lookups to package catalog ####
|
|
|
4d4011 |
|
|
|
4d4011 |
|
|
|
4d4011 |
############## use install-catalog ######################
|
|
|
4d4011 |
|
|
|
4d4011 |
if [ -w $ROOT_SGML_CATALOG ]
|
|
|
4d4011 |
then
|
|
|
4d4011 |
# xmlcatalog deletes OVERRIDE YES directive, use install-catalog instead
|
|
|
4d4011 |
# /usr/bin/xmlcatalog --sgml --noout --add \
|
|
|
4d4011 |
# "/etc/sgml/docbook-simple.cat"
|
|
|
4d4011 |
|
|
|
4d4011 |
install-catalog --add \
|
|
|
4d4011 |
"$PKG_SGML_CATALOG" \
|
|
|
4d4011 |
"$ROOT_SGML_CATALOG" 1>/dev/null
|
|
|
4d4011 |
|
|
|
4d4011 |
# Hack to workaround bug in install-catalog
|
|
|
4d4011 |
sed -i '/^CATALOG.*log\"$/d' $PKG_SGML_CATALOG
|
|
|
4d4011 |
sed -i '/^CATALOG.*log$/d' $PKG_SGML_CATALOG
|
|
|
4d4011 |
fi
|
|
|
4d4011 |
|
|
|
4d4011 |
####################################################################
|
|
|
4d4011 |
|
|
|
4d4011 |
|
|
|
4d4011 |
# Finally, make sure everything in /etc/*ml is readable!
|
|
|
4d4011 |
/bin/chmod a+r %{_sysconfdir}/sgml/*
|
|
|
4d4011 |
/bin/chmod a+r %{_sysconfdir}/xml/*
|
|
|
4d4011 |
|
|
|
4d4011 |
%postun
|
|
|
4d4011 |
##
|
|
|
4d4011 |
## SGML and XML catalogs
|
|
|
4d4011 |
##
|
|
|
4d4011 |
## Jobs: remove package catalog entries from both root catalogs &
|
|
|
4d4011 |
## remove package catalogs
|
|
|
4d4011 |
|
|
|
4d4011 |
# remove catalog entries only on removal of package
|
|
|
4d4011 |
if [ "$1" = 0 ]; then
|
|
|
4d4011 |
%{_bindir}/xmlcatalog --sgml --noout --del \
|
|
|
4d4011 |
%{_sysconfdir}/sgml/catalog \
|
|
|
4d4011 |
%{_sysconfdir}/sgml/docbook-simple.cat
|
|
|
4d4011 |
|
|
|
4d4011 |
%{_bindir}/xmlcatalog --noout --del \
|
|
|
4d4011 |
"file://%{_sysconfdir}/xml/docbook-simple.xml" \
|
|
|
4d4011 |
%{_sysconfdir}/xml/catalog
|
|
|
4d4011 |
fi
|
|
|
4d4011 |
|
|
|
4d4011 |
%changelog
|
|
|
4d4011 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.1-12
|
|
|
4d4011 |
- Mass rebuild 2013-12-27
|
|
|
4d4011 |
|
|
|
4d4011 |
* Tue Nov 27 2012 Ondrej Vasik <ovasik@redhat.com> 1.1-11
|
|
|
4d4011 |
- avoid using Fedora in the README file (portability)
|
|
|
4d4011 |
|
|
|
4d4011 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-10
|
|
|
4d4011 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
4d4011 |
|
|
|
4d4011 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-9
|
|
|
4d4011 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
4d4011 |
|
|
|
4d4011 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-8
|
|
|
4d4011 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
4d4011 |
|
|
|
4d4011 |
* Tue May 18 2010 Ondrej Vasik <ovasik@redhat.com> - 1.1-7
|
|
|
4d4011 |
- post scriptlet requires sed (#593083)
|
|
|
4d4011 |
|
|
|
4d4011 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-6
|
|
|
4d4011 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
4d4011 |
|
|
|
4d4011 |
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-5
|
|
|
4d4011 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
4d4011 |
|
|
|
4d4011 |
* Fri Jul 18 2008 Ondrej Vasik <ovasik@redhat.com> - 1.1-4
|
|
|
4d4011 |
- fix loop in post catalog registration(incomplete sed
|
|
|
4d4011 |
coverage) #455680
|
|
|
4d4011 |
- fix broken catalogs for package updates
|
|
|
4d4011 |
- fix removal of files during updates
|
|
|
4d4011 |
|
|
|
4d4011 |
* Mon Nov 05 2007 Ondrej Vasik <ovasik@redhat.com> - 1.1-3
|
|
|
4d4011 |
- merge review(#225701)
|
|
|
4d4011 |
- spec modified to follow guidelines
|
|
|
4d4011 |
|
|
|
4d4011 |
* Wed Oct 24 2007 Ondrej Vasik <ovasik@redhat.com> - 1.1-2
|
|
|
4d4011 |
- rpmlint check
|
|
|
4d4011 |
- /etc/ files marked as config, fixed bad requirements
|
|
|
4d4011 |
- cosmetic cleanup of spec file
|
|
|
4d4011 |
|
|
|
4d4011 |
* Thu May 24 2007 Ondrej Vasik <ovasik@redhat.com> - 1.1-1.02
|
|
|
4d4011 |
- fixed added error in docbook-simple.xml(wrong catalog version)
|
|
|
4d4011 |
|
|
|
4d4011 |
* Thu May 24 2007 Ondrej Vasik <ovasik@redhat.com> - 1.1-1
|
|
|
4d4011 |
- rebuilt with latest stable upstream release(1.1)
|
|
|
4d4011 |
|
|
|
4d4011 |
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.0-2.1.1
|
|
|
4d4011 |
- rebuild
|
|
|
4d4011 |
|
|
|
4d4011 |
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
4d4011 |
- rebuilt
|
|
|
4d4011 |
|
|
|
4d4011 |
* Tue Sep 07 2004 Mark Johnson <mjohnson@redhat.com> 1.0-1
|
|
|
4d4011 |
- Initial release
|
|
|
4d4011 |
|