2017-01-13 16:46:44 +10:00
|
|
|
%define Werror_cflags %{nil}
|
|
|
|
|
|
|
|
%define docname kicad-doc
|
|
|
|
%define libname kicad-library
|
|
|
|
%define i18nname kicad-i18n
|
2012-02-01 20:50:12 +04:00
|
|
|
|
2016-12-06 22:34:38 +10:00
|
|
|
Summary: EDA software suite for creation of schematic diagrams and PCBs
|
2014-03-07 15:09:56 +11:00
|
|
|
Name: kicad
|
2017-01-13 16:46:44 +10:00
|
|
|
Version: 4.0.4
|
|
|
|
Release: 1
|
|
|
|
Epoch: 2
|
2015-04-02 16:22:59 +03:00
|
|
|
License: GPLv2+
|
2016-12-06 22:34:38 +10:00
|
|
|
Group: Sciences/Computer science
|
2015-04-02 16:22:59 +03:00
|
|
|
Url: http://www.kicad-pcb.org
|
2017-01-13 16:46:44 +10:00
|
|
|
Source0: https://launchpad.net/%{name}/4.0/%{version}/+download/%{name}-%{version}.tar.xz
|
|
|
|
Source1: https://github.com/KiCad/%{docname}/archive/%{docname}-%{version}.tar.gz
|
|
|
|
Source2: https://github.com/KiCad/%{libname}/archive/%{libname}-%{version}.tar.gz
|
|
|
|
Source3: https://github.com/KiCad/%{i18nname}/archive/%{i18nname}-%{version}.tar.gz
|
|
|
|
|
|
|
|
# This needs to be aligned with kicad-library-*/template/fp-lib-table.for-pretty
|
|
|
|
Source4: https://github.com/KiCad/Air_Coils_SML_NEOSID.pretty/archive/Air_Coils_SML_NEOSID.pretty-%{version}.tar.gz
|
|
|
|
Source5: https://github.com/KiCad/Buttons_Switches_SMD.pretty/archive/Buttons_Switches_SMD.pretty-%{version}.tar.gz
|
|
|
|
Source6: https://github.com/KiCad/Buttons_Switches_ThroughHole.pretty/archive/Buttons_Switches_ThroughHole.pretty-%{version}.tar.gz
|
|
|
|
Source7: https://github.com/KiCad/Buzzers_Beepers.pretty/archive/Buzzers_Beepers.pretty-%{version}.tar.gz
|
|
|
|
Source8: https://github.com/KiCad/Capacitors_SMD.pretty/archive/Capacitors_SMD.pretty-%{version}.tar.gz
|
|
|
|
Source9: https://github.com/KiCad/Capacitors_Tantalum_SMD.pretty/archive/Capacitors_Tantalum_SMD.pretty-%{version}.tar.gz
|
|
|
|
Source10: https://github.com/KiCad/Capacitors_ThroughHole.pretty/archive/Capacitors_ThroughHole.pretty-%{version}.tar.gz
|
|
|
|
Source11: https://github.com/KiCad/Choke_Axial_ThroughHole.pretty/archive/Choke_Axial_ThroughHole.pretty-%{version}.tar.gz
|
|
|
|
Source12: https://github.com/KiCad/Choke_Common-Mode_Wurth.pretty/archive/Choke_Common-Mode_Wurth.pretty-%{version}.tar.gz
|
|
|
|
Source13: https://github.com/KiCad/Choke_Radial_ThroughHole.pretty/archive/Choke_Radial_ThroughHole.pretty-%{version}.tar.gz
|
|
|
|
Source14: https://github.com/KiCad/Choke_SMD.pretty/archive/Choke_SMD.pretty-%{version}.tar.gz
|
|
|
|
Source15: https://github.com/KiCad/Choke_Toroid_ThroughHole.pretty/archive/Choke_Toroid_ThroughHole.pretty-%{version}.tar.gz
|
|
|
|
Source16: https://github.com/KiCad/Connectors_Molex.pretty/archive/Connectors_Molex.pretty-%{version}.tar.gz
|
|
|
|
Source17: https://github.com/KiCad/Connect.pretty/archive/Connect.pretty-%{version}.tar.gz
|
|
|
|
Source18: https://github.com/KiCad/Converters_DCDC_ACDC.pretty/archive/Converters_DCDC_ACDC.pretty-%{version}.tar.gz
|
|
|
|
Source19: https://github.com/KiCad/Crystals.pretty/archive/Crystals.pretty-%{version}.tar.gz
|
|
|
|
Source20: https://github.com/KiCad/Diodes_SMD.pretty/archive/Diodes_SMD.pretty-%{version}.tar.gz
|
|
|
|
Source21: https://github.com/KiCad/Diodes_ThroughHole.pretty/archive/Diodes_ThroughHole.pretty-%{version}.tar.gz
|
|
|
|
Source22: https://github.com/KiCad/Discret.pretty/archive/Discret.pretty-%{version}.tar.gz
|
|
|
|
Source23: https://github.com/KiCad/Display.pretty/archive/Display.pretty-%{version}.tar.gz
|
|
|
|
Source24: https://github.com/KiCad/Displays_7-Segment.pretty/archive/Displays_7-Segment.pretty-%{version}.tar.gz
|
|
|
|
Source25: https://github.com/KiCad/Divers.pretty/archive/Divers.pretty-%{version}.tar.gz
|
|
|
|
Source26: https://github.com/KiCad/EuroBoard_Outline.pretty/archive/EuroBoard_Outline.pretty-%{version}.tar.gz
|
|
|
|
Source27: https://github.com/KiCad/Fiducials.pretty/archive/Fiducials.pretty-%{version}.tar.gz
|
|
|
|
Source28: https://github.com/KiCad/Filters_HF_Coils_NEOSID.pretty/archive/Filters_HF_Coils_NEOSID.pretty-%{version}.tar.gz
|
|
|
|
Source29: https://github.com/KiCad/Fuse_Holders_and_Fuses.pretty/archive/Fuse_Holders_and_Fuses.pretty-%{version}.tar.gz
|
|
|
|
Source30: https://github.com/KiCad/Hall-Effect_Transducers_LEM.pretty/archive/Hall-Effect_Transducers_LEM.pretty-%{version}.tar.gz
|
|
|
|
Source31: https://github.com/KiCad/Heatsinks.pretty/archive/Heatsinks.pretty-%{version}.tar.gz
|
|
|
|
Source32: https://github.com/KiCad/Housings_DFN_QFN.pretty/archive/Housings_DFN_QFN.pretty-%{version}.tar.gz
|
|
|
|
Source33: https://github.com/KiCad/Housings_DIP.pretty/archive/Housings_DIP.pretty-%{version}.tar.gz
|
|
|
|
Source34: https://github.com/KiCad/Housings_QFP.pretty/archive/Housings_QFP.pretty-%{version}.tar.gz
|
|
|
|
Source35: https://github.com/KiCad/Housings_SIP.pretty/archive/Housings_SIP.pretty-%{version}.tar.gz
|
|
|
|
Source36: https://github.com/KiCad/Housings_SOIC.pretty/archive/Housings_SOIC.pretty-%{version}.tar.gz
|
|
|
|
Source37: https://github.com/KiCad/Housings_SSOP.pretty/archive/Housings_SSOP.pretty-%{version}.tar.gz
|
|
|
|
Source38: https://github.com/KiCad/Inductors_NEOSID.pretty/archive/Inductors_NEOSID.pretty-%{version}.tar.gz
|
|
|
|
Source39: https://github.com/KiCad/Inductors.pretty/archive/Inductors.pretty-%{version}.tar.gz
|
|
|
|
Source40: https://github.com/KiCad/IR-DirectFETs.pretty/archive/IR-DirectFETs.pretty-%{version}.tar.gz
|
|
|
|
Source41: https://github.com/KiCad/Labels.pretty/archive/Labels.pretty-%{version}.tar.gz
|
|
|
|
Source42: https://github.com/KiCad/LEDs.pretty/archive/LEDs.pretty-%{version}.tar.gz
|
|
|
|
Source43: https://github.com/KiCad/Measurement_Points.pretty/archive/Measurement_Points.pretty-%{version}.tar.gz
|
|
|
|
Source44: https://github.com/KiCad/Measurement_Scales.pretty/archive/Measurement_Scales.pretty-%{version}.tar.gz
|
|
|
|
Source45: https://github.com/KiCad/Mechanical_Sockets.pretty/archive/Mechanical_Sockets.pretty-%{version}.tar.gz
|
|
|
|
Source46: https://github.com/KiCad/Microwave.pretty/archive/Microwave.pretty-%{version}.tar.gz
|
|
|
|
Source47: https://github.com/KiCad/Mounting_Holes.pretty/archive/Mounting_Holes.pretty-%{version}.tar.gz
|
|
|
|
Source48: https://github.com/KiCad/NF-Transformers_ETAL.pretty/archive/NF-Transformers_ETAL.pretty-%{version}.tar.gz
|
|
|
|
Source49: https://github.com/KiCad/Oddities.pretty/archive/Oddities.pretty-%{version}.tar.gz
|
|
|
|
Source50: https://github.com/KiCad/Opto-Devices.pretty/archive/Opto-Devices.pretty-%{version}.tar.gz
|
|
|
|
Source51: https://github.com/KiCad/Oscillators.pretty/archive/Oscillators.pretty-%{version}.tar.gz
|
|
|
|
Source52: https://github.com/KiCad/PFF_PSF_PSS_Leadforms.pretty/archive/PFF_PSF_PSS_Leadforms.pretty-%{version}.tar.gz
|
|
|
|
Source53: https://github.com/KiCad/Pin_Headers.pretty/archive/Pin_Headers.pretty-%{version}.tar.gz
|
|
|
|
Source54: https://github.com/KiCad/Potentiometers.pretty/archive/Potentiometers.pretty-%{version}.tar.gz
|
|
|
|
Source55: https://github.com/KiCad/Power_Integrations.pretty/archive/Power_Integrations.pretty-%{version}.tar.gz
|
|
|
|
Source56: https://github.com/KiCad/Relays_ThroughHole.pretty/archive/Relays_ThroughHole.pretty-%{version}.tar.gz
|
|
|
|
Source57: https://github.com/KiCad/Resistors_SMD.pretty/archive/Resistors_SMD.pretty-%{version}.tar.gz
|
|
|
|
Source58: https://github.com/KiCad/Resistors_ThroughHole.pretty/archive/Resistors_ThroughHole.pretty-%{version}.tar.gz
|
|
|
|
Source59: https://github.com/KiCad/Resistors_Universal.pretty/archive/Resistors_Universal.pretty-%{version}.tar.gz
|
|
|
|
Source60: https://github.com/KiCad/SMD_Packages.pretty/archive/SMD_Packages.pretty-%{version}.tar.gz
|
|
|
|
Source61: https://github.com/KiCad/Sockets_BNC.pretty/archive/Sockets_BNC.pretty-%{version}.tar.gz
|
|
|
|
Source62: https://github.com/KiCad/Sockets_Mini-Universal.pretty/archive/Sockets_Mini-Universal.pretty-%{version}.tar.gz
|
|
|
|
Source63: https://github.com/KiCad/Sockets_MOLEX_KK-System.pretty/archive/Sockets_MOLEX_KK-System.pretty-%{version}.tar.gz
|
|
|
|
Source64: https://github.com/KiCad/Sockets.pretty/archive/Sockets.pretty-%{version}.tar.gz
|
|
|
|
Source65: https://github.com/KiCad/Socket_Strips.pretty/archive/Socket_Strips.pretty-%{version}.tar.gz
|
|
|
|
Source66: https://github.com/KiCad/Sockets_WAGO734.pretty/archive/Sockets_WAGO734.pretty-%{version}.tar.gz
|
|
|
|
Source67: https://github.com/KiCad/Symbols.pretty/archive/Symbols.pretty-%{version}.tar.gz
|
|
|
|
Source68: https://github.com/KiCad/Terminal_Blocks.pretty/archive/Terminal_Blocks.pretty-%{version}.tar.gz
|
|
|
|
Source69: https://github.com/KiCad/TO_SOT_Packages_SMD.pretty/archive/TO_SOT_Packages_SMD.pretty-%{version}.tar.gz
|
|
|
|
Source70: https://github.com/KiCad/TO_SOT_Packages_THT.pretty/archive/TO_SOT_Packages_THT.pretty-%{version}.tar.gz
|
|
|
|
Source71: https://github.com/KiCad/Transformers_CHK.pretty/archive/Transformers_CHK.pretty-%{version}.tar.gz
|
|
|
|
Source72: https://github.com/KiCad/Transformers_SMPS_ThroughHole.pretty/archive/Transformers_SMPS_ThroughHole.pretty-%{version}.tar.gz
|
|
|
|
Source73: https://github.com/KiCad/Transistors_OldSowjetAera.pretty/archive/Transistors_OldSowjetAera.pretty-%{version}.tar.gz
|
|
|
|
Source74: https://github.com/KiCad/Valves.pretty/archive/Valves.pretty-%{version}.tar.gz
|
|
|
|
Source75: https://github.com/KiCad/Varistors.pretty/archive/Varistors.pretty-%{version}.tar.gz
|
|
|
|
Source76: https://github.com/KiCad/Wire_Connections_Bridges.pretty/archive/Wire_Connections_Bridges.pretty-%{version}.tar.gz
|
|
|
|
Source77: https://github.com/KiCad/Wire_Pads.pretty/archive/Wire_Pads.pretty-%{version}.tar.gz
|
|
|
|
|
|
|
|
Patch0: kicad-boost-1_61-boost-context-changes.patch
|
|
|
|
Patch1: kicad-set-cxx-version.patch
|
|
|
|
Patch2: kicad-2015.01.02-nostrip.patch
|
2012-10-19 12:17:10 +11:00
|
|
|
|
2015-04-02 16:22:59 +03:00
|
|
|
BuildRequires: cmake
|
2016-12-06 22:34:38 +10:00
|
|
|
BuildRequires: desktop-file-utils
|
2015-04-02 16:22:59 +03:00
|
|
|
BuildRequires: doxygen
|
2017-01-13 16:46:44 +10:00
|
|
|
BuildRequires: swig
|
2016-12-06 22:34:38 +10:00
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: wxgtku3.0-devel
|
2017-01-13 16:46:44 +10:00
|
|
|
BuildRequires: pkgconfig(gl)
|
2016-12-06 22:34:38 +10:00
|
|
|
BuildRequires: pkgconfig(glew)
|
2017-01-13 16:46:44 +10:00
|
|
|
BuildRequires: pkgconfig(glu)
|
2016-12-06 22:34:38 +10:00
|
|
|
BuildRequires: pkgconfig(openssl)
|
2017-01-13 16:46:44 +10:00
|
|
|
BuildRequires: pkgconfig(python)
|
|
|
|
# doc
|
|
|
|
BuildRequires: asciidoc
|
|
|
|
BuildRequires: dblatex
|
|
|
|
BuildRequires: git
|
|
|
|
BuildRequires: po4a
|
|
|
|
BuildRequires: source-highlight
|
|
|
|
BuildRequires: perl(Unicode::GCString)
|
2014-03-07 15:09:56 +11:00
|
|
|
|
2015-04-02 16:22:59 +03:00
|
|
|
Requires: electronics-menu
|
2012-02-01 20:50:12 +04:00
|
|
|
|
2015-05-21 15:35:19 +03:00
|
|
|
%rename kicad-library
|
|
|
|
%rename kicad-locales-ca
|
|
|
|
%rename kicad-locales-cs
|
|
|
|
%rename kicad-locales-de
|
|
|
|
%rename kicad-locales-es
|
|
|
|
%rename kicad-locales-fi
|
|
|
|
%rename kicad-locales-fr
|
|
|
|
%rename kicad-locales-hu
|
|
|
|
%rename kicad-locales-it
|
|
|
|
%rename kicad-locales-ja
|
|
|
|
%rename kicad-locales-ko
|
|
|
|
%rename kicad-locales-nl
|
|
|
|
%rename kicad-locales-pl
|
|
|
|
%rename kicad-locales-pt
|
|
|
|
%rename kicad-locales-ru
|
|
|
|
%rename kicad-locales-sl
|
|
|
|
%rename kicad-locales-sv
|
|
|
|
%rename kicad-locales-zh-cn
|
|
|
|
|
2015-04-02 16:22:59 +03:00
|
|
|
%description
|
|
|
|
KiCad is an EDA software to design electronic schematic
|
|
|
|
diagrams and printed circuit board artwork up to 16 layers.
|
|
|
|
KiCad is a set of four softwares and a project manager:
|
|
|
|
- KiCad: project manager
|
|
|
|
- Eeschema: schematic entry
|
|
|
|
- Pcbnew: board editor
|
|
|
|
- Cvpcb: footprint selector for components used in the circuit design
|
|
|
|
- Gerbview: GERBER viewer (photoplotter documents)
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
2014-03-07 15:09:56 +11:00
|
|
|
%{_bindir}/*
|
2015-04-02 16:22:59 +03:00
|
|
|
%{_libdir}/%{name}
|
|
|
|
%{_datadir}/%{name}/
|
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
|
%{_datadir}/icons/hicolor/*/mimetypes/application-x-*.*
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/*.*
|
|
|
|
%{_datadir}/mime/packages/%{name}.xml
|
|
|
|
%{_datadir}/mimelnk/application/x-%{name}-*.desktop
|
|
|
|
%{_docdir}/%{name}/*.txt
|
2017-01-13 16:46:44 +10:00
|
|
|
%{python2_sitelib}/_pcbnew.so
|
|
|
|
%{python2_sitelib}/pcbnew.*
|
2014-03-07 15:09:56 +11:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
2016-12-06 22:34:38 +10:00
|
|
|
%package doc
|
2015-04-02 16:22:59 +03:00
|
|
|
Summary: Documentation for KiCad
|
|
|
|
Group: Documentation
|
2017-01-13 16:46:44 +10:00
|
|
|
Obsoletes: %{name}-doc-hu < %{EVRD}
|
|
|
|
Obsoletes: %{name}-doc-pt < %{EVRD}
|
|
|
|
Obsoletes: %{name}-doc-zh_CN < %{EVRD}
|
2012-02-01 20:50:12 +04:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2016-12-06 22:34:38 +10:00
|
|
|
%description doc
|
2015-04-02 16:22:59 +03:00
|
|
|
Documentation and tutorials for KiCad in English.
|
2012-02-01 20:50:12 +04:00
|
|
|
|
2014-03-07 15:09:56 +11:00
|
|
|
%files doc
|
2015-04-02 16:22:59 +03:00
|
|
|
%dir %{_docdir}/%{name}/
|
|
|
|
%{_docdir}/%{name}/help/en
|
|
|
|
%{_docdir}/%{name}/scripts
|
2014-03-07 15:09:56 +11:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
2017-01-13 16:46:44 +10:00
|
|
|
%package doc-ca
|
|
|
|
Summary: Documentation for KiCad in Catalan
|
|
|
|
Group: Documentation
|
|
|
|
Requires: %{name}-doc = %{EVRD}
|
|
|
|
Requires: locales-ca
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc-ca
|
|
|
|
Documentation and tutorials for KiCad in Catalan.
|
|
|
|
|
|
|
|
%files doc-ca
|
|
|
|
%{_docdir}/%{name}/help/ca
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
2016-12-06 22:34:38 +10:00
|
|
|
%package doc-de
|
2015-04-02 16:22:59 +03:00
|
|
|
Summary: Documentation for KiCad in German
|
|
|
|
Group: Documentation
|
2015-04-02 22:40:06 +04:00
|
|
|
Requires: %{name}-doc = %{EVRD}
|
2015-04-02 16:22:59 +03:00
|
|
|
Requires: locales-de
|
2012-02-01 20:50:12 +04:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2016-12-06 22:34:38 +10:00
|
|
|
%description doc-de
|
2017-01-13 16:46:44 +10:00
|
|
|
Documentation and tutorials for KiCad in German.
|
2012-02-01 20:50:12 +04:00
|
|
|
|
2015-04-02 16:22:59 +03:00
|
|
|
%files doc-de
|
|
|
|
%{_docdir}/%{name}/help/de
|
2014-03-07 15:09:56 +11:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
2016-12-06 22:34:38 +10:00
|
|
|
%package doc-es
|
2015-04-02 16:22:59 +03:00
|
|
|
Summary: Documentation for KiCad in Spanish
|
|
|
|
Group: Documentation
|
2015-04-02 22:40:06 +04:00
|
|
|
Requires: %{name}-doc = %{EVRD}
|
2015-04-02 16:22:59 +03:00
|
|
|
Requires: locales-es
|
2012-02-01 20:50:12 +04:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2016-12-06 22:34:38 +10:00
|
|
|
%description doc-es
|
2017-01-13 16:46:44 +10:00
|
|
|
Documentation and tutorials for KiCad in Spanish.
|
2012-02-01 20:50:12 +04:00
|
|
|
|
2015-04-02 16:22:59 +03:00
|
|
|
%files doc-es
|
|
|
|
%{_docdir}/%{name}/help/es
|
2014-03-07 15:09:56 +11:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
2016-12-06 22:34:38 +10:00
|
|
|
%package doc-fr
|
2015-04-02 16:22:59 +03:00
|
|
|
Summary: Documentation for KiCad in French
|
|
|
|
Group: Documentation
|
2015-04-02 22:40:06 +04:00
|
|
|
Requires: %{name}-doc = %{EVRD}
|
2015-04-02 16:22:59 +03:00
|
|
|
Requires: locales-fr
|
2012-02-01 20:50:12 +04:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2016-12-06 22:34:38 +10:00
|
|
|
%description doc-fr
|
2017-01-13 16:46:44 +10:00
|
|
|
Documentation and tutorials for KiCad in French.
|
2012-02-01 20:50:12 +04:00
|
|
|
|
2015-04-02 16:22:59 +03:00
|
|
|
%files doc-fr
|
|
|
|
%{_docdir}/%{name}/help/fr
|
2014-03-07 15:09:56 +11:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
2016-12-06 22:34:38 +10:00
|
|
|
%package doc-it
|
2015-04-02 16:22:59 +03:00
|
|
|
Summary: Documentation for KiCad in Italian
|
|
|
|
Group: Documentation
|
2015-04-02 22:40:06 +04:00
|
|
|
Requires: %{name}-doc = %{EVRD}
|
2015-04-02 16:22:59 +03:00
|
|
|
Requires: locales-it
|
2012-02-01 20:50:12 +04:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2016-12-06 22:34:38 +10:00
|
|
|
%description doc-it
|
2017-01-13 16:46:44 +10:00
|
|
|
Documentation and tutorials for KiCad in Italian.
|
2012-02-01 20:50:12 +04:00
|
|
|
|
2015-04-02 16:22:59 +03:00
|
|
|
%files doc-it
|
|
|
|
%{_docdir}/%{name}/help/it
|
2014-03-07 15:09:56 +11:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
2016-12-06 22:34:38 +10:00
|
|
|
%package doc-ja
|
2015-04-02 16:22:59 +03:00
|
|
|
Summary: Documentation for KiCad in Japanese
|
|
|
|
Group: Documentation
|
2015-04-02 22:40:06 +04:00
|
|
|
Requires: %{name}-doc = %{EVRD}
|
2015-04-02 16:22:59 +03:00
|
|
|
Requires: locales-ja
|
2012-02-01 20:50:12 +04:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2016-12-06 22:34:38 +10:00
|
|
|
%description doc-ja
|
2017-01-13 16:46:44 +10:00
|
|
|
Documentation and tutorials for KiCad in Japanese.
|
2012-02-01 20:50:12 +04:00
|
|
|
|
2015-04-02 16:22:59 +03:00
|
|
|
%files doc-ja
|
|
|
|
%{_docdir}/%{name}/help/ja
|
2014-03-07 15:09:56 +11:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
2017-01-13 16:46:44 +10:00
|
|
|
%package doc-nl
|
|
|
|
Summary: Documentation for KiCad in Dutch
|
2015-04-02 16:22:59 +03:00
|
|
|
Group: Documentation
|
2015-04-02 22:40:06 +04:00
|
|
|
Requires: %{name}-doc = %{EVRD}
|
2017-01-13 16:46:44 +10:00
|
|
|
Requires: locales-nl
|
2012-02-01 20:50:12 +04:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2017-01-13 16:46:44 +10:00
|
|
|
%description doc-nl
|
|
|
|
Documentation and tutorials for KiCad in Dutch.
|
2012-02-01 20:50:12 +04:00
|
|
|
|
2017-01-13 16:46:44 +10:00
|
|
|
%files doc-nl
|
|
|
|
%{_docdir}/%{name}/help/nl
|
2014-03-07 15:09:56 +11:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
2017-01-13 16:46:44 +10:00
|
|
|
%package doc-pl
|
|
|
|
Summary: Documentation for KiCad in Polish
|
2015-04-02 16:22:59 +03:00
|
|
|
Group: Documentation
|
2015-04-02 22:40:06 +04:00
|
|
|
Requires: %{name}-doc = %{EVRD}
|
2017-01-13 16:46:44 +10:00
|
|
|
Requires: locales-pl
|
2012-02-01 20:50:12 +04:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2017-01-13 16:46:44 +10:00
|
|
|
%description doc-pl
|
|
|
|
Documentation and tutorials for KiCad in Polish
|
2012-02-01 20:50:12 +04:00
|
|
|
|
2017-01-13 16:46:44 +10:00
|
|
|
%files doc-pl
|
|
|
|
%{_docdir}/%{name}/help/pl
|
2014-03-07 15:09:56 +11:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
2016-12-06 22:34:38 +10:00
|
|
|
%package doc-ru
|
2015-04-02 16:22:59 +03:00
|
|
|
Summary: Documentation for KiCad in Russian
|
|
|
|
Group: Documentation
|
2015-04-02 22:40:06 +04:00
|
|
|
Requires: %{name}-doc = %{EVRD}
|
2015-04-02 16:22:59 +03:00
|
|
|
Requires: locales-ru
|
2012-02-01 20:50:12 +04:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2016-12-06 22:34:38 +10:00
|
|
|
%description doc-ru
|
2017-01-13 16:46:44 +10:00
|
|
|
Documentation and tutorials for KiCad in Russian.
|
2012-02-01 20:50:12 +04:00
|
|
|
|
2015-04-02 16:22:59 +03:00
|
|
|
%files doc-ru
|
|
|
|
%{_docdir}/%{name}/help/ru
|
2014-03-07 15:09:56 +11:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
2015-04-02 16:22:59 +03:00
|
|
|
%prep
|
2017-01-13 16:46:44 +10:00
|
|
|
%setup -q -a1 -a2 -a3
|
2012-02-01 20:50:12 +04:00
|
|
|
|
2017-01-13 16:46:44 +10:00
|
|
|
%patch0 -p0
|
|
|
|
%patch1 -p0
|
2015-04-02 16:22:59 +03:00
|
|
|
%patch2 -p1
|
2012-02-01 20:50:12 +04:00
|
|
|
|
2015-04-02 16:22:59 +03:00
|
|
|
#multilibs
|
2017-01-13 16:46:44 +10:00
|
|
|
%ifarch x86_64
|
|
|
|
sed -i "s|KICAD_PLUGINS lib/kicad/plugins|KICAD_PLUGINS lib64/kicad/plugins|" CMakeLists.txt
|
2015-04-02 16:22:59 +03:00
|
|
|
%endif
|
2012-02-01 20:50:12 +04:00
|
|
|
|
2015-04-02 16:22:59 +03:00
|
|
|
%build
|
|
|
|
# Symbols libraries
|
2017-01-13 16:46:44 +10:00
|
|
|
pushd %{libname}-%{version}
|
|
|
|
%cmake \
|
|
|
|
-DKICAD_STABLE_VERSION:BOOL=ON \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
|
|
%make
|
2015-04-02 16:22:59 +03:00
|
|
|
popd
|
2012-02-01 20:50:12 +04:00
|
|
|
|
2017-01-13 16:46:44 +10:00
|
|
|
# Build kicad-i18n
|
|
|
|
pushd %{i18nname}-%{version}
|
|
|
|
%cmake \
|
|
|
|
-DKICAD_STABLE_VERSION:BOOL=ON \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DKICAD_I18N_UNIX_STRICT_PATH=ON
|
|
|
|
%make
|
|
|
|
popd
|
2012-02-01 20:50:12 +04:00
|
|
|
|
2017-01-13 16:46:44 +10:00
|
|
|
# Build kicad-doc
|
|
|
|
pushd %{docname}-%{version}
|
|
|
|
%cmake \
|
|
|
|
-DKICAD_STABLE_VERSION:BOOL=ON \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DBUILD_FORMATS=html
|
|
|
|
%make
|
|
|
|
popd
|
2014-03-07 15:09:56 +11:00
|
|
|
|
2017-01-13 16:46:44 +10:00
|
|
|
# Build kicad
|
|
|
|
%cmake \
|
|
|
|
-DBUILD_SHARED_LIBS:BOOL=OFF \
|
|
|
|
-DKICAD_STABLE_VERSION:BOOL=ON \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DKICAD_SKIP_BOOST=ON \
|
|
|
|
-DKICAD_REPO_NAME=stable \
|
|
|
|
-DKICAD_BUILD_VERSION=%{version} \
|
|
|
|
-DBUILD_GITHUB_PLUGIN=ON \
|
|
|
|
-DKICAD_SCRIPTING=ON \
|
|
|
|
-DKICAD_SCRIPTING_MODULES=ON \
|
|
|
|
-DKICAD_SCRIPTING_WXPYTHON=OFF
|
|
|
|
%make VERBOSE=1
|
2014-03-07 15:09:56 +11:00
|
|
|
|
2015-04-02 16:22:59 +03:00
|
|
|
%install
|
|
|
|
%makeinstall_std -C build
|
|
|
|
|
|
|
|
for desktopfile in %{buildroot}%{_datadir}/applications/*.desktop ; do
|
2017-01-13 16:46:44 +10:00
|
|
|
desktop-file-install \
|
|
|
|
--dir %{buildroot}%{_datadir}/applications \
|
|
|
|
--remove-category Development \
|
|
|
|
--delete-original \
|
|
|
|
${desktopfile}
|
2015-04-02 16:22:59 +03:00
|
|
|
done
|
2012-02-01 20:50:12 +04:00
|
|
|
|
2017-01-13 16:46:44 +10:00
|
|
|
# Localization
|
|
|
|
pushd %{i18nname}-%{version}
|
|
|
|
%makeinstall_std -C build
|
|
|
|
popd
|
|
|
|
|
2015-04-02 16:22:59 +03:00
|
|
|
# Symbols libraries
|
2017-01-13 16:46:44 +10:00
|
|
|
pushd %{libname}-%{version}
|
2015-04-02 16:22:59 +03:00
|
|
|
%makeinstall_std -C build
|
2012-02-01 20:50:12 +04:00
|
|
|
popd
|
|
|
|
|
2017-01-13 16:46:44 +10:00
|
|
|
# Install template
|
2015-04-02 16:22:59 +03:00
|
|
|
install -d %{buildroot}%{_datadir}/%{name}/template
|
|
|
|
install -m 644 template/%{name}.pro %{buildroot}%{_datadir}/%{name}/template
|
2012-02-01 20:50:12 +04:00
|
|
|
|
2015-04-02 16:22:59 +03:00
|
|
|
# Footprints
|
2017-01-13 16:46:44 +10:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}/modules
|
|
|
|
for S in %{sources}; do
|
|
|
|
P=$(basename $S |sed -n 's/\.pretty-.*/.pretty/p')
|
|
|
|
[ "$P" ] || continue
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}/modules/$P
|
|
|
|
tar xzf $S --strip-components=1 -C %{buildroot}%{_datadir}/%{name}/modules/$P
|
|
|
|
done
|
2015-04-02 16:22:59 +03:00
|
|
|
ln -f %{buildroot}%{_datadir}/%{name}/template/fp-lib-table{.for-pretty,}
|
2012-02-01 20:50:12 +04:00
|
|
|
|
2017-01-13 16:46:44 +10:00
|
|
|
# Install kicad-doc
|
|
|
|
pushd %{docname}-%{version}
|
|
|
|
%makeinstall_std -C build
|
|
|
|
popd
|
2012-02-01 20:50:12 +04:00
|
|
|
|
2015-04-02 16:22:59 +03:00
|
|
|
%find_lang %{name}
|
2012-02-01 20:50:12 +04:00
|
|
|
|