# # spec file for package kicad-doc # # Copyright (c) 2016 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 # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: kicad-doc Version: 4.0.4 Release: 0 Summary: Documentation and tutorials for KiCad License: SUSE-OldFSFDocLicense Group: Documentation/Other 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 BuildRequires: asciidoc >= 8.6.9 BuildRequires: cmake BuildRequires: dblatex >= 0.3.4 BuildRequires: gettext >= 0.18 BuildRequires: git BuildRequires: libxslt-tools BuildRequires: po4a >= 0.45 BuildRequires: source-highlight BuildRequires: texlive-collection-langeuropean BuildRequires: texlive-collection-langfrench BuildRequires: texlive-collection-langgerman BuildRequires: texlive-collection-langitalian BuildRequires: texlive-collection-langspanish BuildRequires: texlive-euenc BuildRequires: texlive-latex BuildRequires: texlive-xetex BuildRequires: texlive-xetex-def BuildRequires: texlive-xetex-itrans BuildRequires: texlive-xetex-pstricks BuildRequires: texlive-xetexfontinfo BuildRequires: texlive-xetexref # BuildRequires: texlive-collection-langjapanese BuildRequires: texlive-collection-langcyrillic BuildRequires: texlive-collection-langpolish BuildRequires: texlive-gnu-freefont-fonts # 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. This is the documentation package for KiCad. It contains documentation and tutorials. %package en 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 fr 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 %if 0%{?suse_version} != 1315 %package it 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 %endif # %%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:nl) Requires: kicad-doc = %{version} %description nl This package contains Netherlandian documentation and tutorials for KiCad %package pl 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 ca Summary: Catalan documentation and tutorials for KiCad Group: Documentation/Other Provides: locale(kicad-doc:pl) Requires: kicad-doc = %{version} %description ca This package contains Catalan documentation and tutorials for KiCad %package de Summary: German documentation and tutorials for KiCad Group: Documentation/Other Provides: locale(kicad-doc:pl) Requires: kicad-doc = %{version} %description de This package contains German documentation and tutorials for KiCad %package es Summary: Spanish documentation and tutorials for KiCad Group: Documentation/Other Provides: locale(kicad-doc:pl) Requires: kicad-doc = %{version} %description es This package contains Spanish documentation and tutorials for KiCad %package ru Summary: Russian documentation and tutorials for KiCad Group: Documentation/Other Provides: locale(kicad-doc:pl) Requires: kicad-doc = %{version} %description ru This package contains Russian documentation and tutorials for KiCad %prep %setup -q cp %{SOURCE2} . # Fix documentation path sed -i "s|share/doc/kicad|share/doc/packages/kicad|" CMakeModules/KiCadDocumentation.cmake %patch0 # 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 #Problems with italian too %if 0%{?suse_version} == 1315 find src/ -name 'addendum.it' -type f -delete -print find src/ -name 'it.po' -type f -delete -print %endif %build %cmake make -j1 %install %cmake_install install -Dm644 license_for_documentation.txt %{buildroot}%{_datadir}/doc/packages/kicad/ %files %defattr(-,root,root) %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/packages/kicad/help/en/ %files fr %defattr(-,root,root) %{_datadir}/doc/packages/kicad/help/fr/ %if 0%{?suse_version} != 1315 %files it %defattr(-,root,root) %{_datadir}/doc/packages/kicad/help/it/ %endif # %%files ja # %%defattr(-,root,root) # %%{_datadir}/doc/packages/kicad/help/ja/ %files nl %defattr(-,root,root) %{_datadir}/doc/packages/kicad/help/nl/ %files pl %defattr(-,root,root) %{_datadir}/doc/packages/kicad/help/pl/ %files ca %defattr(-,root,root) %{_datadir}/doc/packages/kicad/help/ca/ %files de %defattr(-,root,root) %{_datadir}/doc/packages/kicad/help/de/ %files es %defattr(-,root,root) %{_datadir}/doc/packages/kicad/help/es/ %files ru %defattr(-,root,root) %{_datadir}/doc/packages/kicad/help/ru/ %changelog