Accepting request 685171 from home:StefanBruens:branches:electronics
- Update to minor release 5.1.0 * Various smaller changes and translation updates * (Empty) nl translation package removed - Build PDF and HTML documentation as _multibuild * Remove dblatex BuildRequires for HTML build OBS-URL: https://build.opensuse.org/request/show/685171 OBS-URL: https://build.opensuse.org/package/show/electronics/kicad-doc?expand=0&rev=31
This commit is contained in:
parent
595dfb5d10
commit
624d0b9fb5
4
_multibuild
Normal file
4
_multibuild
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>pdf</package>
|
||||||
|
<package>html</package>
|
||||||
|
</multibuild>
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:c343185cc09406611aff342be33659136d966ede30b44535b4687712ef1672de
|
|
||||||
size 68999325
|
|
3
kicad-doc-5.1.0.tar.gz
Normal file
3
kicad-doc-5.1.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:8b49b0456f33e2a075157d6eb03dcdd72102b8329bf9d1c4a6c098b574f8817a
|
||||||
|
size 74965788
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 12 22:45:18 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||||
|
|
||||||
|
- Update to minor release 5.1.0
|
||||||
|
* Various smaller changes and translation updates
|
||||||
|
* (Empty) nl translation package removed
|
||||||
|
- Build PDF and HTML documentation as _multibuild
|
||||||
|
* Remove dblatex BuildRequires for HTML build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Dec 6 09:56:38 UTC 2018 - davejplater@gmail.com
|
Thu Dec 6 09:56:38 UTC 2018 - davejplater@gmail.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package kicad-doc
|
# spec file for package kicad
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -12,31 +12,48 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%define sname kicad-doc
|
||||||
|
|
||||||
|
%if "%flavor" == ""
|
||||||
|
ExclusiveArch: do_not_build
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if "%flavor" == "pdf"
|
||||||
|
%define pkg_suffix -pdf
|
||||||
# Stock distribution package for xetex has a bug. As there is no way to just
|
# Stock distribution package for xetex has a bug. As there is no way to just
|
||||||
# build languages which use pdftex, disable PDF documentation completely
|
# build languages which use pdftex, disable PDF documentation completely
|
||||||
%if 0%{?suse_version} > 1500
|
%if 0%{?suse_version} > 1500
|
||||||
%bcond_without pdf
|
%bcond_without pdf
|
||||||
%else
|
%else
|
||||||
|
ExclusiveArch: do_not_build
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if "%flavor" == "html"
|
||||||
%bcond_with pdf
|
%bcond_with pdf
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: kicad-doc
|
Name: kicad-doc%{?pkg_suffix}
|
||||||
Version: 5.0.2
|
Version: 5.1.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Documentation and tutorials for KiCad
|
Summary: Documentation and tutorials for KiCad
|
||||||
License: GPL-3.0-or-later AND CC-BY-SA-3.0
|
License: GPL-3.0-or-later AND CC-BY-SA-3.0
|
||||||
|
%if "%flavor" == "pdf"
|
||||||
Group: Documentation/Other
|
Group: Documentation/Other
|
||||||
|
%else
|
||||||
|
Group: Documentation/HTML
|
||||||
|
%endif
|
||||||
Url: http://kicad-pcb.org
|
Url: http://kicad-pcb.org
|
||||||
Source: https://github.com/KiCad/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source: https://github.com/KiCad/%{sname}/archive/%{version}.tar.gz#/%{sname}-%{version}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE kicad-doc-notimestamp.patch davejplater@gmail.com -- Remove time stamped footer from html pages.
|
# PATCH-FIX-OPENSUSE kicad-doc-notimestamp.patch davejplater@gmail.com -- Remove time stamped footer from html pages.
|
||||||
Patch0: kicad-doc-notimestamp.patch
|
Patch0: kicad-doc-notimestamp.patch
|
||||||
BuildRequires: asciidoc >= 8.6.9
|
BuildRequires: asciidoc >= 8.6.9
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: dblatex >= 0.3.4
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gettext >= 0.18
|
BuildRequires: gettext >= 0.18
|
||||||
BuildRequires: libxslt-tools
|
BuildRequires: libxslt-tools
|
||||||
@ -44,6 +61,7 @@ BuildRequires: po4a >= 0.45
|
|||||||
BuildRequires: source-highlight
|
BuildRequires: source-highlight
|
||||||
BuildRequires: perl(Unicode::LineBreak)
|
BuildRequires: perl(Unicode::LineBreak)
|
||||||
%if %{with pdf}
|
%if %{with pdf}
|
||||||
|
BuildRequires: dblatex >= 0.3.4
|
||||||
BuildRequires: texlive-babel-catalan
|
BuildRequires: texlive-babel-catalan
|
||||||
BuildRequires: texlive-babel-dutch
|
BuildRequires: texlive-babel-dutch
|
||||||
BuildRequires: texlive-babel-french
|
BuildRequires: texlive-babel-french
|
||||||
@ -71,10 +89,11 @@ BuildRequires: tex(ptmr8t.tfm)
|
|||||||
BuildRequires: tex(pzdr.tfm)
|
BuildRequires: tex(pzdr.tfm)
|
||||||
BuildRequires: tex(xeCJK.sty)
|
BuildRequires: tex(xeCJK.sty)
|
||||||
BuildRequires: tex(xltxtra.sty)
|
BuildRequires: tex(xltxtra.sty)
|
||||||
|
# kicad-doc owns the directories
|
||||||
|
BuildRequires: kicad-doc
|
||||||
%endif
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
Recommends: kicad = %{version}
|
||||||
Requires: kicad = %{version}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Kicad is an open source software for the creation of electronic
|
Kicad is an open source software for the creation of electronic
|
||||||
@ -85,28 +104,26 @@ and tutorials.
|
|||||||
|
|
||||||
%package ca
|
%package ca
|
||||||
Summary: Catalan documentation and tutorials for KiCad
|
Summary: Catalan documentation and tutorials for KiCad
|
||||||
Group: Documentation/Other
|
|
||||||
Provides: locale(kicad-doc:ca)
|
Provides: locale(kicad-doc:ca)
|
||||||
|
Requires: %{name}-en = %{version}
|
||||||
Requires: kicad-doc = %{version}
|
Requires: kicad-doc = %{version}
|
||||||
Requires: kicad-doc-en = %{version}
|
|
||||||
|
|
||||||
%description ca
|
%description ca
|
||||||
This package contains Catalan documentation and tutorials for KiCad
|
This package contains Catalan documentation and tutorials for KiCad
|
||||||
|
|
||||||
%package de
|
%package de
|
||||||
Summary: German documentation and tutorials for KiCad
|
Summary: German documentation and tutorials for KiCad
|
||||||
Group: Documentation/Other
|
|
||||||
Provides: locale(kicad-doc:de)
|
Provides: locale(kicad-doc:de)
|
||||||
|
Requires: %{name}-en = %{version}
|
||||||
Requires: kicad-doc = %{version}
|
Requires: kicad-doc = %{version}
|
||||||
Requires: kicad-doc-en = %{version}
|
|
||||||
|
|
||||||
%description de
|
%description de
|
||||||
This package contains German documentation and tutorials for KiCad
|
This package contains German documentation and tutorials for KiCad
|
||||||
|
|
||||||
%package en
|
%package en
|
||||||
Summary: English documentation and tutorials for KiCad
|
Summary: English documentation and tutorials for KiCad
|
||||||
Group: Documentation/Other
|
|
||||||
Provides: locale(kicad-doc:en)
|
Provides: locale(kicad-doc:en)
|
||||||
|
Requires: kicad = %{version}
|
||||||
Requires: kicad-doc = %{version}
|
Requires: kicad-doc = %{version}
|
||||||
|
|
||||||
%description en
|
%description en
|
||||||
@ -114,110 +131,95 @@ This package contains English documentation and tutorials for KiCad
|
|||||||
|
|
||||||
%package es
|
%package es
|
||||||
Summary: Spanish documentation and tutorials for KiCad
|
Summary: Spanish documentation and tutorials for KiCad
|
||||||
Group: Documentation/Other
|
|
||||||
Provides: locale(kicad-doc:es)
|
Provides: locale(kicad-doc:es)
|
||||||
|
Requires: %{name}-en = %{version}
|
||||||
Requires: kicad-doc = %{version}
|
Requires: kicad-doc = %{version}
|
||||||
Requires: kicad-doc-en = %{version}
|
|
||||||
|
|
||||||
%description es
|
%description es
|
||||||
This package contains Spanish documentation and tutorials for KiCad
|
This package contains Spanish documentation and tutorials for KiCad
|
||||||
|
|
||||||
%package fr
|
%package fr
|
||||||
Summary: French documentation and tutorials for KiCad
|
Summary: French documentation and tutorials for KiCad
|
||||||
Group: Documentation/Other
|
|
||||||
Provides: locale(kicad-doc:fr)
|
Provides: locale(kicad-doc:fr)
|
||||||
|
Requires: %{name}-en = %{version}
|
||||||
Requires: kicad-doc = %{version}
|
Requires: kicad-doc = %{version}
|
||||||
Requires: kicad-doc-en = %{version}
|
|
||||||
|
|
||||||
%description fr
|
%description fr
|
||||||
This package contains French documentation and tutorials for KiCad
|
This package contains French documentation and tutorials for KiCad
|
||||||
|
|
||||||
%package id
|
%package id
|
||||||
Summary: Indonesian documentation and tutorials for KiCad
|
Summary: Indonesian documentation and tutorials for KiCad
|
||||||
Group: Documentation/Other
|
|
||||||
Provides: locale(kicad-doc:id)
|
Provides: locale(kicad-doc:id)
|
||||||
|
Requires: %{name}-en = %{version}
|
||||||
Requires: kicad-doc = %{version}
|
Requires: kicad-doc = %{version}
|
||||||
Requires: kicad-doc-en = %{version}
|
|
||||||
|
|
||||||
%description id
|
%description id
|
||||||
This package contains Indonesian documentation and tutorials for KiCad
|
This package contains Indonesian documentation and tutorials for KiCad
|
||||||
|
|
||||||
%package it
|
%package it
|
||||||
Summary: Italian documentation and tutorials for KiCad
|
Summary: Italian documentation and tutorials for KiCad
|
||||||
Group: Documentation/Other
|
|
||||||
Provides: locale(kicad-doc:it)
|
Provides: locale(kicad-doc:it)
|
||||||
|
Requires: %{name}-en = %{version}
|
||||||
Requires: kicad-doc = %{version}
|
Requires: kicad-doc = %{version}
|
||||||
Requires: kicad-doc-en = %{version}
|
|
||||||
|
|
||||||
%description it
|
%description it
|
||||||
This package contains Italian documentation and tutorials for KiCad
|
This package contains Italian documentation and tutorials for KiCad
|
||||||
|
|
||||||
%package ja
|
%package ja
|
||||||
Summary: Japanese documentation and tutorials for KiCad
|
Summary: Japanese documentation and tutorials for KiCad
|
||||||
Group: Documentation/Other
|
|
||||||
Provides: locale(kicad-doc:ja)
|
Provides: locale(kicad-doc:ja)
|
||||||
|
Requires: %{name}-en = %{version}
|
||||||
Requires: kicad-doc = %{version}
|
Requires: kicad-doc = %{version}
|
||||||
Requires: kicad-doc-en = %{version}
|
|
||||||
|
|
||||||
%description ja
|
%description ja
|
||||||
This package contains Japanese documentation and tutorials for KiCad
|
This package contains Japanese documentation and tutorials for KiCad
|
||||||
|
|
||||||
%package nl
|
|
||||||
Summary: Netherlandian documentation and tutorials for KiCad
|
|
||||||
Group: Documentation/Other
|
|
||||||
Provides: locale(kicad-doc:nl)
|
|
||||||
Requires: kicad-doc = %{version}
|
|
||||||
Requires: kicad-doc-en = %{version}
|
|
||||||
|
|
||||||
%description nl
|
|
||||||
This package contains Netherlandian documentation and tutorials for KiCad
|
|
||||||
|
|
||||||
%package pl
|
%package pl
|
||||||
Summary: Polish documentation and tutorials for KiCad
|
Summary: Polish documentation and tutorials for KiCad
|
||||||
Group: Documentation/Other
|
|
||||||
Provides: locale(kicad-doc:pl)
|
Provides: locale(kicad-doc:pl)
|
||||||
|
Requires: %{name}-en = %{version}
|
||||||
Requires: kicad-doc = %{version}
|
Requires: kicad-doc = %{version}
|
||||||
Requires: kicad-doc-en = %{version}
|
|
||||||
|
|
||||||
%description pl
|
%description pl
|
||||||
This package contains Polish documentation and tutorials for KiCad
|
This package contains Polish documentation and tutorials for KiCad
|
||||||
|
|
||||||
%package ru
|
%package ru
|
||||||
Summary: Russian documentation and tutorials for KiCad
|
Summary: Russian documentation and tutorials for KiCad
|
||||||
Group: Documentation/Other
|
|
||||||
Provides: locale(kicad-doc:ru)
|
Provides: locale(kicad-doc:ru)
|
||||||
|
Requires: %{name}-en = %{version}
|
||||||
Requires: kicad-doc = %{version}
|
Requires: kicad-doc = %{version}
|
||||||
Requires: kicad-doc-en = %{version}
|
|
||||||
|
|
||||||
%description ru
|
%description ru
|
||||||
This package contains Russian documentation and tutorials for KiCad
|
This package contains Russian documentation and tutorials for KiCad
|
||||||
|
|
||||||
%package zh
|
%package zh
|
||||||
Summary: Chinese documentation and tutorials for KiCad
|
Summary: Chinese documentation and tutorials for KiCad
|
||||||
Group: Documentation/Other
|
|
||||||
Provides: locale(kicad-doc:zh)
|
Provides: locale(kicad-doc:zh)
|
||||||
|
Requires: %{name}-en = %{version}
|
||||||
Requires: kicad-doc = %{version}
|
Requires: kicad-doc = %{version}
|
||||||
Requires: kicad-doc-en = %{version}
|
|
||||||
|
|
||||||
%description zh
|
%description zh
|
||||||
This package contains Chinese documentation and tutorials for KiCad
|
This package contains Chinese documentation and tutorials for KiCad
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q -n %{sname}-%{version}
|
||||||
|
|
||||||
%patch0
|
%patch0
|
||||||
|
|
||||||
|
%if %{with pdf}
|
||||||
# Workaround for dblatex bug #117 - randomly selected warning symbol
|
# Workaround for dblatex bug #117 - randomly selected warning symbol
|
||||||
cp /usr/share/dblatex/latex/graphics/warning.pdf CMakeSupport/
|
cp /usr/share/dblatex/latex/graphics/warning.pdf CMakeSupport/
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
# Supported output formats: html;pdf;epub;
|
||||||
|
%if %{with pdf}
|
||||||
# SOURCE_DATE_EPOCH affirmation variable used by TeX, current
|
# SOURCE_DATE_EPOCH affirmation variable used by TeX, current
|
||||||
export FORCE_SOURCE_DATE=1
|
export FORCE_SOURCE_DATE=1
|
||||||
# Deprecated variant used by TeX in Leap 42.x
|
# Deprecated variant used by TeX in Leap 42.x
|
||||||
export SOURCE_DATE_EPOCH_TEX_PRIMITIVES=1
|
export SOURCE_DATE_EPOCH_TEX_PRIMITIVES=1
|
||||||
# Supported output formats: html;pdf;epub;
|
# Do not build PL translations, bad interaction of po4a, asciidoc and xetex (gh#KiCad/kicad-doc#697)
|
||||||
%if %{with pdf}
|
%cmake -DKICAD_DOC_PATH=%{_docdir}/kicad/help -DBUILD_FORMATS='pdf;' -DLANGUAGES='ca;de;en;es;fr;id;it;ja;ru;zh'
|
||||||
%cmake -DKICAD_DOC_PATH=%{_docdir}/kicad/help -DBUILD_FORMATS='html;pdf;'
|
|
||||||
%else
|
%else
|
||||||
%cmake -DKICAD_DOC_PATH=%{_docdir}/kicad/help -DBUILD_FORMATS='html;'
|
%cmake -DKICAD_DOC_PATH=%{_docdir}/kicad/help -DBUILD_FORMATS='html;'
|
||||||
%endif
|
%endif
|
||||||
@ -226,15 +228,17 @@ export SOURCE_DATE_EPOCH_TEX_PRIMITIVES=1
|
|||||||
%install
|
%install
|
||||||
%cmake_install
|
%cmake_install
|
||||||
|
|
||||||
for lang in ca de en es fr id it ja nl pl ru zh ; do
|
for lang in ca de en es fr id it ja pl ru zh ; do
|
||||||
%fdupes %{buildroot}%{_docdir}/kicad/help/$lang
|
%fdupes %{buildroot}%{_docdir}/kicad/help/$lang
|
||||||
done
|
done
|
||||||
|
|
||||||
|
%if %{without pdf}
|
||||||
%files
|
%files
|
||||||
%dir %{_docdir}/kicad/
|
%dir %{_docdir}/kicad/
|
||||||
%dir %{_docdir}/kicad/help/
|
%dir %{_docdir}/kicad/help/
|
||||||
%doc AUTHORS_README.adoc CHEATSHEET.adoc README.adoc
|
%doc AUTHORS_README.adoc CHEATSHEET.adoc README.adoc
|
||||||
%license LICENSE.adoc
|
%license LICENSE.adoc
|
||||||
|
%endif
|
||||||
|
|
||||||
%files ca
|
%files ca
|
||||||
%{_docdir}/kicad/help/ca/
|
%{_docdir}/kicad/help/ca/
|
||||||
@ -260,11 +264,10 @@ done
|
|||||||
%files ja
|
%files ja
|
||||||
%{_docdir}/kicad/help/ja/
|
%{_docdir}/kicad/help/ja/
|
||||||
|
|
||||||
%files nl
|
%if %{without pdf}
|
||||||
%{_docdir}/kicad/help/nl/
|
|
||||||
|
|
||||||
%files pl
|
%files pl
|
||||||
%{_docdir}/kicad/help/pl/
|
%{_docdir}/kicad/help/pl/
|
||||||
|
%endif
|
||||||
|
|
||||||
%files ru
|
%files ru
|
||||||
%{_docdir}/kicad/help/ru/
|
%{_docdir}/kicad/help/ru/
|
||||||
|
Loading…
Reference in New Issue
Block a user