Accepting request 531118 from home:olh:branches:Publishing

- Remove asciidoc version from generated files with asciidoc.version.patch
  The version causes unneeded republish of pkgs that make use
  of asciidoc

OBS-URL: https://build.opensuse.org/request/show/531118
OBS-URL: https://build.opensuse.org/package/show/Publishing/asciidoc?expand=0&rev=24
This commit is contained in:
Martin Pluskal 2017-10-04 12:32:57 +00:00 committed by Git OBS Bridge
parent 2668efd198
commit 535a60aebd
3 changed files with 56 additions and 0 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Oct 4 09:21:58 UTC 2017 - olaf@aepfle.de
- Remove asciidoc version from generated files with asciidoc.version.patch
The version causes unneeded republish of pkgs that make use
of asciidoc
-------------------------------------------------------------------
Sun Oct 1 13:41:40 UTC 2017 - aavindraa@gmail.com

View File

@ -24,6 +24,7 @@ License: GPL-2.0+
Group: Development/Tools/Doc Generators
Url: http://asciidoc.org
Source0: https://github.com/%{name}/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: asciidoc.version.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: docbook-xsl-stylesheets
@ -51,6 +52,7 @@ This package contains examples and documents of asciidoc.
%prep
%setup -q
%patch0 -p1
%build
autoreconf -fi

47
asciidoc.version.patch Normal file
View File

@ -0,0 +1,47 @@
Avoid version number in generated files.
Output will be identical between versions.
In case the output changes, build-compare will catch it.
--- a/html4.conf
+++ b/html4.conf
@@ -460,7 +460,7 @@ endif::[]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset={encoding}">
-<meta name="generator" content="AsciiDoc {asciidoc-version}">
+<meta name="generator" content="AsciiDoc">
<meta name="description" content="{description}">
<meta name="keywords" content="{keywords}">
<title>{title}</title>
--- a/html5.conf
+++ b/html5.conf
@@ -539,7 +539,7 @@ bodydata=<td class="tableblock halign-{c
<html lang="{lang=en}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={encoding}">
-<meta name="generator" content="AsciiDoc {asciidoc-version}">
+<meta name="generator" content="AsciiDoc">
<meta name="description" content="{description}">
<meta name="keywords" content="{keywords}">
<title>{title}</title>
--- a/slidy.conf
+++ b/slidy.conf
@@ -68,7 +68,7 @@ text=<p>|</p>
<meta http-equiv="Content-Type" content="{quirks=application/xhtml+xml}{quirks?text/html}; charset={encoding}" />
ifndef::copyright[<meta name="copyright" content="Copyright &#169; {author}" />]
<meta name="copyright" content="Copyright &#169; {copyright}" />
-<meta name="generator" content="AsciiDoc {asciidoc-version}" />
+<meta name="generator" content="AsciiDoc" />
<meta name="duration" content="{duration}" />
ifdef::linkcss[]
<link rel="stylesheet" href="{stylesdir=.}/{theme=asciidoc}.css" type="text/css" />
--- a/xhtml11.conf
+++ b/xhtml11.conf
@@ -531,7 +531,7 @@ cellspacing="0" cellpadding="4">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{lang=en}">
<head>
<meta http-equiv="Content-Type" content="{quirks=application/xhtml+xml}{quirks?text/html}; charset={encoding}" />
-<meta name="generator" content="AsciiDoc {asciidoc-version}" />
+<meta name="generator" content="AsciiDoc" />
<meta name="description" content="{description}" />
<meta name="keywords" content="{keywords}" />
<title>{title}</title>