Sophie

Sophie

distrib > Mandriva > 9.2 > i586 > media > main-src > by-pkgid > 03add86e2d373a718ff82602cdda3adb > files > 1

docbook-style-xsl-1.61.3-3mdk.src.rpm

%define Name docbook-style-xsl
%define Version 1.61.3
%define Release 3mdk

Name:		%{Name}
Version:	%{Version}
Release:	%{Release}
Group       	: Publishing

Summary     	: Norman Walsh's modular stylesheets for DocBook.

License   	: Distributable
URL         	: http://sourceforge.net/projects/docbook

Provides	: docbook-xsl = %{version}
Requires	: docbook-dtd-xml
Prereq		: sgml-common >= 0.6.3-2mdk

BuildRoot   	: %{_tmppath}/%{name}-%{version}-buildroot 

Source0		: http://prdownloads.sourceforge.net/docbook/docbook-xsl-%{Version}.tar.bz2
BuildArch	: noarch

%define sgmlbase %{_datadir}/sgml/ 

%Description
These XSL stylesheets allow to convert any DocBook document to another
printed (for example, RTF or PostScript) or online (for example, HTML) format.
They are highly customizable.

%package doc
Summary         : Documentation for DocBook stylesheets
Group       	: Books/Computer books

%description doc
This package contains the documentation for these stylesheets:
structure, customization, etc.
 

%prep
%setup -n docbook-xsl-%{Version} -q

%build


%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{sgmlbase}/docbook/xsl-stylesheets-%{Version} 
cp -a VERSION common extensions fo html images javahelp lib template xhtml manpages profiling tools htmlhelp $RPM_BUILD_ROOT%{sgmlbase}/docbook/xsl-stylesheets-%{Version}  

ln -sf xsl-stylesheets-%{Version} \
	$RPM_BUILD_ROOT%{sgmlbase}/docbook/xsl-stylesheets

%clean
rm -rf $RPM_BUILD_ROOT

#fix old buggy postun
%triggerpostun -- docbook-style-xsl < 1.61.3-3mdk
CATALOG=%{_sysconfdir}/xml/catalog
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
	"http://docbook.sourceforge.net/release/xsl/%{version}" \
	"file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
	"http://docbook.sourceforge.net/release/xsl/%{version}" \
	"file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
	"http://docbook.sourceforge.net/release/xsl/current" \
	"file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
	"http://docbook.sourceforge.net/release/xsl/current" \
	"file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG

%post
CATALOG=%{_sysconfdir}/xml/catalog
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
	"http://docbook.sourceforge.net/release/xsl/%{version}" \
	"file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
	"http://docbook.sourceforge.net/release/xsl/%{version}" \
	"file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
	"http://docbook.sourceforge.net/release/xsl/current" \
	"file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
	"http://docbook.sourceforge.net/release/xsl/current" \
	"file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG


%postun
if [ "$1" = "0" ]; then 
 CATALOG=%{_sysconfdir}/xml/catalog
 if [ -f $CATALOG ]; then
  /usr/bin/xmlcatalog --noout --del \
	  "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
 fi
fi

%files
%defattr (-,root,root)
%doc BUGS TODO README VERSION ChangeLog WhatsNew
%{sgmlbase}/docbook/xsl-stylesheets-%{Version}
%{sgmlbase}/docbook/xsl-stylesheets

%files doc
%defattr (-,root,root)
%doc doc docsrc

%changelog
* Mon Jul 21 2003 Frederic Crozat <fcrozat@mandrakesoft.com> - 1.61.3-3mdk
- Fix upgrade

* Fri Jul 18 2003 Frederic Crozat <fcrozat@mandrakesoft.com> - 1.61.3-2mdk
- fix script : unregister only from existing catalog
 
* Mon Jul  7 2003  <camille@ke.mandrakesoft.com> 1.61.3-1mdk
- 1.61.3

* Fri May 23 2003  <camille@ke.mandrakesoft.com> 1.61.2-1mdk
- 1.61.2

* Mon May 19 2003  <camille@ke.mandrakesoft.com> 1.61.1-1mdk
- 1.61.1

* Mon May 12 2003  <camille@ke.mandrakesoft.com> 1.61.0-1mdk
- 1.61.0

