From 922cf0ba0676891ef12032bb6be625166b9b4879974ca9bbdfe568054ab02e2e Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Wed, 28 Oct 2015 16:30:15 +0000 Subject: [PATCH] Accepting request 336002 from electronics Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/336002 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kicad-doc?expand=0&rev=6 --- _service | 12 + kicad-doc-20130728.tar.bz2 | 3 - kicad-doc-4.0.0~20150925.tar.gz | 3 + kicad-doc.changes | 5 + kicad-doc.spec | 403 ++++++-------------------------- license_for_documentation.txt | 61 +++++ 6 files changed, 157 insertions(+), 330 deletions(-) create mode 100644 _service delete mode 100644 kicad-doc-20130728.tar.bz2 create mode 100644 kicad-doc-4.0.0~20150925.tar.gz create mode 100644 license_for_documentation.txt diff --git a/_service b/_service new file mode 100644 index 0000000..2800017 --- /dev/null +++ b/_service @@ -0,0 +1,12 @@ + + + https://github.com/KiCad/kicad-doc.git + git + 4.0.0~%cd + + + *.tar + gz + + + \ No newline at end of file diff --git a/kicad-doc-20130728.tar.bz2 b/kicad-doc-20130728.tar.bz2 deleted file mode 100644 index 5d3e24a..0000000 --- a/kicad-doc-20130728.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:07b9722e1bd504dfa75d3f62750dd3b228fc6274cf950ac65cf345a774b4c559 -size 143466523 diff --git a/kicad-doc-4.0.0~20150925.tar.gz b/kicad-doc-4.0.0~20150925.tar.gz new file mode 100644 index 0000000..7b84ea8 --- /dev/null +++ b/kicad-doc-4.0.0~20150925.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8faa5376fa3ea781f1ff857d99a54614435e2ca4bb33a31036503385bc2f8959 +size 35555621 diff --git a/kicad-doc.changes b/kicad-doc.changes index f2b604c..b12d2a8 100644 --- a/kicad-doc.changes +++ b/kicad-doc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Sep 25 21:40:12 UTC 2015 - dmitry_r@opensuse.org + +- Update to version 4.0.0~20150925 + ------------------------------------------------------------------- Wed Jul 31 20:26:57 UTC 2013 - dmitry_r@opensuse.org diff --git a/kicad-doc.spec b/kicad-doc.spec index 4d59e32..bb3e91d 100644 --- a/kicad-doc.spec +++ b/kicad-doc.spec @@ -1,7 +1,7 @@ # # spec file for package kicad-doc # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,393 +17,142 @@ Name: kicad-doc -Version: 20130728 +Version: 4.0.0~20150925 Release: 0 -Summary: Documentation and tutorials for kicad +Summary: Documentation and tutorials for KiCad License: SUSE-OldFSFDocLicense Group: Documentation/Other Url: http://kicad-pcb.org -# bzr branch lp:~kicad-developers/kicad/doc doc -# bzr export -r 469 kicad-doc-20130728.tar.bz2 -Source: %{name}-%{version}.tar.bz2 - +Source: %{name}-%{version}.tar.gz +Source2: https://raw.githubusercontent.com/KiCad/kicad-source-mirror/master/license_for_documentation.txt +BuildRequires: asciidoc >= 8.6.9 BuildRequires: cmake -BuildRequires: gcc-c++ - +BuildRequires: dblatex >= 0.3.4 +BuildRequires: gettext >= 0.18 +BuildRequires: libxslt-tools +BuildRequires: po4a >= 0.45 +BuildRequires: source-highlight +BuildRequires: texlive +BuildRequires: texlive-collection-langeuropean +BuildRequires: texlive-collection-langfrench +BuildRequires: texlive-collection-langitalian +# BuildRequires: texlive-collection-langjapanese +BuildRequires: texlive-collection-langpolish +# BuildRequires: vlgothic-fonts +BuildRequires: perl(Unicode::LineBreak) BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build +Requires: kicad %description Kicad is an open source software for the creation of electronic -schematic diagrams and printed circuit board artwork up to 16 layers. -This is the documentation package for kicad. It contains documentation +schematic diagrams and printed circuit board artwork. +This is the documentation package for KiCad. It contains documentation and tutorials. -%package de -Summary: German documentation and tutorials for kicad -Group: Documentation/Other -Provides: locale(kicad-doc:de) - -%description de -This package contains German documentation and tutorials for kicad - %package en -Summary: English documentation and tutorials for kicad +Summary: English documentation and tutorials for KiCad Group: Documentation/Other Provides: locale(kicad-doc:en) +Requires: kicad-doc = %{version} %description en -This package contains English documentation and tutorials for kicad - -%package es -Summary: Spanish documentation and tutorials for kicad -Group: Documentation/Other -Provides: locale(kicad-doc:es) - -%description es -This package contains Spanish documentation and tutorials for kicad +This package contains English documentation and tutorials for KiCad %package fr -Summary: French documentation and tutorials for kicad +Summary: French documentation and tutorials for KiCad Group: Documentation/Other Provides: locale(kicad-doc:fr) +Requires: kicad-doc = %{version} %description fr -This package contains French documentation and tutorials for kicad - -%package hu -Summary: Hungarian documentation and tutorials for kicad -Group: Documentation/Other -Provides: locale(kicad-doc:hu) - -%description hu -This package contains Hungarian documentation and tutorials for kicad +This package contains French documentation and tutorials for KiCad %package it -Summary: Italian documentation and tutorials for kicad +Summary: Italian documentation and tutorials for KiCad Group: Documentation/Other Provides: locale(kicad-doc:it) +Requires: kicad-doc = %{version} %description it -This package contains Italian documentation and tutorials for kicad +This package contains Italian documentation and tutorials for KiCad -%package ja -Summary: Japanese documentation and tutorials for kicad +# %%package ja +# Summary: Japanese documentation and tutorials for KiCad +# Group: Documentation/Other +# Provides: locale(kicad-doc:ja) +# Requires: kicad-doc = %%{version} +# +# %%description ja +# 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:ja) +Provides: locale(kicad-doc:nl) +Requires: kicad-doc = %{version} -%description ja -This package contains Japanese documentation and tutorials for kicad +%description nl +This package contains Netherlandian documentation and tutorials for KiCad %package pl -Summary: Polish documentation and tutorials for kicad +Summary: Polish documentation and tutorials for KiCad Group: Documentation/Other Provides: locale(kicad-doc:pl) +Requires: kicad-doc = %{version} %description pl -This package contains Polish documentation and tutorials for kicad - -%package ru -Summary: Russian documentation and tutorials for kicad -Group: Documentation/Other -Provides: locale(kicad-doc:ru) - -%description ru -This package contains Russian documentation and tutorials for kicad - -%package zh_CN -Summary: Chinese documentation and tutorials for kicad -Group: Documentation/Other -Provides: locale(kicad-doc:zh_CN) - -%description zh_CN -This package contains Chinese documentation and tutorials for kicad - -%package -n kicad-lang-bg -Summary: Bulgarian translations for kicad -Group: System/Localization -Provides: locale(kicad:bg) - -%description -n kicad-lang-bg -This package contains Bulgarian translations for kicad - -%package -n kicad-lang-ca -Summary: Catalan translations for kicad -Group: System/Localization -Provides: locale(kicad:ca) - -%description -n kicad-lang-ca -This package contains Catalan translations for kicad - -%package -n kicad-lang-cs -Summary: Serbian translations for kicad -Group: System/Localization -Provides: locale(kicad:cs) - -%description -n kicad-lang-cs -This package contains Serbian translations for kicad - -%package -n kicad-lang-de -Summary: German translations for kicad -Group: System/Localization -Provides: locale(kicad:de) - -%description -n kicad-lang-de -This package contains German translations for kicad - -%package -n kicad-lang-es -Summary: Spanish translations for kicad -Group: System/Localization -Provides: locale(kicad:es) - -%description -n kicad-lang-es -This package contains Spanish translations for kicad - -%package -n kicad-lang-fi -Summary: Finnish translations for kicad -Group: System/Localization -Provides: locale(kicad:fi) - -%description -n kicad-lang-fi -This package contains Finnish translations for kicad - -%package -n kicad-lang-fr -Summary: French translations for kicad -Group: System/Localization -Provides: locale(kicad:fr) - -%description -n kicad-lang-fr -This package contains French translations for kicad - -%package -n kicad-lang-hu -Summary: Hungarian translations for kicad -Group: System/Localization -Provides: locale(kicad:hu) - -%description -n kicad-lang-hu -This package contains Hungarian translations for kicad - -%package -n kicad-lang-it -Summary: Italian translations for kicad -Group: System/Localization -Provides: locale(kicad:it) - -%description -n kicad-lang-it -This package contains Italian translations for kicad - -%package -n kicad-lang-ja -Summary: Japanese translations for kicad -Group: System/Localization -Provides: locale(kicad:ja) - -%description -n kicad-lang-ja -This package contains Japanese translations for kicad - -%package -n kicad-lang-ko -Summary: Korean translations for kicad -Group: System/Localization -Provides: locale(kicad:ko) - -%description -n kicad-lang-ko -This package contains Korean translations for kicad - -%package -n kicad-lang-nl -Summary: Netherlandian translations for kicad -Group: System/Localization -Provides: locale(kicad:nl) - -%description -n kicad-lang-nl -This package contains Netherlandian translations for kicad - -%package -n kicad-lang-pl -Summary: Polish translations for kicad -Group: System/Localization -Provides: locale(kicad:pl) - -%description -n kicad-lang-pl -This package contains Polish translations for kicad - -%package -n kicad-lang-pt -Summary: Portuguese translations for kicad -Group: System/Localization -Provides: locale(kicad:pt) - -%description -n kicad-lang-pt -This package contains Portuguese translations for kicad - -%package -n kicad-lang-ru -Summary: Russian translations for kicad -Group: System/Localization -Provides: locale(kicad:ru) - -%description -n kicad-lang-ru -This package contains Russian translations for kicad - -%package -n kicad-lang-sl -Summary: Slovene translations for kicad -Group: System/Localization -Provides: locale(kicad:sl) - -%description -n kicad-lang-sl -This package contains Slovene translations for kicad - -%package -n kicad-lang-sv -Summary: Swedish translations for kicad -Group: System/Localization -Provides: locale(kicad:sv) - -%description -n kicad-lang-sv -This package contains Swedish translations for kicad - -%package -n kicad-lang-zh_CN -Summary: Chinese translations for kicad -Group: System/Localization -Provides: locale(kicad:zh_CN) - -%description -n kicad-lang-zh_CN -This package contains Chinese translations for kicad +This package contains Polish documentation and tutorials for KiCad %prep %setup -q -# fix documentation directory -# sed -i 's|KICAD_DOCS share/doc/kicad|KICAD_DOCS share/doc/packages/kicad|' CMakeLists.txt -# fix wrong-file-end-of-line-encoding -sed -i 's/\r$//' license_for_documentation.txt +cp %{SOURCE2} . + +# Fix documentation path +sed -i "s|share/doc/kicad|share/doc/packages/kicad|" CMakeModules/KiCadDocumentation.cmake + +# FIXME +# Delete japanese translation due to build problems +find src/ -name 'addendum.ja' -type f -delete -print +find src/ -name 'ja.po' -type f -delete -print %build -cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} ./ -make %{?_smp_mflags} +%cmake +make -j1 %install -%makeinstall -# localization -rm -r %{buildroot}/%{_datadir}/kicad/ -pushd internat/ -for dir in bg ca cs de es fi fr hu it ja ko nl pl pt ru sl sv zh_CN -do - install -m 644 -D ${dir}/kicad.mo %{buildroot}%{_datadir}/locale/${dir}/LC_MESSAGES/kicad.mo -done -popd -# license -install -Dm 644 license_for_documentation.txt %{buildroot}%{_datadir}/doc/kicad/license_for_documentation.txt +%cmake_install + +install -Dm644 license_for_documentation.txt %{buildroot}%{_datadir}/doc/packages/kicad/ %files %defattr(-,root,root) -%{_datadir}/doc/kicad/license_for_documentation.txt -%{_datadir}/doc/kicad/help/file_formats/ -%dir %{_datadir}/doc/kicad/ -%dir %{_datadir}/doc/kicad/help/ - -%files de -%defattr(-,root,root) -%{_datadir}/doc/kicad/help/de/ +%dir %{_datadir}/doc/packages/kicad/ +%dir %{_datadir}/doc/packages/kicad/help/ +%{_datadir}/doc/packages/kicad/license_for_documentation.txt %files en %defattr(-,root,root) -%{_datadir}/doc/kicad/help/en/ - -%files es -%defattr(-,root,root) -%{_datadir}/doc/kicad/help/es/ +%{_datadir}/doc/packages/kicad/help/en/ %files fr %defattr(-,root,root) -%{_datadir}/doc/kicad/help/fr/ - -%files hu -%defattr(-,root,root) -%{_datadir}/doc/kicad/help/hu/ +%{_datadir}/doc/packages/kicad/help/fr/ %files it %defattr(-,root,root) -%{_datadir}/doc/kicad/help/it/ +%{_datadir}/doc/packages/kicad/help/it/ -%files ja +# %%files ja +# %%defattr(-,root,root) +# %%{_datadir}/doc/packages/kicad/help/ja/ + +%files nl %defattr(-,root,root) -%{_datadir}/doc/kicad/help/ja/ +%{_datadir}/doc/packages/kicad/help/nl/ %files pl %defattr(-,root,root) -%{_datadir}/doc/kicad/help/pl/ - -%files ru -%defattr(-,root,root) -%{_datadir}/doc/kicad/help/ru/ - -%files zh_CN -%defattr(-,root,root) -%{_datadir}/doc/kicad/help/zh_CN/ - -%files -n kicad-lang-bg -%defattr(-,root,root) -%lang(bg) %{_datadir}/locale/bg/LC_MESSAGES/kicad.mo - -%files -n kicad-lang-ca -%defattr(-,root,root) -%lang(ca) %{_datadir}/locale/ca/LC_MESSAGES/kicad.mo - -%files -n kicad-lang-cs -%defattr(-,root,root) -%lang(cs) %{_datadir}/locale/cs/LC_MESSAGES/kicad.mo - -%files -n kicad-lang-de -%defattr(-,root,root) -%lang(de) %{_datadir}/locale/de/LC_MESSAGES/kicad.mo - -%files -n kicad-lang-es -%defattr(-,root,root) -%lang(es) %{_datadir}/locale/es/LC_MESSAGES/kicad.mo - -%files -n kicad-lang-fi -%defattr(-,root,root) -%lang(fi) %{_datadir}/locale/fi/LC_MESSAGES/kicad.mo - -%files -n kicad-lang-fr -%defattr(-,root,root) -%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/kicad.mo - -%files -n kicad-lang-hu -%defattr(-,root,root) -%lang(hu) %{_datadir}/locale/hu/LC_MESSAGES/kicad.mo - -%files -n kicad-lang-it -%defattr(-,root,root) -%lang(it) %{_datadir}/locale/it/LC_MESSAGES/kicad.mo - -%files -n kicad-lang-ja -%defattr(-,root,root) -%lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/kicad.mo - -%files -n kicad-lang-ko -%defattr(-,root,root) -%lang(ko) %{_datadir}/locale/ko/LC_MESSAGES/kicad.mo - -%files -n kicad-lang-nl -%defattr(-,root,root) -%lang(nl) %{_datadir}/locale/nl/LC_MESSAGES/kicad.mo - -%files -n kicad-lang-pl -%defattr(-,root,root) -%lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/kicad.mo - -%files -n kicad-lang-pt -%defattr(-,root,root) -%lang(pt) %{_datadir}/locale/pt/LC_MESSAGES/kicad.mo - -%files -n kicad-lang-ru -%defattr(-,root,root) -%lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/kicad.mo - -%files -n kicad-lang-sl -%defattr(-,root,root) -%lang(sl) %{_datadir}/locale/sl/LC_MESSAGES/kicad.mo - -%files -n kicad-lang-sv -%defattr(-,root,root) -%lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/kicad.mo - -%files -n kicad-lang-zh_CN -%defattr(-,root,root) -%lang(zh_CN) %{_datadir}/locale/zh_CN/LC_MESSAGES/kicad.mo +%{_datadir}/doc/packages/kicad/help/pl/ %changelog diff --git a/license_for_documentation.txt b/license_for_documentation.txt new file mode 100644 index 0000000..61a4e2d --- /dev/null +++ b/license_for_documentation.txt @@ -0,0 +1,61 @@ + KiCad Free Documentation Licence + ================================ + + Copyright (c) jean-pierre Charras + Copyright (C) KiCad Developers + + Everyone is permitted to copy and distribute verbatim copies + of this licence document, but changing it is not allowed. + + KICAD FREE DOCUMENTATION LICENCE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 1. Permission is granted to make and distribute verbatim copies of this + manual or piece of documentation provided any copyright notice and this + permission notice are preserved on all copies. + + 2. Permission is granted to process this file or document through a + document processing system and, at your option and the option of any third + party, print the results, provided a printed document carries a copying + permission notice identical to this one. + + 3. Permission is granted to copy and distribute modified versions of this + manual or piece of documentation under the conditions for verbatim + copying, provided also that any sections describing licensing conditions + for this manual, such as, in particular, the GNU General Public Licence, + the GNU Library General Public Licence, and any wxWindows Licence are + included exactly as in the original, and provided that the entire + resulting derived work is distributed under the terms of a permission + notice identical to this one. + + 4. Permission is granted to copy and distribute translations of this + manual or piece of documentation into another language, under the above + conditions for modified versions, except that sections related to + licensing, including this paragraph, may also be included in translations + approved by the copyright holders of the respective licence documents in + addition to the original French or English. + + WARRANTY DISCLAIMER + + 5. BECAUSE THIS MANUAL OR PIECE OF DOCUMENTATION IS LICENSED FREE OF CHARGE, + THERE IS NO WARRANTY FOR IT, TO THE EXTENT PERMITTED BY APPLICABLE LAW. + EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER + PARTIES PROVIDE THIS MANUAL OR PIECE OF DOCUMENTATION "AS IS" WITHOUT + WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A + PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF + THE MANUAL OR PIECE OF DOCUMENTATION IS WITH YOU. SHOULD THE MANUAL OR + PIECE OF DOCUMENTATION PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL + NECESSARY SERVICING, REPAIR OR CORRECTION. + + 6. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL + ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR + REDISTRIBUTE THE MANUAL OR PIECE OF DOCUMENTATION AS PERMITTED ABOVE, BE + LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR + CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE + MANUAL OR PIECE OF DOCUMENTATION (INCLUDING BUT NOT LIMITED TO LOSS OF + DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD + PARTIES OR A FAILURE OF A PROGRAM BASED ON THE MANUAL OR PIECE OF + DOCUMENTATION TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR + OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. +