Accepting request 639233 from home:plater

ensure the auto installation of the locale specific help file package with the kicad-doc package

OBS-URL: https://build.opensuse.org/request/show/639233
OBS-URL: https://build.opensuse.org/package/show/electronics/kicad-doc?expand=0&rev=25
This commit is contained in:
Dave Plater 2018-09-30 12:43:18 +00:00 committed by Git OBS Bridge
parent 10b4e044c1
commit 296101d39b
2 changed files with 15 additions and 34 deletions

View File

@ -1,8 +1,6 @@
-------------------------------------------------------------------
Sat Sep 29 23:45:52 UTC 2018 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- Rename kicad-doc to kicad-doc-common, avoid shadowing actual
documentation packages providing locale specific kicad-doc.
- Require kicad-doc-en from other translation subpackages
to provide a fallback for incomplete translations.

View File

@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
@ -83,19 +83,12 @@ schematic diagrams and printed circuit board artwork.
This is the documentation package for KiCad. It contains documentation
and tutorials.
%package common
Summary: Common files for documentation packages
Group: Documentation/Other
%description common
This package contains common files required for the individual translations
%package en
Summary: English documentation and tutorials for KiCad
Group: Documentation/Other
Provides: kicad-doc = %{version}
Provides: locale(kicad-doc:en)
Requires: kicad-doc-common = %{version}
Requires: kicad-doc = %{version}
%description en
This package contains English documentation and tutorials for KiCad
@ -103,9 +96,8 @@ This package contains English documentation and tutorials for KiCad
%package fr
Summary: French documentation and tutorials for KiCad
Group: Documentation/Other
Provides: kicad-doc = %{version}
Provides: locale(kicad-doc:fr)
Requires: kicad-doc-common = %{version}
Requires: kicad-doc = %{version}
Requires: kicad-doc-en = %{version}
%description fr
@ -114,9 +106,8 @@ This package contains French documentation and tutorials for KiCad
%package it
Summary: Italian documentation and tutorials for KiCad
Group: Documentation/Other
Provides: kicad-doc = %{version}
Provides: locale(kicad-doc:it)
Requires: kicad-doc-common = %{version}
Requires: kicad-doc = %{version}
Requires: kicad-doc-en = %{version}
%description it
@ -125,9 +116,8 @@ This package contains Italian documentation and tutorials for KiCad
%package ja
Summary: Japanese documentation and tutorials for KiCad
Group: Documentation/Other
Provides: kicad-doc = %{version}
Provides: locale(kicad-doc:ja)
Requires: kicad-doc-common = %{version}
Requires: kicad-doc = %{version}
Requires: kicad-doc-en = %{version}
%description ja
@ -136,9 +126,8 @@ This package contains Japanese documentation and tutorials for KiCad
%package nl
Summary: Netherlandian documentation and tutorials for KiCad
Group: Documentation/Other
Provides: kicad-doc = %{version}
Provides: locale(kicad-doc:nl)
Requires: kicad-doc-common = %{version}
Requires: kicad-doc = %{version}
Requires: kicad-doc-en = %{version}
%description nl
@ -147,9 +136,8 @@ This package contains Netherlandian documentation and tutorials for KiCad
%package pl
Summary: Polish documentation and tutorials for KiCad
Group: Documentation/Other
Provides: kicad-doc = %{version}
Provides: locale(kicad-doc:pl)
Requires: kicad-doc-common = %{version}
Requires: kicad-doc = %{version}
Requires: kicad-doc-en = %{version}
%description pl
@ -158,9 +146,8 @@ This package contains Polish documentation and tutorials for KiCad
%package ca
Summary: Catalan documentation and tutorials for KiCad
Group: Documentation/Other
Provides: kicad-doc = %{version}
Provides: locale(kicad-doc:ca)
Requires: kicad-doc-common = %{version}
Requires: kicad-doc = %{version}
Requires: kicad-doc-en = %{version}
%description ca
@ -169,9 +156,8 @@ This package contains Catalan documentation and tutorials for KiCad
%package de
Summary: German documentation and tutorials for KiCad
Group: Documentation/Other
Provides: kicad-doc = %{version}
Provides: locale(kicad-doc:de)
Requires: kicad-doc-common = %{version}
Requires: kicad-doc = %{version}
Requires: kicad-doc-en = %{version}
%description de
@ -180,9 +166,8 @@ This package contains German documentation and tutorials for KiCad
%package es
Summary: Spanish documentation and tutorials for KiCad
Group: Documentation/Other
Provides: kicad-doc = %{version}
Provides: locale(kicad-doc:es)
Requires: kicad-doc-common = %{version}
Requires: kicad-doc = %{version}
Requires: kicad-doc-en = %{version}
%description es
@ -191,9 +176,8 @@ This package contains Spanish documentation and tutorials for KiCad
%package ru
Summary: Russian documentation and tutorials for KiCad
Group: Documentation/Other
Provides: kicad-doc = %{version}
Provides: locale(kicad-doc:ru)
Requires: kicad-doc-common = %{version}
Requires: kicad-doc = %{version}
Requires: kicad-doc-en = %{version}
%description ru
@ -202,9 +186,8 @@ This package contains Russian documentation and tutorials for KiCad
%package id
Summary: Indonesian documentation and tutorials for KiCad
Group: Documentation/Other
Provides: kicad-doc = %{version}
Provides: locale(kicad-doc:id)
Requires: kicad-doc-common = %{version}
Requires: kicad-doc = %{version}
Requires: kicad-doc-en = %{version}
%description id
@ -213,9 +196,8 @@ This package contains Indonesian documentation and tutorials for KiCad
%package zh
Summary: Chinese documentation and tutorials for KiCad
Group: Documentation/Other
Provides: kicad-doc = %{version}
Provides: locale(kicad-doc:zh)
Requires: kicad-doc-common = %{version}
Requires: kicad-doc = %{version}
Requires: kicad-doc-en = %{version}
%description zh
@ -250,7 +232,7 @@ for lang in ca de en es fr id it ja nl pl ru zh ; do
%fdupes %{buildroot}%{_docdir}/kicad/help/$lang
done
%files common
%files
%dir %{_docdir}/kicad/
%dir %{_docdir}/kicad/help/
%doc AUTHORS_README.adoc CHEATSHEET.adoc README.adoc
@ -260,6 +242,7 @@ done
%{_docdir}/kicad/help/en/
%files fr
%defattr(-,root,root)
%{_docdir}/kicad/help/fr/
%files it