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> 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 - Require kicad-doc-en from other translation subpackages
to provide a fallback for incomplete translations. to provide a fallback for incomplete translations.

View File

@ -12,7 +12,7 @@
# 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 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 This is the documentation package for KiCad. It contains documentation
and tutorials. 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 %package en
Summary: English documentation and tutorials for KiCad Summary: English documentation and tutorials for KiCad
Group: Documentation/Other Group: Documentation/Other
Provides: kicad-doc = %{version}
Provides: locale(kicad-doc:en) Provides: locale(kicad-doc:en)
Requires: kicad-doc-common = %{version} Requires: kicad-doc = %{version}
%description en %description en
This package contains English documentation and tutorials for KiCad This package contains English documentation and tutorials for KiCad
@ -103,9 +96,8 @@ This package contains English 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 Group: Documentation/Other
Provides: kicad-doc = %{version}
Provides: locale(kicad-doc:fr) Provides: locale(kicad-doc:fr)
Requires: kicad-doc-common = %{version} Requires: kicad-doc = %{version}
Requires: kicad-doc-en = %{version} Requires: kicad-doc-en = %{version}
%description fr %description fr
@ -114,9 +106,8 @@ This package contains French 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 Group: Documentation/Other
Provides: kicad-doc = %{version}
Provides: locale(kicad-doc:it) Provides: locale(kicad-doc:it)
Requires: kicad-doc-common = %{version} Requires: kicad-doc = %{version}
Requires: kicad-doc-en = %{version} Requires: kicad-doc-en = %{version}
%description it %description it
@ -125,9 +116,8 @@ 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 Group: Documentation/Other
Provides: kicad-doc = %{version}
Provides: locale(kicad-doc:ja) Provides: locale(kicad-doc:ja)
Requires: kicad-doc-common = %{version} Requires: kicad-doc = %{version}
Requires: kicad-doc-en = %{version} Requires: kicad-doc-en = %{version}
%description ja %description ja
@ -136,9 +126,8 @@ This package contains Japanese documentation and tutorials for KiCad
%package nl %package nl
Summary: Netherlandian documentation and tutorials for KiCad Summary: Netherlandian documentation and tutorials for KiCad
Group: Documentation/Other Group: Documentation/Other
Provides: kicad-doc = %{version}
Provides: locale(kicad-doc:nl) Provides: locale(kicad-doc:nl)
Requires: kicad-doc-common = %{version} Requires: kicad-doc = %{version}
Requires: kicad-doc-en = %{version} Requires: kicad-doc-en = %{version}
%description nl %description nl
@ -147,9 +136,8 @@ 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 Group: Documentation/Other
Provides: kicad-doc = %{version}
Provides: locale(kicad-doc:pl) Provides: locale(kicad-doc:pl)
Requires: kicad-doc-common = %{version} Requires: kicad-doc = %{version}
Requires: kicad-doc-en = %{version} Requires: kicad-doc-en = %{version}
%description pl %description pl
@ -158,9 +146,8 @@ This package contains Polish documentation and tutorials for KiCad
%package ca %package ca
Summary: Catalan documentation and tutorials for KiCad Summary: Catalan documentation and tutorials for KiCad
Group: Documentation/Other Group: Documentation/Other
Provides: kicad-doc = %{version}
Provides: locale(kicad-doc:ca) Provides: locale(kicad-doc:ca)
Requires: kicad-doc-common = %{version} Requires: kicad-doc = %{version}
Requires: kicad-doc-en = %{version} Requires: kicad-doc-en = %{version}
%description ca %description ca
@ -169,9 +156,8 @@ 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 Group: Documentation/Other
Provides: kicad-doc = %{version}
Provides: locale(kicad-doc:de) Provides: locale(kicad-doc:de)
Requires: kicad-doc-common = %{version} Requires: kicad-doc = %{version}
Requires: kicad-doc-en = %{version} Requires: kicad-doc-en = %{version}
%description de %description de
@ -180,9 +166,8 @@ This package contains German 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 Group: Documentation/Other
Provides: kicad-doc = %{version}
Provides: locale(kicad-doc:es) Provides: locale(kicad-doc:es)
Requires: kicad-doc-common = %{version} Requires: kicad-doc = %{version}
Requires: kicad-doc-en = %{version} Requires: kicad-doc-en = %{version}
%description es %description es
@ -191,9 +176,8 @@ This package contains Spanish 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 Group: Documentation/Other
Provides: kicad-doc = %{version}
Provides: locale(kicad-doc:ru) Provides: locale(kicad-doc:ru)
Requires: kicad-doc-common = %{version} Requires: kicad-doc = %{version}
Requires: kicad-doc-en = %{version} Requires: kicad-doc-en = %{version}
%description ru %description ru
@ -202,9 +186,8 @@ This package contains Russian 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 Group: Documentation/Other
Provides: kicad-doc = %{version}
Provides: locale(kicad-doc:id) Provides: locale(kicad-doc:id)
Requires: kicad-doc-common = %{version} Requires: kicad-doc = %{version}
Requires: kicad-doc-en = %{version} Requires: kicad-doc-en = %{version}
%description id %description id
@ -213,9 +196,8 @@ This package contains Indonesian 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 Group: Documentation/Other
Provides: kicad-doc = %{version}
Provides: locale(kicad-doc:zh) Provides: locale(kicad-doc:zh)
Requires: kicad-doc-common = %{version} Requires: kicad-doc = %{version}
Requires: kicad-doc-en = %{version} Requires: kicad-doc-en = %{version}
%description zh %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 %fdupes %{buildroot}%{_docdir}/kicad/help/$lang
done done
%files common %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
@ -260,6 +242,7 @@ done
%{_docdir}/kicad/help/en/ %{_docdir}/kicad/help/en/
%files fr %files fr
%defattr(-,root,root)
%{_docdir}/kicad/help/fr/ %{_docdir}/kicad/help/fr/
%files it %files it