%global full_version r13424-46f5d81d Name: kicad Version: r13424 # Higher epoch than stable builds to make sure your nightly builds are prioritized # if you enabled the nightly build repo Epoch: 100 Release: 46f5d81d%{?dist} Summary: Electronic schematic diagrams and printed circuit board artwork License: GPLv3+ URL: http://www.kicad-pcb.org # Source files generated by builder.sh Source0: %{name}-%{full_version}.tar.gz Source1: %{name}-i18n-%{full_version}.tar.gz Source2: %{name}-templates-%{full_version}.tar.gz Source3: %{name}-symbols-%{full_version}.tar.gz Source4: %{name}-footprints-%{full_version}.tar.gz Source5: %{name}-packages3D-%{full_version}.tar.gz Source6: %{name}-doc-%{full_version}.tar.gz # https://bugs.launchpad.net/kicad/+bug/1755752 ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 BuildRequires: cmake BuildRequires: doxygen BuildRequires: desktop-file-utils BuildRequires: gcc-c++ BuildRequires: gettext BuildRequires: git BuildRequires: libappstream-glib BuildRequires: swig BuildRequires: boost-devel BuildRequires: bzip2-devel BuildRequires: compat-wxGTK3-gtk2-devel BuildRequires: glew-devel BuildRequires: glm-devel BuildRequires: libcurl-devel BuildRequires: OCE-devel BuildRequires: openssl-devel BuildRequires: python2-devel #BuildRequires: wxPython-devel #BuildRequires: compat-wxPython3-gtk2 #BuildRequires: compat-wxPython3-gtk2-devel BuildRequires: asciidoc BuildRequires: dblatex BuildRequires: po4a BuildRequires: perl(Unicode::GCString) Requires: electronics-menu %description KiCad is an open-source software tool for the creation of electronic schematic diagrams and PCB artwork. It does not present any board-size limitation and it can handle up to 32 copper layers, 14 technical layers and 4 auxiliary layers. Beneath its singular surface, KiCad incorporates an elegant ensemble of the following software tools: KiCad (project manager), Eeschema (schematic editor and component editor), Pcbnew (circuit board layout editor and footprint editor) and GerbView (Gerber viewer). %package doc Summary: Documentation for KiCad License: GPLv3+ BuildArch: noarch %description doc Documentation for KiCad. %prep %setup -q -n %{name}-%{full_version} -a 1 -a 2 -a 3 -a 4 -a 5 -a 6 %build # compat-wxGTK3-gtk2-devel is now merged with wxGTK3-devel and uses a single wx-config %if 0%{?fedora} > 27 %global wx_config wx-config %else %global wx_config wx-config-3.0-gtk2 %endif # KiCad application %cmake \ -DUSE_WX_GRAPHICS_CONTEXT=OFF \ -DUSE_WX_OVERLAY=OFF \ -DKICAD_SCRIPTING=ON \ -DKICAD_SCRIPTING_MODULES=ON \ -DKICAD_SCRIPTING_WXPYTHON=OFF \ -DKICAD_SCRIPTING_ACTION_MENU=ON \ -DKICAD_USE_OCE=ON \ -DKICAD_INSTALL_DEMOS=ON \ -DBUILD_GITHUB_PLUGIN=ON \ -DKICAD_SPICE=OFF \ -DKICAD_VERSION_EXTRA=r13424-46f5d81d \ -DCMAKE_BUILD_TYPE=Debug \ -DwxWidgets_CONFIG_EXECUTABLE=%{_bindir}/%{wx_config} \ . # workaround to get WXPYTHON_VERSION set in config.h %{__make} rebuild_cache # end workaround %make_build VERBOSE=1 # Localization mkdir %{name}-i18n-%{full_version}/build/ pushd %{name}-i18n-%{full_version}/build/ %cmake \ -DKICAD_I18N_UNIX_STRICT_PATH=ON \ .. %make_build VERBOSE=1 popd # Templates pushd %{name}-templates-%{full_version}/ %cmake . %make_build VERBOSE=1 popd # Symbol libraries pushd %{name}-symbols-%{full_version}/ %cmake . %make_build VERBOSE=1 popd # Footprint libraries pushd %{name}-footprints-%{full_version}/ %cmake . %make_build VERBOSE=1 popd # 3D models pushd %{name}-packages3D-%{full_version}/ %cmake . %make_build VERBOSE=1 popd # Documentation (HTML only) mkdir %{name}-doc-%{full_version}/build/ pushd %{name}-doc-%{full_version}/build/ %cmake \ -DBUILD_FORMATS=html \ .. %make_build popd %install # KiCad application %make_install %{__cp} -p AUTHORS.txt %{buildroot}%{_docdir}/%{name}/ # Localization pushd %{name}-i18n-%{full_version}/build/ %make_install popd # Desktop integration for desktopfile in %{buildroot}%{_datadir}/applications/*.desktop ; do desktop-file-install \ --dir %{buildroot}%{_datadir}/applications \ --remove-category Development \ --delete-original \ ${desktopfile} done # Templates pushd %{name}-templates-%{full_version}/ %make_install popd # Symbol libraries pushd %{name}-symbols-%{full_version}/ %make_install popd # Footprint libraries pushd %{name}-footprints-%{full_version}/ %make_install popd # 3D models pushd %{name}-packages3D-%{full_version}/ %make_install popd # Documentation pushd %{name}-doc-%{full_version}/build/ %make_install popd %find_lang %{name} %check appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/*.appdata.xml %files -f %{name}.lang %{_bindir}/* %{_libdir}/libkicad_3dsg.so* %{_libdir}/%{name}/plugins/* %{python2_sitelib}/* %{_datadir}/%{name}/* %{_datadir}/appdata/*.xml %{_datadir}/applications/*.desktop %{_datadir}/icons/hicolor/*/mimetypes/application-x-*.* %{_datadir}/icons/hicolor/*/apps/*.* %{_datadir}/mime/packages/*.xml %files doc %{_docdir}/%{name}/*.txt %{_docdir}/%{name}/help/* %{_docdir}/%{name}/scripts/* %license %{name}-doc-%{full_version}/LICENSE.adoc %changelog