kicad/kicad.spec

1065 lines
46 KiB
RPMSpec
Raw Normal View History

2020-01-30 23:25:03 +03:00
%define Werror_cflags %{nil}
2021-01-18 09:50:24 +03:00
%define ver2020 5.1.7
2020-01-30 23:25:03 +03:00
%define major 2.0.0
%define libkicad_3dsg %mklibname kicad_3dsg %{major}
Summary: EDA software suite for creation of schematic diagrams and PCBs
Name: kicad
2021-01-18 09:50:24 +03:00
Version: 5.1.9
2023-02-18 19:44:22 +00:00
Release: 2
Epoch: 1
License: GPLv2+
Group: Sciences/Computer science
2020-01-30 23:25:03 +03:00
Url: http://www.kicad-pcb.org
2021-01-18 09:50:24 +03:00
Source0: https://gitlab.com/kicad/code/kicad/-/archive/%{version}/%{name}-%{version}.tar.gz
Source1: https://gitlab.com/kicad/services/kicad-doc/-/archive/%{version}/%{name}-doc-%{version}.tar.gz
Source2: https://gitlab.com/kicad/libraries/kicad-symbols/-/archive/%{version}/%{name}-symbols-%{version}.tar.gz
Source3: https://gitlab.com/kicad/code/kicad-i18n/-/archive/%{version}/%{name}-i18n-%{version}.tar.gz
Source4: https://gitlab.com/kicad/libraries/kicad-footprints/-/archive/%{version}/%{name}-footprints-%{version}.tar.gz
Source5: https://gitlab.com/kicad/libraries/kicad-packages3D/-/archive/%{version}/%{name}-packages3D-%{version}.tar.gz
Source6: https://gitlab.com/kicad/libraries/kicad-packages3D-source/-/archive/%{ver2020}/%{name}-packages3D-source-%{ver2020}.tar.gz
Source8: https://gitlab.com/kicad/libraries/kicad-templates/-/archive/%{version}/%{name}-templates-%{version}.tar.gz
2020-01-30 23:25:03 +03:00
## Old modules, archived
# 3d-modules
Source9: https://github.com/KiCad/packages3D/archive/packages3D-4.0.7.tar.gz
Source10: https://github.com/KiCad/packages3D-source/archive/packages3D-source-4.0.7.tar.gz
# modules
Source11: https://github.com/KiCad/Air_Coils_SML_NEOSID.pretty/archive/Air_Coils_SML_NEOSID.pretty-4.0.6.tar.gz
Source12: https://github.com/KiCad/Choke_Axial_ThroughHole.pretty/archive/Choke_Axial_ThroughHole.pretty-4.0.6.tar.gz
Source13: https://github.com/KiCad/Choke_Common-Mode_Wurth.pretty/archive/Choke_Common-Mode_Wurth.pretty-4.0.6.tar.gz
Source14: https://github.com/KiCad/Choke_Radial_ThroughHole.pretty/archive/Choke_Radial_ThroughHole.pretty-4.0.6.tar.gz
Source15: https://github.com/KiCad/Choke_SMD.pretty/archive/Choke_SMD.pretty-4.0.6.tar.gz
Source16: https://github.com/KiCad/Choke_Toroid_ThroughHole.pretty/archive/Choke_Toroid_ThroughHole.pretty-4.0.6.tar.gz
Source17: https://github.com/KiCad/Filters_HF_Coils_NEOSID.pretty/archive/Filters_HF_Coils_NEOSID.pretty-4.0.6.tar.gz
Source18: https://github.com/KiCad/Inductors_NEOSID.pretty/archive/Inductors_NEOSID.pretty-4.0.6.tar.gz
Source19: https://github.com/KiCad/Inductors.pretty/archive/Inductors.pretty-4.0.6.tar.gz
Source20: https://github.com/KiCad/Mechanical_Sockets.pretty/archive/Mechanical_Sockets.pretty-4.0.6.tar.gz
Source21: https://github.com/KiCad/NF-Transformers_ETAL.pretty/archive/NF-Transformers_ETAL.pretty-4.0.6.tar.gz
Source22: https://github.com/KiCad/Oddities.pretty/archive/Oddities.pretty-4.0.6.tar.gz
Source23: https://github.com/KiCad/Sockets_MOLEX_KK-System.pretty/archive/Sockets_MOLEX_KK-System.pretty-4.0.6.tar.gz
Source24: https://github.com/KiCad/Transformers_CHK.pretty/archive/Transformers_CHK.pretty-4.0.6.tar.gz
Source25: https://github.com/KiCad/Transformers_SMPS_ThroughHole.pretty/archive/Transformers_SMPS_ThroughHole.pretty-4.0.6.tar.gz
Source26: https://github.com/KiCad/Battery_Holders.pretty/archive/Battery_Holders.pretty-4.0.7.tar.gz
Source27: https://github.com/KiCad/Buttons_Switches_SMD.pretty/archive/Buttons_Switches_SMD.pretty-4.0.7.tar.gz
Source28: https://github.com/KiCad/Buttons_Switches_THT.pretty/archive/Buttons_Switches_THT.pretty-4.0.7.tar.gz
Source29: https://github.com/KiCad/Buzzers_Beepers.pretty/archive/Buzzers_Beepers.pretty-4.0.7.tar.gz
Source30: https://github.com/KiCad/Capacitors_SMD.pretty/archive/Capacitors_SMD.pretty-4.0.7.tar.gz
Source31: https://github.com/KiCad/Capacitors_Tantalum_SMD.pretty/archive/Capacitors_Tantalum_SMD.pretty-4.0.7.tar.gz
Source32: https://github.com/KiCad/Capacitors_THT.pretty/archive/Capacitors_THT.pretty-4.0.7.tar.gz
Source33: https://github.com/KiCad/Connectors_Card.pretty/archive/Connectors_Card.pretty-4.0.7.tar.gz
Source34: https://github.com/KiCad/Connectors_Harwin.pretty/archive/Connectors_Harwin.pretty-4.0.7.tar.gz
Source35: https://github.com/KiCad/Connectors_HDMI.pretty/archive/Connectors_HDMI.pretty-4.0.7.tar.gz
Source36: https://github.com/KiCad/Connectors_Hirose.pretty/archive/Connectors_Hirose.pretty-4.0.7.tar.gz
Source37: https://github.com/KiCad/Connectors_IEC_DIN.pretty/archive/Connectors_IEC_DIN.pretty-4.0.7.tar.gz
Source38: https://github.com/KiCad/Connectors_JAE.pretty/archive/Connectors_JAE.pretty-4.0.7.tar.gz
Source39: https://github.com/KiCad/Connectors_JST.pretty/archive/Connectors_JST.pretty-4.0.7.tar.gz
Source40: https://github.com/KiCad/Connectors_Mini-Universal.pretty/archive/Connectors_Mini-Universal.pretty-4.0.7.tar.gz
Source41: https://github.com/KiCad/Connectors_Molex.pretty/archive/Connectors_Molex.pretty-4.0.7.tar.gz
Source42: https://github.com/KiCad/Connectors_Multicomp.pretty/archive/Connectors_Multicomp.pretty-4.0.7.tar.gz
Source43: https://github.com/KiCad/Connectors_Phoenix.pretty/archive/Connectors_Phoenix.pretty-4.0.7.tar.gz
Source44: https://github.com/KiCad/Connectors_Samtec.pretty/archive/Connectors_Samtec.pretty-4.0.7.tar.gz
Source45: https://github.com/KiCad/Connectors_TE-Connectivity.pretty/archive/Connectors_TE-Connectivity.pretty-4.0.7.tar.gz
Source46: https://github.com/KiCad/Connectors_Terminal_Blocks.pretty/archive/Connectors_Terminal_Blocks.pretty-4.0.7.tar.gz
Source47: https://github.com/KiCad/Connectors_WAGO.pretty/archive/Connectors_WAGO.pretty-4.0.7.tar.gz
Source48: https://github.com/KiCad/Connectors.pretty/archive/Connectors.pretty-4.0.7.tar.gz
Source49: https://github.com/KiCad/Converters_DCDC_ACDC.pretty/archive/Converters_DCDC_ACDC.pretty-4.0.7.tar.gz
Source50: https://github.com/KiCad/Crystals.pretty/archive/Crystals.pretty-4.0.7.tar.gz
Source51: https://github.com/KiCad/Diodes_SMD.pretty/archive/Diodes_SMD.pretty-4.0.7.tar.gz
Source52: https://github.com/KiCad/Diodes_THT.pretty/archive/Diodes_THT.pretty-4.0.7.tar.gz
Source53: https://github.com/KiCad/Displays_7-Segment.pretty/archive/Displays_7-Segment.pretty-4.0.7.tar.gz
Source54: https://github.com/KiCad/Displays.pretty/archive/Displays.pretty-4.0.7.tar.gz
Source55: https://github.com/KiCad/Enclosures.pretty/archive/Enclosures.pretty-4.0.7.tar.gz
Source56: https://github.com/KiCad/EuroBoard_Outline.pretty/archive/EuroBoard_Outline.pretty-4.0.7.tar.gz
Source57: https://github.com/KiCad/Fiducials.pretty/archive/Fiducials.pretty-4.0.7.tar.gz
Source58: https://github.com/KiCad/Fuse_Holders_and_Fuses.pretty/archive/Fuse_Holders_and_Fuses.pretty-4.0.7.tar.gz
Source59: https://github.com/KiCad/Hall-Effect_Transducers_LEM.pretty/archive/Hall-Effect_Transducers_LEM.pretty-4.0.7.tar.gz
Source60: https://github.com/KiCad/Heatsinks.pretty/archive/Heatsinks.pretty-4.0.7.tar.gz
Source61: https://github.com/KiCad/Housings_BGA.pretty/archive/Housings_BGA.pretty-4.0.7.tar.gz
Source62: https://github.com/KiCad/Housings_CSP.pretty/archive/Housings_CSP.pretty-4.0.7.tar.gz
Source63: https://github.com/KiCad/Housings_DFN_QFN.pretty/archive/Housings_DFN_QFN.pretty-4.0.7.tar.gz
Source64: https://github.com/KiCad/Housings_DIP.pretty/archive/Housings_DIP.pretty-4.0.7.tar.gz
Source65: https://github.com/KiCad/Housings_LCC.pretty/archive/Housings_LCC.pretty-4.0.7.tar.gz
Source66: https://github.com/KiCad/Housings_LGA.pretty/archive/Housings_LGA.pretty-4.0.7.tar.gz
Source67: https://github.com/KiCad/Housings_PGA.pretty/archive/Housings_PGA.pretty-4.0.7.tar.gz
Source68: https://github.com/KiCad/Housings_QFP.pretty/archive/Housings_QFP.pretty-4.0.7.tar.gz
Source69: https://github.com/KiCad/Housings_SIP.pretty/archive/Housings_SIP.pretty-4.0.7.tar.gz
Source70: https://github.com/KiCad/Housings_SOIC.pretty/archive/Housings_SOIC.pretty-4.0.7.tar.gz
Source71: https://github.com/KiCad/Housings_SON.pretty/archive/Housings_SON.pretty-4.0.7.tar.gz
Source72: https://github.com/KiCad/Housings_SSOP.pretty/archive/Housings_SSOP.pretty-4.0.7.tar.gz
Source73: https://github.com/KiCad/Inductors_SMD.pretty/archive/Inductors_SMD.pretty-4.0.7.tar.gz
Source74: https://github.com/KiCad/Inductors_THT.pretty/archive/Inductors_THT.pretty-4.0.7.tar.gz
Source75: https://github.com/KiCad/IR-DirectFETs.pretty/archive/IR-DirectFETs.pretty-4.0.7.tar.gz
Source76: https://github.com/KiCad/LEDs.pretty/archive/LEDs.pretty-4.0.7.tar.gz
Source77: https://github.com/KiCad/Measurement_Points.pretty/archive/Measurement_Points.pretty-4.0.7.tar.gz
Source78: https://github.com/KiCad/Measurement_Scales.pretty/archive/Measurement_Scales.pretty-4.0.7.tar.gz
Source79: https://github.com/KiCad/Microwave.pretty/archive/Microwave.pretty-4.0.7.tar.gz
Source80: https://github.com/KiCad/Modules.pretty/archive/Modules.pretty-4.0.7.tar.gz
Source81: https://github.com/KiCad/Mounting_Holes.pretty/archive/Mounting_Holes.pretty-4.0.7.tar.gz
Source82: https://github.com/KiCad/Opto-Devices.pretty/archive/Opto-Devices.pretty-4.0.7.tar.gz
Source83: https://github.com/KiCad/Oscillators.pretty/archive/Oscillators.pretty-4.0.7.tar.gz
Source84: https://github.com/KiCad/PFF_PSF_PSS_Leadforms.pretty/archive/PFF_PSF_PSS_Leadforms.pretty-4.0.7.tar.gz
Source85: https://github.com/KiCad/Pin_Headers.pretty/archive/Pin_Headers.pretty-4.0.7.tar.gz
Source86: https://github.com/KiCad/Potentiometers.pretty/archive/Potentiometers.pretty-4.0.7.tar.gz
Source87: https://github.com/KiCad/Power_Integrations.pretty/archive/Power_Integrations.pretty-4.0.7.tar.gz
Source88: https://github.com/KiCad/Relays_SMD.pretty/archive/Relays_SMD.pretty-4.0.7.tar.gz
Source89: https://github.com/KiCad/Relays_THT.pretty/archive/Relays_THT.pretty-4.0.7.tar.gz
Source90: https://github.com/KiCad/Resistors_SMD.pretty/archive/Resistors_SMD.pretty-4.0.7.tar.gz
Source91: https://github.com/KiCad/Resistors_THT.pretty/archive/Resistors_THT.pretty-4.0.7.tar.gz
Source92: https://github.com/KiCad/Resistors_Universal.pretty/archive/Resistors_Universal.pretty-4.0.7.tar.gz
Source93: https://github.com/KiCad/RF_Antennas.pretty/archive/RF_Antennas.pretty-4.0.7.tar.gz
Source94: https://github.com/KiCad/RF_Modules.pretty/archive/RF_Modules.pretty-4.0.7.tar.gz
Source95: https://github.com/KiCad/Shielding_Cabinets.pretty/archive/Shielding_Cabinets.pretty-4.0.7.tar.gz
Source96: https://github.com/KiCad/SMD_Packages.pretty/archive/SMD_Packages.pretty-4.0.7.tar.gz
Source97: https://github.com/KiCad/Socket_Strips.pretty/archive/Socket_Strips.pretty-4.0.7.tar.gz
Source98: https://github.com/KiCad/Sockets.pretty/archive/Sockets.pretty-4.0.7.tar.gz
Source99: https://github.com/KiCad/Symbols.pretty/archive/Symbols.pretty-4.0.7.tar.gz
Source100: https://github.com/KiCad/TerminalBlocks_Phoenix.pretty/archive/TerminalBlocks_Phoenix.pretty-4.0.7.tar.gz
Source101: https://github.com/KiCad/TerminalBlocks_WAGO.pretty/archive/TerminalBlocks_WAGO.pretty-4.0.7.tar.gz
Source102: https://github.com/KiCad/TO_SOT_Packages_SMD.pretty/archive/TO_SOT_Packages_SMD.pretty-4.0.7.tar.gz
Source103: https://github.com/KiCad/TO_SOT_Packages_THT.pretty/archive/TO_SOT_Packages_THT.pretty-4.0.7.tar.gz
Source104: https://github.com/KiCad/Transformers_SMD.pretty/archive/Transformers_SMD.pretty-4.0.7.tar.gz
Source105: https://github.com/KiCad/Transformers_THT.pretty/archive/Transformers_THT.pretty-4.0.7.tar.gz
Source106: https://github.com/KiCad/Transistors_OldSowjetAera.pretty/archive/Transistors_OldSowjetAera.pretty-4.0.7.tar.gz
Source107: https://github.com/KiCad/Valves.pretty/archive/Valves.pretty-4.0.7.tar.gz
Source108: https://github.com/KiCad/Varistors.pretty/archive/Varistors.pretty-4.0.7.tar.gz
Source109: https://github.com/KiCad/Wire_Connections_Bridges.pretty/archive/Wire_Connections_Bridges.pretty-4.0.7.tar.gz
Source110: https://github.com/KiCad/Wire_Pads.pretty/archive/Wire_Pads.pretty-4.0.7.tar.gz
Source200: fp-lib-table-modules-nothing-%{version}
Source201: fp-lib-table-modules-%{version}
Source202: fp-lib-table-modules-all-%{version}
Source203: fp-lib-table-modules-old-%{version}
# Help from previous version
Source300: doc-nl-5.0.2.tar.xz
Source1000: README.urpmi
Patch0: kicad-5.0.1-set-cxx-version.patch
Patch1: kicad-5.1.5-nostrip.patch
BuildRequires: a2x
BuildRequires: asciidoc
BuildRequires: cmake
2020-01-30 23:25:03 +03:00
BuildRequires: dblatex
BuildRequires: desktop-file-utils
2020-01-30 23:25:03 +03:00
BuildRequires: doxygen
BuildRequires: git
BuildRequires: perl(Unicode::GCString)
BuildRequires: po4a
BuildRequires: python-wxpython3.0
BuildRequires: python-wxpython3.0-wxversion
BuildRequires: source-highlight
BuildRequires: swig
BuildRequires: boost-devel
BuildRequires: glm-devel
BuildRequires: oce-devel
BuildRequires: wxgtku3.0-devel
BuildRequires: wxpython3.0-devel
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glew)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(ngspice)
2023-02-18 19:44:22 +00:00
#BuildRequires: pkgconfig(openssl)
BuildRequires: openssl-devel
2020-01-30 23:25:03 +03:00
BuildRequires: pkgconfig(python)
BuildRequires: pkgconfig(libcurl)
Requires: electronics-menu
Requires: python-wxpython3.0
2020-02-22 22:50:19 +03:00
# python-wxpython3.0-wxversion conflicting with youtube-dl-gui and etc
Requires: wxPythonGTK-wxversion
2020-01-30 23:25:03 +03:00
Requires: %{libkicad_3dsg} = %{EVRD}
Requires: %{name}-doc = %{EVRD}
Suggests: %{name}-doc-ru = %{EVRD}
Suggests: %{name}-modules = %{EVRD}
Suggests: %{name}-modules-packages3d = %{EVRD}
%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
%description
2020-01-30 23:25:03 +03:00
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
2021-01-18 09:50:24 +03:00
%{_bindir}/*
2020-01-30 23:25:03 +03:00
%dir %{_datadir}/%{name}/fp-lib-tables
%dir %{_datadir}/%{name}/modules
%dir %{_datadir}/%{name}/modules/packages3d
%{_datadir}/%{name}/demos
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/fp-lib-tables/fp-lib-table-modules-%{version}
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/fp-lib-tables/fp-lib-table-modules-all-%{version}
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/fp-lib-tables/fp-lib-table-modules-nothing-%{version}
%{_datadir}/%{name}/fp-lib-tables/fp-lib-table-modules-old-%{version}
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/library
%{_datadir}/%{name}/plugins
%{_datadir}/%{name}/scripting
%{_datadir}/%{name}/template
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/*.*
%{_datadir}/icons/hicolor/*/mimetypes/application-x-*.*
%{_datadir}/mime/packages/%{name}-gerbers.xml
%{_datadir}/mime/packages/%{name}-%{name}.xml
%{_docdir}/%{name}/*.txt
%{_docdir}/%{name}/%{name}-footprints-*.md
%{_docdir}/%{name}/%{name}-i18n-*.md
%{_docdir}/%{name}/%{name}-symbols-*.md
%{_docdir}/%{name}/%{name}-templates-*.md
%{_libdir}/%{name}/plugins/3d/libs3d_plugin_*.so
%{py_platsitedir}/wx-3.0-gtk2/_pcbnew.so
%{py_platsitedir}/wx-3.0-gtk2/pcbnew.*
2021-01-18 09:50:24 +03:00
%posttrans
echo "
2021-01-18 09:50:24 +03:00
If you need it, install any of the packages:
kicad-modules
kicad-modules-old
kicad-modules-packages3d
kicad-modules-packages3d-old
and rename or delete the file
~/.config/kicad/fp-lib-table
=== Russian ===
Если требуется, доустановите любой из пакетов:
kicad-modules
kicad-modules-old
kicad-modules-packages3d
kicad-modules-packages3d-old
и переименуйте или удалите файл
~/.config/kicad/fp-lib-table
"
2020-01-30 23:25:03 +03:00
#----------------------------------------------------------------------------
2020-01-30 23:25:03 +03:00
%package -n %{libkicad_3dsg}
Summary: KiCads scene graph library for 3D Plugins
Group: System/Libraries
Provides: libkicad_3dsg.so.2.0.0 = %{EVRD}
Requires: %{name} = %{EVRD}
2020-01-30 23:25:03 +03:00
%description -n %{libkicad_3dsg}
It is KiCads scene graph library kicad_3dsg for 3D plugins.
All plugins which support model visualization must translate
the model data into a scene graph via this library.
2020-01-30 23:25:03 +03:00
%files -n %{libkicad_3dsg}
%{_libdir}/libkicad_3dsg.so.2.0.0
2020-01-30 23:25:03 +03:00
#----------------------------------------------------------------------------
2020-01-30 23:25:03 +03:00
%package modules
Summary: Pretty modules for KiCad
Group: Sciences/Computer science
BuildArch: noarch
2020-01-30 23:25:03 +03:00
Requires: %{name} = %{EVRD}
%description modules
All new 5.1 *.pretty modules for KiCad.
%files modules
%{_datadir}/%{name}/modules/Battery.pretty
%{_datadir}/%{name}/modules/Button_Switch_Keyboard.pretty
%{_datadir}/%{name}/modules/Button_Switch_SMD.pretty
%{_datadir}/%{name}/modules/Button_Switch_THT.pretty
%{_datadir}/%{name}/modules/Buzzer_Beeper.pretty
%{_datadir}/%{name}/modules/Calibration_Scale.pretty
%{_datadir}/%{name}/modules/Capacitor_SMD.pretty
%{_datadir}/%{name}/modules/Capacitor_Tantalum_SMD.pretty
%{_datadir}/%{name}/modules/Capacitor_THT.pretty
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/Connector_AMASS.pretty
%{_datadir}/%{name}/modules/Connector_Amphenol.pretty
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/Connector_Audio.pretty
%{_datadir}/%{name}/modules/Connector_BarrelJack.pretty
%{_datadir}/%{name}/modules/Connector_Card.pretty
%{_datadir}/%{name}/modules/Connector_Coaxial.pretty
%{_datadir}/%{name}/modules/Connector_DIN.pretty
%{_datadir}/%{name}/modules/Connector_Dsub.pretty
%{_datadir}/%{name}/modules/Connector_FFC-FPC.pretty
%{_datadir}/%{name}/modules/Connector_Harwin.pretty
%{_datadir}/%{name}/modules/Connector_HDMI.pretty
%{_datadir}/%{name}/modules/Connector_Hirose.pretty
%{_datadir}/%{name}/modules/Connector_IDC.pretty
%{_datadir}/%{name}/modules/Connector_JAE.pretty
%{_datadir}/%{name}/modules/Connector_JST.pretty
%{_datadir}/%{name}/modules/Connector_Molex.pretty
%{_datadir}/%{name}/modules/Connector_Multicomp.pretty
%{_datadir}/%{name}/modules/Connector_PCBEdge.pretty
%{_datadir}/%{name}/modules/Connector_Phoenix_GMSTB.pretty
%{_datadir}/%{name}/modules/Connector_Phoenix_MC_HighVoltage.pretty
%{_datadir}/%{name}/modules/Connector_Phoenix_MC.pretty
%{_datadir}/%{name}/modules/Connector_Phoenix_MSTB.pretty
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/Connector_Pin.pretty
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/Connector_PinHeader_1.00mm.pretty
%{_datadir}/%{name}/modules/Connector_PinHeader_1.27mm.pretty
%{_datadir}/%{name}/modules/Connector_PinHeader_2.00mm.pretty
%{_datadir}/%{name}/modules/Connector_PinHeader_2.54mm.pretty
%{_datadir}/%{name}/modules/Connector_PinSocket_1.00mm.pretty
%{_datadir}/%{name}/modules/Connector_PinSocket_1.27mm.pretty
%{_datadir}/%{name}/modules/Connector_PinSocket_2.00mm.pretty
%{_datadir}/%{name}/modules/Connector_PinSocket_2.54mm.pretty
%{_datadir}/%{name}/modules/Connector_RJ.pretty
%{_datadir}/%{name}/modules/Connector_Samtec_HLE_SMD.pretty
%{_datadir}/%{name}/modules/Connector_Samtec_HLE_THT.pretty
%{_datadir}/%{name}/modules/Connector_Samtec.pretty
%{_datadir}/%{name}/modules/Connector_SATA_SAS.pretty
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/Connector_Stocko.pretty
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/Connector_TE-Connectivity.pretty
%{_datadir}/%{name}/modules/Connector_USB.pretty
%{_datadir}/%{name}/modules/Connector_Wago.pretty
%{_datadir}/%{name}/modules/Connector_Wire.pretty
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/Connector_Wuerth.pretty
%{_datadir}/%{name}/modules/Connector.pretty
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/Converter_ACDC.pretty
%{_datadir}/%{name}/modules/Converter_DCDC.pretty
%{_datadir}/%{name}/modules/Crystal.pretty
%{_datadir}/%{name}/modules/Diode_SMD.pretty
%{_datadir}/%{name}/modules/Diode_THT.pretty
%{_datadir}/%{name}/modules/Display_7Segment.pretty
%{_datadir}/%{name}/modules/Display.pretty
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/Ferrite_THT.pretty
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/Fiducial.pretty
%{_datadir}/%{name}/modules/Filter.pretty
%{_datadir}/%{name}/modules/Fuse.pretty
%{_datadir}/%{name}/modules/Heatsink.pretty
%{_datadir}/%{name}/modules/Inductor_SMD.pretty
%{_datadir}/%{name}/modules/Inductor_THT.pretty
%{_datadir}/%{name}/modules/Jumper.pretty
%{_datadir}/%{name}/modules/LED_SMD.pretty
%{_datadir}/%{name}/modules/LED_THT.pretty
%{_datadir}/%{name}/modules/Module.pretty
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/Mounting_Wuerth.pretty
%{_datadir}/%{name}/modules/MountingEquipment.pretty
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/MountingHole.pretty
%{_datadir}/%{name}/modules/NetTie.pretty
%{_datadir}/%{name}/modules/OptoDevice.pretty
%{_datadir}/%{name}/modules/Oscillator.pretty
%{_datadir}/%{name}/modules/Package_BGA.pretty
%{_datadir}/%{name}/modules/Package_CSP.pretty
%{_datadir}/%{name}/modules/Package_DFN_QFN.pretty
%{_datadir}/%{name}/modules/Package_DIP.pretty
%{_datadir}/%{name}/modules/Package_DirectFET.pretty
%{_datadir}/%{name}/modules/Package_LCC.pretty
%{_datadir}/%{name}/modules/Package_LGA.pretty
%{_datadir}/%{name}/modules/Package_QFP.pretty
%{_datadir}/%{name}/modules/Package_SIP.pretty
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/Package_SO_J-Lead.pretty
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/Package_SO.pretty
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/Package_SON.pretty
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/Package_TO_SOT_SMD.pretty
%{_datadir}/%{name}/modules/Package_TO_SOT_THT.pretty
%{_datadir}/%{name}/modules/Potentiometer_SMD.pretty
%{_datadir}/%{name}/modules/Potentiometer_THT.pretty
%{_datadir}/%{name}/modules/Relay_SMD.pretty
%{_datadir}/%{name}/modules/Relay_THT.pretty
%{_datadir}/%{name}/modules/Resistor_SMD.pretty
%{_datadir}/%{name}/modules/Resistor_THT.pretty
%{_datadir}/%{name}/modules/RF_Antenna.pretty
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/RF_Converter.pretty
%{_datadir}/%{name}/modules/RF_GPS.pretty
%{_datadir}/%{name}/modules/RF_GSM.pretty
%{_datadir}/%{name}/modules/RF_Mini-Circuits.pretty
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/RF_Module.pretty
%{_datadir}/%{name}/modules/RF_Shielding.pretty
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/RF_WiFi.pretty
%{_datadir}/%{name}/modules/RF.pretty
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/Rotary_Encoder.pretty
%{_datadir}/%{name}/modules/Sensor_Audio.pretty
%{_datadir}/%{name}/modules/Sensor_Current.pretty
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/Sensor_Distance.pretty
%{_datadir}/%{name}/modules/Sensor_Humidity.pretty
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/Sensor_Motion.pretty
%{_datadir}/%{name}/modules/Sensor_Pressure.pretty
%{_datadir}/%{name}/modules/Sensor_Voltage.pretty
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/Sensor.pretty
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/Socket.pretty
%{_datadir}/%{name}/modules/Symbol.pretty
%{_datadir}/%{name}/modules/TerminalBlock_4Ucon.pretty
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/TerminalBlock_Altech.pretty
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/TerminalBlock_Dinkle.pretty
%{_datadir}/%{name}/modules/TerminalBlock_MetzConnect.pretty
%{_datadir}/%{name}/modules/TerminalBlock_Philmore.pretty
%{_datadir}/%{name}/modules/TerminalBlock_Phoenix.pretty
%{_datadir}/%{name}/modules/TerminalBlock_RND.pretty
%{_datadir}/%{name}/modules/TerminalBlock_TE-Connectivity.pretty
%{_datadir}/%{name}/modules/TerminalBlock_WAGO.pretty
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/TerminalBlock_Wuerth.pretty
%{_datadir}/%{name}/modules/TerminalBlock.pretty
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/TestPoint.pretty
%{_datadir}/%{name}/modules/Transformer_SMD.pretty
%{_datadir}/%{name}/modules/Transformer_THT.pretty
%{_datadir}/%{name}/modules/Valve.pretty
%{_datadir}/%{name}/modules/Varistor.pretty
2021-01-18 09:50:24 +03:00
%posttrans modules
2020-01-30 23:25:03 +03:00
pushd %{_datadir}/%{name}/fp-lib-tables/
2021-01-18 09:50:24 +03:00
if [ -d %{_datadir}/%{name}/modules/Battery_Holders.pretty ]; then
cp -f fp-lib-table-modules-all-%{version} ../template/fp-lib-table
else
cp -f fp-lib-table-modules-%{version} ../template/fp-lib-table
2020-01-30 23:25:03 +03:00
fi
popd
2020-01-30 23:25:03 +03:00
%postun modules
2021-01-18 09:50:24 +03:00
if ! [ -d %{_datadir}/%{name}/fp-lib-tables ]; then exit 0; fi
2020-01-30 23:25:03 +03:00
pushd %{_datadir}/%{name}/fp-lib-tables/
2021-01-18 09:50:24 +03:00
if [ -d %{_datadir}/%{name}/modules/Battery_Holders.pretty ]; then
cp -f fp-lib-table-modules-old-%{version} ../template/fp-lib-table
else
cp -f fp-lib-table-modules-nothing-%{version} ../template/fp-lib-table
2020-01-30 23:25:03 +03:00
fi
popd
2020-01-30 23:25:03 +03:00
#----------------------------------------------------------------------------
2020-01-30 23:25:03 +03:00
%package modules-old
Summary: Packages3d modules for KiCad
Group: Sciences/Computer science
BuildArch: noarch
2020-01-30 23:25:03 +03:00
Requires: %{name} = %{EVRD}
%description modules-old
Old *.pretty modules for KiCad.
%files modules-old
%{_datadir}/%{name}/modules/Air_Coils_SML_NEOSID.pretty
%{_datadir}/%{name}/modules/Battery_Holders.pretty
%{_datadir}/%{name}/modules/Buttons_Switches_SMD.pretty
%{_datadir}/%{name}/modules/Buttons_Switches_THT.pretty
%{_datadir}/%{name}/modules/Buzzers_Beepers.pretty
%{_datadir}/%{name}/modules/Capacitors_SMD.pretty
%{_datadir}/%{name}/modules/Capacitors_Tantalum_SMD.pretty
%{_datadir}/%{name}/modules/Capacitors_THT.pretty
%{_datadir}/%{name}/modules/Choke_Axial_ThroughHole.pretty
%{_datadir}/%{name}/modules/Choke_Common-Mode_Wurth.pretty
%{_datadir}/%{name}/modules/Choke_Radial_ThroughHole.pretty
%{_datadir}/%{name}/modules/Choke_SMD.pretty
%{_datadir}/%{name}/modules/Choke_Toroid_ThroughHole.pretty
%{_datadir}/%{name}/modules/Connectors.pretty
%{_datadir}/%{name}/modules/Connectors_Card.pretty
%{_datadir}/%{name}/modules/Connectors_Harwin.pretty
%{_datadir}/%{name}/modules/Connectors_HDMI.pretty
%{_datadir}/%{name}/modules/Connectors_Hirose.pretty
%{_datadir}/%{name}/modules/Connectors_IEC_DIN.pretty
%{_datadir}/%{name}/modules/Connectors_JAE.pretty
%{_datadir}/%{name}/modules/Connectors_JST.pretty
%{_datadir}/%{name}/modules/Connectors_Mini-Universal.pretty
%{_datadir}/%{name}/modules/Connectors_Molex.pretty
%{_datadir}/%{name}/modules/Connectors_Multicomp.pretty
%{_datadir}/%{name}/modules/Connectors_Phoenix.pretty
%{_datadir}/%{name}/modules/Connectors_Samtec.pretty
%{_datadir}/%{name}/modules/Connectors_TE-Connectivity.pretty
%{_datadir}/%{name}/modules/Connectors_Terminal_Blocks.pretty
%{_datadir}/%{name}/modules/Connectors_WAGO.pretty
%{_datadir}/%{name}/modules/Converters_DCDC_ACDC.pretty
%{_datadir}/%{name}/modules/Crystals.pretty
%{_datadir}/%{name}/modules/Diodes_SMD.pretty
%{_datadir}/%{name}/modules/Diodes_THT.pretty
%{_datadir}/%{name}/modules/Displays.pretty
%{_datadir}/%{name}/modules/Displays_7-Segment.pretty
%{_datadir}/%{name}/modules/Enclosures.pretty
%{_datadir}/%{name}/modules/EuroBoard_Outline.pretty
%{_datadir}/%{name}/modules/Fiducials.pretty
%{_datadir}/%{name}/modules/Filters_HF_Coils_NEOSID.pretty
%{_datadir}/%{name}/modules/Fuse_Holders_and_Fuses.pretty
%{_datadir}/%{name}/modules/Hall-Effect_Transducers_LEM.pretty
%{_datadir}/%{name}/modules/Heatsinks.pretty
%{_datadir}/%{name}/modules/Housings_BGA.pretty
%{_datadir}/%{name}/modules/Housings_CSP.pretty
%{_datadir}/%{name}/modules/Housings_DFN_QFN.pretty
%{_datadir}/%{name}/modules/Housings_DIP.pretty
%{_datadir}/%{name}/modules/Housings_LCC.pretty
%{_datadir}/%{name}/modules/Housings_LGA.pretty
%{_datadir}/%{name}/modules/Housings_PGA.pretty
%{_datadir}/%{name}/modules/Housings_QFP.pretty
%{_datadir}/%{name}/modules/Housings_SIP.pretty
%{_datadir}/%{name}/modules/Housings_SOIC.pretty
%{_datadir}/%{name}/modules/Housings_SON.pretty
%{_datadir}/%{name}/modules/Housings_SSOP.pretty
%{_datadir}/%{name}/modules/Inductors.pretty
%{_datadir}/%{name}/modules/Inductors_NEOSID.pretty
%{_datadir}/%{name}/modules/Inductors_SMD.pretty
%{_datadir}/%{name}/modules/Inductors_THT.pretty
%{_datadir}/%{name}/modules/IR-DirectFETs.pretty
%{_datadir}/%{name}/modules/LEDs.pretty
%{_datadir}/%{name}/modules/Measurement_Points.pretty
%{_datadir}/%{name}/modules/Measurement_Scales.pretty
%{_datadir}/%{name}/modules/Mechanical_Sockets.pretty
%{_datadir}/%{name}/modules/Microwave.pretty
%{_datadir}/%{name}/modules/Modules.pretty
%{_datadir}/%{name}/modules/Mounting_Holes.pretty
%{_datadir}/%{name}/modules/NF-Transformers_ETAL.pretty
%{_datadir}/%{name}/modules/Oddities.pretty
%{_datadir}/%{name}/modules/Opto-Devices.pretty
%{_datadir}/%{name}/modules/Oscillators.pretty
%{_datadir}/%{name}/modules/PFF_PSF_PSS_Leadforms.pretty
%{_datadir}/%{name}/modules/Pin_Headers.pretty
%{_datadir}/%{name}/modules/Potentiometers.pretty
%{_datadir}/%{name}/modules/Power_Integrations.pretty
%{_datadir}/%{name}/modules/Relays_SMD.pretty
%{_datadir}/%{name}/modules/Relays_THT.pretty
%{_datadir}/%{name}/modules/Resistors_SMD.pretty
%{_datadir}/%{name}/modules/Resistors_THT.pretty
%{_datadir}/%{name}/modules/Resistors_Universal.pretty
%{_datadir}/%{name}/modules/RF_Antennas.pretty
%{_datadir}/%{name}/modules/RF_Modules.pretty
%{_datadir}/%{name}/modules/Shielding_Cabinets.pretty
%{_datadir}/%{name}/modules/SMD_Packages.pretty
%{_datadir}/%{name}/modules/Sockets_MOLEX_KK-System.pretty
%{_datadir}/%{name}/modules/Sockets.pretty
%{_datadir}/%{name}/modules/Socket_Strips.pretty
%{_datadir}/%{name}/modules/Symbols.pretty
%{_datadir}/%{name}/modules/TerminalBlocks_Phoenix.pretty
%{_datadir}/%{name}/modules/TerminalBlocks_WAGO.pretty
%{_datadir}/%{name}/modules/TO_SOT_Packages_SMD.pretty
%{_datadir}/%{name}/modules/TO_SOT_Packages_THT.pretty
%{_datadir}/%{name}/modules/Transformers_CHK.pretty
%{_datadir}/%{name}/modules/Transformers_SMD.pretty
%{_datadir}/%{name}/modules/Transformers_SMPS_ThroughHole.pretty
%{_datadir}/%{name}/modules/Transformers_THT.pretty
%{_datadir}/%{name}/modules/Transistors_OldSowjetAera.pretty
%{_datadir}/%{name}/modules/Valves.pretty
%{_datadir}/%{name}/modules/Varistors.pretty
%{_datadir}/%{name}/modules/Wire_Connections_Bridges.pretty
%{_datadir}/%{name}/modules/Wire_Pads.pretty
2021-01-18 09:50:24 +03:00
%posttrans modules-old
2020-01-30 23:25:03 +03:00
pushd %{_datadir}/%{name}/fp-lib-tables/
2021-01-18 09:50:24 +03:00
if [ -d %{_datadir}/%{name}/modules/Battery.pretty ]; then
cp -f fp-lib-table-modules-all-%{version} ../template/fp-lib-table
else
cp -f fp-lib-table-modules-old-%{version} ../template/fp-lib-table
2020-01-30 23:25:03 +03:00
fi
popd
2020-01-30 23:25:03 +03:00
%postun modules-old
2021-01-18 09:50:24 +03:00
if ! [ -d %{_datadir}/%{name}/fp-lib-tables ]; then exit 0; fi
2020-01-30 23:25:03 +03:00
pushd %{_datadir}/%{name}/fp-lib-tables/
2021-01-18 09:50:24 +03:00
if [ -d %{_datadir}/%{name}/modules/Battery.pretty ]; then
cp -f fp-lib-table-modules-%{version} ../template/fp-lib-table
else
cp -f fp-lib-table-modules-nothing-%{version} ../template/fp-lib-table
2020-01-30 23:25:03 +03:00
fi
popd
2020-01-30 23:25:03 +03:00
#----------------------------------------------------------------------------
2020-01-30 23:25:03 +03:00
%package modules-packages3d
Summary: Packages3d modules for KiCad
Group: Sciences/Computer science
BuildArch: noarch
2020-01-30 23:25:03 +03:00
Suggests: %{name} = %{EVRD}
%description modules-packages3d
All new 5.1 *.3dshapes modules for KiCad.
%files modules-packages3d
%doc %{name}-packages3D-%{version}/{CREDITS.md,LICENSE.md,README.md}
%{_docdir}/%{name}-packages3D/source-LICENSE.md
%{_docdir}/%{name}-packages3D/source-README.md
%{_datadir}/%{name}/modules/packages3d/Battery.3dshapes
%{_datadir}/%{name}/modules/packages3d/Button_Switch_SMD.3dshapes
%{_datadir}/%{name}/modules/packages3d/Button_Switch_THT.3dshapes
%{_datadir}/%{name}/modules/packages3d/Buzzer_Beeper.3dshapes
%{_datadir}/%{name}/modules/packages3d/Capacitor_SMD.3dshapes
%{_datadir}/%{name}/modules/packages3d/Capacitor_Tantalum_SMD.3dshapes
%{_datadir}/%{name}/modules/packages3d/Capacitor_THT.3dshapes
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/packages3d/Connector_AMASS.3dshapes
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/packages3d/Connector_BarrelJack.3dshapes
%{_datadir}/%{name}/modules/packages3d/Connector_Card.3dshapes
%{_datadir}/%{name}/modules/packages3d/Connector_Coaxial.3dshapes
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/packages3d/Connector_Dsub.3dshapes
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/packages3d/Connector_FFC-FPC.3dshapes
%{_datadir}/%{name}/modules/packages3d/Connector_IDC.3dshapes
%{_datadir}/%{name}/modules/packages3d/Connector_JST.3dshapes
%{_datadir}/%{name}/modules/packages3d/Connector_Molex.3dshapes
%{_datadir}/%{name}/modules/packages3d/Connector_Phoenix_GMSTB.3dshapes
%{_datadir}/%{name}/modules/packages3d/Connector_Phoenix_MC_HighVoltage.3dshapes
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/packages3d/Connector_Phoenix_MC.3dshapes
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/packages3d/Connector_Phoenix_MSTB.3dshapes
%{_datadir}/%{name}/modules/packages3d/Connector_Pin.3dshapes
%{_datadir}/%{name}/modules/packages3d/Connector_PinHeader_1.00mm.3dshapes
%{_datadir}/%{name}/modules/packages3d/Connector_PinHeader_1.27mm.3dshapes
%{_datadir}/%{name}/modules/packages3d/Connector_PinHeader_2.00mm.3dshapes
%{_datadir}/%{name}/modules/packages3d/Connector_PinHeader_2.54mm.3dshapes
%{_datadir}/%{name}/modules/packages3d/Connector_PinSocket_1.00mm.3dshapes
%{_datadir}/%{name}/modules/packages3d/Connector_PinSocket_1.27mm.3dshapes
%{_datadir}/%{name}/modules/packages3d/Connector_PinSocket_2.00mm.3dshapes
%{_datadir}/%{name}/modules/packages3d/Connector_PinSocket_2.54mm.3dshapes
%{_datadir}/%{name}/modules/packages3d/Connector_RJ.3dshapes
%{_datadir}/%{name}/modules/packages3d/Connector_Samtec.3dshapes
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/packages3d/Connector_SATA_SAS.3dshapes
%{_datadir}/%{name}/modules/packages3d/Connector_Stocko.3dshapes
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/packages3d/Connector_USB.3dshapes
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/packages3d/Connector.3dshapes
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/packages3d/Converter_ACDC.3dshapes
%{_datadir}/%{name}/modules/packages3d/Converter_DCDC.3dshapes
%{_datadir}/%{name}/modules/packages3d/Crystal.3dshapes
%{_datadir}/%{name}/modules/packages3d/Diode_SMD.3dshapes
%{_datadir}/%{name}/modules/packages3d/Diode_THT.3dshapes
%{_datadir}/%{name}/modules/packages3d/Display_7Segment.3dshapes
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/packages3d/Display.3dshapes
%{_datadir}/%{name}/modules/packages3d/Ferrite_THT.3dshapes
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/packages3d/Filter.3dshapes
%{_datadir}/%{name}/modules/packages3d/Fuse_Holders_and_Fuses.3dshapes
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/packages3d/Fuse.3dshapes
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/packages3d/Heatsink.3dshapes
%{_datadir}/%{name}/modules/packages3d/Inductor_SMD.3dshapes
%{_datadir}/%{name}/modules/packages3d/Inductor_THT.3dshapes
%{_datadir}/%{name}/modules/packages3d/LED_SMD.3dshapes
%{_datadir}/%{name}/modules/packages3d/LED_THT.3dshapes
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/packages3d/Module.3dshapes
%{_datadir}/%{name}/modules/packages3d/Mounting_Wuerth.3dshapes
%{_datadir}/%{name}/modules/packages3d/MountingEquipment.3dshapes
%{_datadir}/%{name}/modules/packages3d/MountingHole.3dshapes
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/packages3d/OptoDevice.3dshapes
%{_datadir}/%{name}/modules/packages3d/Oscillator.3dshapes
%{_datadir}/%{name}/modules/packages3d/Package_BGA.3dshapes
%{_datadir}/%{name}/modules/packages3d/Package_DFN_QFN.3dshapes
%{_datadir}/%{name}/modules/packages3d/Package_DIP.3dshapes
%{_datadir}/%{name}/modules/packages3d/Package_DirectFET.3dshapes
%{_datadir}/%{name}/modules/packages3d/Package_LGA.3dshapes
%{_datadir}/%{name}/modules/packages3d/Package_QFP.3dshapes
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/packages3d/Package_SIP.3dshapes
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/packages3d/Package_SO.3dshapes
%{_datadir}/%{name}/modules/packages3d/Package_SON.3dshapes
%{_datadir}/%{name}/modules/packages3d/Package_TO_SOT_SMD.3dshapes
%{_datadir}/%{name}/modules/packages3d/Package_TO_SOT_THT.3dshapes
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/packages3d/Potentiometer_SMD.3dshapes
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/packages3d/Potentiometer_THT.3dshapes
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/packages3d/Potentiometer.3dshapes
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/packages3d/Relay_SMD.3dshapes
%{_datadir}/%{name}/modules/packages3d/Relay_THT.3dshapes
%{_datadir}/%{name}/modules/packages3d/Resistor_SMD.3dshapes
%{_datadir}/%{name}/modules/packages3d/Resistor_THT.3dshapes
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/packages3d/RF_Antenna.3dshapes
%{_datadir}/%{name}/modules/packages3d/RF_Converter.3dshapes
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/packages3d/RF_Module.3dshapes
%{_datadir}/%{name}/modules/packages3d/Sensor_Audio.3dshapes
%{_datadir}/%{name}/modules/packages3d/Sensor_Current.3dshapes
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/packages3d/Sensor_Distance.3dshapes
%{_datadir}/%{name}/modules/packages3d/Sensor_Pressure.3dshapes
%{_datadir}/%{name}/modules/packages3d/Sensor.3dshapes
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/packages3d/Sensors.3dshapes
2021-01-18 09:50:24 +03:00
%{_datadir}/%{name}/modules/packages3d/TerminalBlock_Altech.3dshapes
%{_datadir}/%{name}/modules/packages3d/TerminalBlock_Phoenix.3dshapes
2020-01-30 23:25:03 +03:00
%{_datadir}/%{name}/modules/packages3d/TestPoint.3dshapes
%{_datadir}/%{name}/modules/packages3d/Transformer_SMD.3dshapes
%{_datadir}/%{name}/modules/packages3d/Transformer_THT.3dshapes
%{_datadir}/%{name}/modules/packages3d/Valve.3dshapes
%{_datadir}/%{name}/modules/packages3d/Varistor.3dshapes
#----------------------------------------------------------------------------
%package modules-packages3d-old
Summary: Packages3d modules for KiCad
Group: Sciences/Computer science
BuildArch: noarch
2020-01-30 23:25:03 +03:00
Suggests: %{name} = %{EVRD}
%description modules-packages3d-old
2021-01-18 09:50:24 +03:00
Old *.3dshapes modules for KiCad.
2020-01-30 23:25:03 +03:00
%files modules-packages3d-old
%doc packages3D-4.0.7/{CREDITS.md,LICENSE,README.md}
%{_docdir}/%{name}-packages3D-old/CREDITS.md
%{_docdir}/%{name}-packages3D-old/LICENSE
%{_docdir}/%{name}-packages3D-old/README.md
%{_docdir}/%{name}-packages3D-old/source-LICENSE
%{_docdir}/%{name}-packages3D-old/source-README.md
%{_datadir}/%{name}/modules/packages3d/Buttons_Switches_THT.3dshapes
%{_datadir}/%{name}/modules/packages3d/Capacitors_SMD.3dshapes
%{_datadir}/%{name}/modules/packages3d/Capacitors_Tantalum_SMD.3dshapes
%{_datadir}/%{name}/modules/packages3d/Capacitors_THT.3dshapes
%{_datadir}/%{name}/modules/packages3d/Connectors_JST.3dshapes
%{_datadir}/%{name}/modules/packages3d/Connectors_Molex.3dshapes
%{_datadir}/%{name}/modules/packages3d/Connectors_Phoenix.3dshapes
%{_datadir}/%{name}/modules/packages3d/Connectors_USB.3dshapes
%{_datadir}/%{name}/modules/packages3d/Diodes_SMD.3dshapes
%{_datadir}/%{name}/modules/packages3d/Diodes_ThroughHole.3dshapes
%{_datadir}/%{name}/modules/packages3d/Displays.3dshapes
%{_datadir}/%{name}/modules/packages3d/Displays_7-Segment.3dshapes
%{_datadir}/%{name}/modules/packages3d/Hall-Effect_Transducers_LEM.3dshapes
%{_datadir}/%{name}/modules/packages3d/Housings_BGA.3dshapes
%{_datadir}/%{name}/modules/packages3d/Housings_DFN_QFN.3dshapes
%{_datadir}/%{name}/modules/packages3d/Housings_DIP.3dshapes
%{_datadir}/%{name}/modules/packages3d/Housings_QFP.3dshapes
%{_datadir}/%{name}/modules/packages3d/Housings_SOIC.3dshapes
%{_datadir}/%{name}/modules/packages3d/Housings_SON.3dshapes
%{_datadir}/%{name}/modules/packages3d/Housings_SSOP.3dshapes
%{_datadir}/%{name}/modules/packages3d/Inductors_SMD.3dshapes
%{_datadir}/%{name}/modules/packages3d/LEDs.3dshapes
%{_datadir}/%{name}/modules/packages3d/Opto-Devices.3dshapes
%{_datadir}/%{name}/modules/packages3d/Pin_Headers.3dshapes
%{_datadir}/%{name}/modules/packages3d/Resistors_SMD.3dshapes
%{_datadir}/%{name}/modules/packages3d/TO_SOT_Packages_SMD.3dshapes
%{_datadir}/%{name}/modules/packages3d/TO_SOT_Packages_THT.3dshapes
%{_datadir}/%{name}/modules/packages3d/Valves.3dshapes
#----------------------------------------------------------------------------
2020-01-30 23:25:03 +03:00
%package doc
Summary: Documentation for KiCad
Group: Documentation
Obsoletes: %{name}-doc-hu < %{EVRD}
Obsoletes: %{name}-doc-pt < %{EVRD}
Provides: %{name}-doc-hu = %{EVRD}
Provides: %{name}-doc-pt = %{EVRD}
BuildArch: noarch
2020-01-30 23:25:03 +03:00
%description doc
Documentation and tutorials for KiCad in English.
2020-01-30 23:25:03 +03:00
%files doc
%doc %{name}-doc-%{version}/{AUTHORS_README.adoc,CHEATSHEET.adoc,LICENSE.adoc,README.adoc}
%{_docdir}/%{name}/help/en
%{_docdir}/%{name}/scripts
2020-01-30 23:25:03 +03:00
#----------------------------------------------------------------------------
%package doc-ca
Summary: Documentation for KiCad in Catalan
Group: Documentation
Requires: %{name}-doc = %{EVRD}
Requires: locales-ca
BuildArch: noarch
2020-01-30 23:25:03 +03:00
%description doc-ca
Documentation and tutorials for KiCad in Catalan.
%files doc-ca
%{_docdir}/%{name}/help/ca
2020-01-30 23:25:03 +03:00
#----------------------------------------------------------------------------
2020-01-30 23:25:03 +03:00
%package doc-de
Summary: Documentation for KiCad in German
Group: Documentation
Requires: %{name}-doc = %{EVRD}
Requires: locales-de
BuildArch: noarch
2020-01-30 23:25:03 +03:00
%description doc-de
Documentation and tutorials for KiCad in German.
2020-01-30 23:25:03 +03:00
%files doc-de
%{_docdir}/%{name}/help/de
2020-01-30 23:25:03 +03:00
#----------------------------------------------------------------------------
%package doc-es
Summary: Documentation for KiCad in Spanish
Group: Documentation
Requires: %{name}-doc = %{EVRD}
Requires: locales-es
BuildArch: noarch
2020-01-30 23:25:03 +03:00
%description doc-es
Documentation and tutorials for KiCad in Spanish.
%files doc-es
%{_docdir}/%{name}/help/es
2020-01-30 23:25:03 +03:00
#----------------------------------------------------------------------------
2020-01-30 23:25:03 +03:00
%package doc-fr
Summary: Documentation for KiCad in French
Group: Documentation
Requires: %{name}-doc = %{EVRD}
Requires: locales-fr
BuildArch: noarch
2020-01-30 23:25:03 +03:00
%description doc-fr
Documentation and tutorials for KiCad in French.
2020-01-30 23:25:03 +03:00
%files doc-fr
%{_docdir}/%{name}/help/fr
2020-01-30 23:25:03 +03:00
#----------------------------------------------------------------------------
%package doc-id
Summary: Documentation for KiCad in Indonesian
Group: Documentation
Requires: %{name}-doc = %{EVRD}
Requires: locales-id
BuildArch: noarch
2020-01-30 23:25:03 +03:00
%description doc-id
Documentation and tutorials for KiCad in Indonesian.
%files doc-id
%{_docdir}/%{name}/help/id
2020-01-30 23:25:03 +03:00
#----------------------------------------------------------------------------
2020-01-30 23:25:03 +03:00
%package doc-it
Summary: Documentation for KiCad in Italian
Group: Documentation
Requires: %{name}-doc = %{EVRD}
Requires: locales-it
BuildArch: noarch
2020-01-30 23:25:03 +03:00
%description doc-it
Documentation and tutorials for KiCad in Italian.
2020-01-30 23:25:03 +03:00
%files doc-it
%{_docdir}/%{name}/help/it
2020-01-30 23:25:03 +03:00
#----------------------------------------------------------------------------
%package doc-ja
Summary: Documentation for KiCad in Japanese
Group: Documentation
Requires: %{name}-doc = %{EVRD}
Requires: locales-ja
BuildArch: noarch
2020-01-30 23:25:03 +03:00
%description doc-ja
Documentation and tutorials for KiCad in Japanese.
%files doc-ja
%{_docdir}/%{name}/help/ja
2020-01-30 23:25:03 +03:00
#----------------------------------------------------------------------------
2020-01-30 23:25:03 +03:00
%package doc-nl
Summary: Documentation for KiCad in Dutch
Group: Documentation
Requires: %{name}-doc = %{EVRD}
Requires: locales-nl
BuildArch: noarch
2020-01-30 23:25:03 +03:00
%description doc-nl
Documentation and tutorials for KiCad in Dutch.
%files doc-nl
%{_docdir}/%{name}/help/nl
2020-01-30 23:25:03 +03:00
#----------------------------------------------------------------------------
2020-01-30 23:25:03 +03:00
%package doc-pl
Summary: Documentation for KiCad in Polish
Group: Documentation
Requires: %{name}-doc = %{EVRD}
Requires: locales-pl
BuildArch: noarch
2020-01-30 23:25:03 +03:00
%description doc-pl
Documentation and tutorials for KiCad in Polish
2020-01-30 23:25:03 +03:00
%files doc-pl
%{_docdir}/%{name}/help/pl
2020-01-30 23:25:03 +03:00
#----------------------------------------------------------------------------
%package doc-ru
Summary: Documentation for KiCad in Russian
Group: Documentation
Requires: %{name}-doc = %{EVRD}
Requires: locales-ru
BuildArch: noarch
2020-01-30 23:25:03 +03:00
%description doc-ru
Documentation and tutorials for KiCad in Russian.
%files doc-ru
%{_docdir}/%{name}/help/ru
2020-01-30 23:25:03 +03:00
#----------------------------------------------------------------------------
2020-01-30 23:25:03 +03:00
%package doc-zh
Summary: Documentation for KiCad in Chinese
Group: Documentation
Requires: %{name}-doc = %{EVRD}
Requires: locales-zh
BuildArch: noarch
2020-01-30 23:25:03 +03:00
%description doc-zh
Documentation and tutorials for KiCad in Chinese.
2020-01-30 23:25:03 +03:00
%files doc-zh
%{_docdir}/%{name}/help/zh
#----------------------------------------------------------------------------
%prep
2020-01-30 23:25:03 +03:00
%setup -q -a1 -a2 -a3 -a4 -a5 -a6 -a8 -a9 -a10
%patch0 -p1
%patch1 -p1
%build
2020-01-30 23:25:03 +03:00
# Build symbols libraries
pushd %{name}-symbols-%{version}
%cmake
%make
popd
2020-01-30 23:25:03 +03:00
# Build kicad-i18n
pushd %{name}-i18n-%{version}
%cmake -DKICAD_I18N_UNIX_STRICT_PATH=ON
%make
popd
2020-01-30 23:25:03 +03:00
# Build kicad-doc
pushd %{name}-doc-%{version}
%cmake -DBUILD_FORMATS=html
%make
popd
2020-01-30 23:25:03 +03:00
# Build kicad-footprints
pushd %{name}-footprints-%{version}
%cmake
%make
popd
2020-01-30 23:25:03 +03:00
# Build kicad-packages3D
pushd %{name}-packages3D-%{version}
%cmake
%make
popd
2020-01-30 23:25:03 +03:00
# Build kicad-templates
pushd %{name}-templates-%{version}
%cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix}
%make
popd
2020-01-30 23:25:03 +03:00
# Build kicad
%cmake \
-DKICAD_LIB:PATH=%{_libdir} \
-DKICAD_USER_PLUGIN:PATH=%{_libdir}/%{name}/plugins \
-DKICAD_DATA:PATH=%{_datadir}/%{name} \
-DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \
-DCMAKE_BUILD_TYPE=Release \
-DKICAD_SCRIPTING_WXPYTHON=ON \
-DPYTHON_SITE_PACKAGE_PATH=%{py_platsitedir}/wx-3.0-gtk2/ \
-DwxWidgets_CONFIG_EXECUTABLE=%{_bindir}/wx-config
%make VERBOSE=1
2020-01-30 23:25:03 +03:00
%install
%makeinstall_std -C build
cp -f AUTHORS.txt %{buildroot}%{_docdir}/%{name}/
cp -f README.txt %{buildroot}%{_docdir}/%{name}/
for desktopfile in %{buildroot}%{_datadir}/applications/*.desktop ; do
desktop-file-install \
--dir %{buildroot}%{_datadir}/applications \
--remove-category Development \
--delete-original \
${desktopfile}
done
# Install localization
pushd %{name}-i18n-%{version}
%makeinstall_std -C build
mv -f README.adoc %{buildroot}%{_docdir}/%{name}/%{name}-i18n-README.md
popd
2020-01-30 23:25:03 +03:00
# Install symbols libraries
pushd %{name}-symbols-%{version}
%makeinstall_std -C build
cp -f LICENSE.md %{buildroot}%{_docdir}/%{name}/%{name}-symbols-LICENSE.md
cp -f README.md %{buildroot}%{_docdir}/%{name}/%{name}-symbols-README.md
popd
2020-01-30 23:25:03 +03:00
# Install templates
pushd %{name}-templates-%{version}
%makeinstall_std -C build
cp -f LICENSE.md %{buildroot}%{_docdir}/%{name}/%{name}-templates-LICENSE.md
cp -f README.md %{buildroot}%{_docdir}/%{name}/%{name}-templates-README.md
popd
2020-01-30 23:25:03 +03:00
# Install footprints
pushd %{name}-footprints-%{version}
%makeinstall_std -C build
cp -f CONTRIBUTING.md %{buildroot}%{_docdir}/%{name}/%{name}-footprints-CONTRIBUTING.md
cp -f LICENSE.md %{buildroot}%{_docdir}/%{name}/%{name}-footprints-LICENSE.md
cp -f README.md %{buildroot}%{_docdir}/%{name}/%{name}-footprints-README.md
popd
2020-01-30 23:25:03 +03:00
# Install packages3D
pushd %{name}-packages3D-%{version}
%makeinstall_std -C build
popd
2020-01-30 23:25:03 +03:00
# Install old packages3D
pushd packages3D-4.0.7
cp -rf *.3dshapes %{buildroot}%{_datadir}/%{name}/modules/packages3d/
mkdir -p %{buildroot}%{_docdir}/%{name}-packages3D-old/
cp -f CREDITS.md LICENSE README.md %{buildroot}%{_docdir}/%{name}-packages3D-old/
popd
2020-01-30 23:25:03 +03:00
# Install packages3D-source
2021-01-18 09:50:24 +03:00
pushd %{name}-packages3D-source-%{ver2020}
2020-01-30 23:25:03 +03:00
cp -rf *.3dshapes %{buildroot}%{_datadir}/%{name}/modules/packages3d/
mkdir -p %{buildroot}%{_docdir}/%{name}-packages3D/
cp -f LICENSE.md %{buildroot}%{_docdir}/%{name}-packages3D/source-LICENSE.md
cp -f README.md %{buildroot}%{_docdir}/%{name}-packages3D/source-README.md
popd
2020-01-30 23:25:03 +03:00
# Install old packages3D-source
pushd packages3D-source-4.0.7
cp -rf *.3dshapes %{buildroot}%{_datadir}/%{name}/modules/packages3d/
cp -f LICENSE %{buildroot}%{_docdir}/%{name}-packages3D-old/source-LICENSE
cp -f README.md %{buildroot}%{_docdir}/%{name}-packages3D-old/source-README.md
popd
2020-01-30 23:25:03 +03:00
# Install kicad-doc
pushd %{name}-doc-%{version}
%makeinstall_std -C build
popd
2020-01-30 23:25:03 +03:00
# We don't have headers
rm -f %{buildroot}%{_libdir}/libkicad_3dsg.so
# Install old modules
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
find %{buildroot}%{_datadir}/%{name}/modules -type f -exec chmod 0644 {} \;
rm -rf %{buildroot}%{_datadir}/%{name}/modules/*/{.gitattributes,.travis.yml}
2021-01-18 09:50:24 +03:00
cp -f %{SOURCE201} %{buildroot}%{_datadir}/%{name}/template/fp-lib-table
2020-01-30 23:25:03 +03:00
mkdir -p %{buildroot}%{_datadir}/%{name}/fp-lib-tables
ln -s ../fp-lib-tables %{buildroot}%{_datadir}/%{name}/template/fp-lib-tables
cp -f %{SOURCE200} %{SOURCE201} %{SOURCE202} %{SOURCE203} %{buildroot}%{_datadir}/%{name}/fp-lib-tables/
# the pcbnew kiface and the python module are actually the same file
cmp --quiet %{buildroot}%{_bindir}/_pcbnew.kiface %{buildroot}%{python_sitearch}/wx-3.0-gtk2/_pcbnew.so && \
ln -sf %{_bindir}/_pcbnew.kiface %{buildroot}%{python_sitearch}/wx-3.0-gtk2/_pcbnew.so
# Deregression help for dutch
pushd %{buildroot}%{_docdir}/%{name}/help
tar -xf %{SOURCE300}
popd
2020-01-30 23:25:03 +03:00
%find_lang %{name}