* Wed Mar 12 2003  <camille@ke.mandrakesoft.com> 1.60.1-2mdk
- Added missing manpages/  profiling/ tools/ htmlhelp/ subdirs (thx sebd)
- remove doc/ from main package (in doc mackage) 

* Mon Feb  3 2003  <camille@ke.mandrakesoft.com> 1.60.1-1mdk
- 1.60.1

* Fri Jan 17 2003  <camille@ke.mandrakesoft.com> 1.59.2-1mdk
- 1.59.2 (geeze)

* Fri Jan 17 2003  <camille@ke.mandrakesoft.com> 1.59.1-1mdk
- 1.59.1

* Fri Nov 29 2002  <camille@ke.mandrakesoft.com> 1.58.1-1mdk
- 1.58.1

* Thu Oct 31 2002  <camille@ke.mandrakesoft.com> 1.57.0-1mdk
- 1.57.0

* Mon Oct 14 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.53.0-2mdk
- split doc in its own package

* Mon Jul 29 2002 Camille Begnis <camille@mandrakesoft.com> 1.53.0-1mdk
- 1.53

* Tue Jul 16 2002 Camille Begnis <camille@mandrakesoft.com> 1.52.2-1mdk
- 1.52.2

* Mon Jun 03 2002 Camille Begnis <camille@mandrakesoft.com> 1.51.1-1mdk
- 1.51.1

* Mon Jun 03 2002 Camille Begnis <camille@mandrakesoft.com> 1.51.0-1mdk
- 1.51.0

* Fri Mar 22 2002 Camille Begnis <camille@mandrakesoft.com> 1.50.0-1mdk
- 1.50

* Thu Feb 21 2002 Camille Begnis <camille@mandrakesoft.com> 1.49-1mdk
- 1.49

* Mon Feb 04 2002 Camille Begnis <camille@mandrakesoft.com> 1.48-3mdk
- Fix file URLs for xmlcatalog in post scripts

* Thu Jan 24 2002 Camille Begnis <camille@mandrakesoft.com> 1.48-2mdk
- use xmlcatalog from libxml-utils instead of install-catalog
- add support for XML catalogs as supported by libxml2 (xsltproc)

* Mon Jan 07 2002 Camille Begnis <camille@mandrakesoft.com> 1.48-1mdk
- 1.48

* Fri Dec 14 2001 Camille Begnis <camille@mandrakesoft.com> 1.47-1mdk
- 1.47

* Thu Oct 25 2001 Camille Begnis <camille@mandrakesoft.com> 1.45-1mdk
- 1.45
 
* Wed Aug 22 2001 Camille Begnis <camille@mandrakesoft.com> 1.44-1mdk
- 1.44

* Tue Jul 03 2001 Camille Begnis <camille@mandrakesoft.com> 1.40-1mdk
- 1.40
- remove jade require
- update URL and Source (now on sourceforge)
- add a linkk from {sgmlbase}/docbook/xsl-stylesheets to xsl-stylesheets-{Version}

* Mon Jun 11 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.29-4mdk
- Merge patches from Abel Cheung:
- Remove extraneous character in Summary
- s/Copyright/License/
- Source is not downloadable itself, it's just a re-compressed archive
- Rearrange BuildArch to bottom, no idea why source and patch refuses
  to be removed otherwise
- More macros
- Removed useless variable
- Simplify %%files

* Tue Feb 27 2001 Camille Begnis <camille@mandrakesoft.com> 1.29-3mdk
- The VERSION file is in fact a stylesheet...

* Thu Feb 15 2001 Camille Begnis <camille@mandrakesoft.com> 1.29-2mdk
- Remove jade prereq

* Fri Feb 09 2001 Camille Begnis <camille@mandrakesoft.com> 1.29-1mdk
- 1.29
- move doc directory to {docdir}
- remove docsrc

* Fri Jan 05 2001 Camille Begnis <camille@mandrakesoft.com> 1.24-1mdk
- 1.24
- fix bin permissions

* Thu Nov 14 2000 Camille Begnis <camille@mandrakesoft.com> 1.18-1mdk
- New
- Much work To do: file perms, catalog?