From a9a0eae95bc9d821565dd34e1e115a4684fc1df3eb48b68606d31205b2fc4ab9 Mon Sep 17 00:00:00 2001 From: Dave Plater Date: Thu, 13 Apr 2017 12:28:33 +0000 Subject: [PATCH] Accepting request 487822 from home:plater Remove time stamps from html pages OBS-URL: https://build.opensuse.org/request/show/487822 OBS-URL: https://build.opensuse.org/package/show/electronics/kicad-doc?expand=0&rev=15 --- kicad-doc-notimestamp.patch | 15 +++++++++++++++ kicad-doc.changes | 5 +++++ kicad-doc.spec | 6 ++++++ 3 files changed, 26 insertions(+) create mode 100644 kicad-doc-notimestamp.patch diff --git a/kicad-doc-notimestamp.patch b/kicad-doc-notimestamp.patch new file mode 100644 index 0000000..2278960 --- /dev/null +++ b/kicad-doc-notimestamp.patch @@ -0,0 +1,15 @@ +Index: CMakeLists.txt +=================================================================== +--- CMakeLists.txt.orig 2017-04-13 10:18:48.656747496 +0200 ++++ CMakeLists.txt 2017-04-13 13:10:55.648428778 +0200 +@@ -31,8 +31,10 @@ include( AsciidocHelpers ) + # Add the common asciidoc options + add_adoc_option( -b html5 ) + add_adoc_option( -a toc2 ) ++add_adoc_option( -a footer-style=none ) + add_adoc_option( --section-numbers ) + add_adoc_option( --theme flask ) ++add_adoc_option( --verbose ) + + # Add the common a2x options + add_a2x_option( --xsltproc-opts=--nonet ) diff --git a/kicad-doc.changes b/kicad-doc.changes index 3ad4142..0da55b4 100644 --- a/kicad-doc.changes +++ b/kicad-doc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 13 11:29:41 UTC 2017 - davejplater@gmail.com + +- Removed time stamp from pages with kicad-doc-notimestamp.patch + ------------------------------------------------------------------- Thu Mar 23 12:14:14 UTC 2017 - xxxxxmichl@googlemail.com diff --git a/kicad-doc.spec b/kicad-doc.spec index 4040066..e6629ac 100644 --- a/kicad-doc.spec +++ b/kicad-doc.spec @@ -36,6 +36,8 @@ Url: http://kicad-pcb.org Source: https://github.com/KiCad/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz Source2: https://raw.githubusercontent.com/KiCad/kicad-source-mirror/master/license_for_documentation.txt Patch0: verbose-a2x-debug.patch +# PATCH-FIX-OPENSUSE kicad-doc-notimestamp.patch davejplater@gmail.com -- Remove time stamped footer from html pages. +Patch1: kicad-doc-notimestamp.patch BuildRequires: asciidoc >= 8.6.9 BuildRequires: cmake BuildRequires: dblatex >= 0.3.4 @@ -45,6 +47,7 @@ BuildRequires: git BuildRequires: libxslt-tools BuildRequires: po4a >= 0.45 BuildRequires: source-highlight +%if %{with pdf} BuildRequires: texlive-collection-langeuropean BuildRequires: texlive-collection-langfrench BuildRequires: texlive-collection-langgerman @@ -61,6 +64,7 @@ BuildRequires: texlive-collection-xetex BuildRequires: texlive-euenc BuildRequires: texlive-gnu-freefont-fonts BuildRequires: texlive-xetexref +%endif BuildRequires: perl(Unicode::LineBreak) BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -182,6 +186,7 @@ cp %{SOURCE2} . # Fix documentation path sed -i "s|share/doc/kicad|share/doc/packages/kicad|" CMakeModules/KiCadDocumentation.cmake %patch0 +%patch1 # FIXME %if %{without japanese} @@ -234,6 +239,7 @@ install -Dm644 license_for_documentation.txt %{buildroot}%{_datadir}/doc/package %fdupes -s %{buildroot}%{_datadir}/doc/packages/kicad/help/de %fdupes -s %{buildroot}%{_datadir}/doc/packages/kicad/help/es %fdupes -s %{buildroot}%{_datadir}/doc/packages/kicad/help/ru +%fdupes -s %{buildroot}%{_datadir}/doc/packages/kicad/help/id %if %{with italian} %fdupes -s %{buildroot}%{_datadir}/doc/packages/kicad/help/it %endif