Changes of Revision 3
[-] | Changed | varnish.spec |
x 1
2 %define pkg_name %{name} 3 # 4 URL: http://www.varnish-cache.org/ 5 -Source: http://downloads.sourceforge.net/varnish/varnish-%{pversion}.tar.bz2 6 +Source0: http://downloads.sourceforge.net/varnish/varnish-%{pversion}.tar.bz2 7 Source2: varnish.init 8 +Source3: changes-html.xsl 9 Patch0: varnish-redhat-pid.patch 10 Patch1: varnishncsa-vhost.patch 11 12
13 %setup -n universal_%{name}-%{pversion} 14 %patch0 15 %patch1 16 - 17 touch AUTHORS COPYING NEWS 18 +cp %{S:3} doc/ 19 20 %build 21 autoreconf -fi 22 |
||
[+] | Added | changes-html.xsl ^ |
@@ -0,0 +1,92 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE stylesheet [ + <!ENTITY space " "> + <!ENTITY nbsp " "> +]> +<!-- $Id$ --> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns="http://www.w3.org/1999/xhtml"> + <xsl:output method="xml" encoding="utf-8" media-type="text/html" indent="yes"/> + + <xsl:strip-space elements="*"/> + + <xsl:template match="/changelog"> + <html> + <head> + <title><xsl:call-template name="title"/></title> + <link rel="stylesheet" type="text/css" href="changes.css"/> + </head> + <body> + <h1><xsl:call-template name="title"/></h1> + <xsl:apply-templates select="group"/> + </body> + </html> + </xsl:template> + + <xsl:template name="title"> + <xsl:text>Change log for&space;</xsl:text> + <xsl:value-of select="package"/> + <xsl:text>&space;</xsl:text> + <xsl:value-of select="version"/> + </xsl:template> + + <xsl:template match="group"> + <h2> + <xsl:text>Changes between&space;</xsl:text> + <xsl:value-of select="@from"/> + <xsl:text>&space;and&space;</xsl:text> + <xsl:value-of select="@to"/> + </h2> + <xsl:apply-templates select="subsystem"/> + </xsl:template> + + <xsl:template match="subsystem"> + <h3> + <xsl:value-of select="name"/> + </h3> + <ul> + <xsl:apply-templates select="change"/> + </ul> + </xsl:template> + + <xsl:template match="change"> + <li> + <xsl:apply-templates/> + </li> + </xsl:template> + + <xsl:template match="para"> + <p> + <xsl:apply-templates/> + </p> + </xsl:template> + + <xsl:template match="ticket"> + <a> + <xsl:attribute name="href"> + <xsl:text>http://varnish.projects.linpro.no/ticket/</xsl:text> + <xsl:value-of select="@ref"/> + </xsl:attribute> + <xsl:text>ticket #</xsl:text> + <xsl:value-of select="@ref"/> + </a> + </xsl:template> + + <xsl:template match="code"> + <span> + <xsl:attribute name="class"> + <xsl:value-of select="name()"/> + </xsl:attribute> + <xsl:apply-templates/> + </span> + </xsl:template> + + <xsl:template match="*" priority="-1"> + <xsl:message>Warning: no template for element <xsl:value-of select="name( +)"/></xsl:message> + <xsl:value-of select="concat('<', name(), '>')"/> + <xsl:apply-templates/> + <xsl:value-of select="concat('</', name(), '>')"/> + </xsl:template> +</xsl:stylesheet> |