%define Werror_cflags %nil %define docname kicad-doc %define symname kicad-symbols %define p3dname kicad-packages3D %define templname kicad-templates %define fpname kicad-footprints %define i18nname kicad-i18n %define branch 5.0 Name: kicad Summary: An open source program for the creation of electronic schematic diagrams Epoch: 1 Version: 5.1.5 Release: %mkrel 1 License: GPLv3+ Group: Sciences/Computer science Url: http://kicad-pcb.org/ Source0: https://launchpad.net/%{name}/%{branch}/%{version}/+download/%{name}-%{version}.tar.xz Source1: https://github.com/KiCad/%{docname}/archive/%{version}/%{docname}-%{version}.tar.gz Source2: https://github.com/KiCad/%{symname}/archive/%{version}/%{symname}-%{version}.tar.gz Source3: https://github.com/KiCad/%{p3dname}/archive/%{version}/%{p3dname}-%{version}.tar.gz Source4: https://github.com/KiCad/%{templname}/archive/%{version}/%{templname}-%{version}.tar.gz Source5: https://github.com/KiCad/%{fpname}/archive/%{version}/%{fpname}-%{version}.tar.gz Source6: https://github.com/KiCad/%{i18nname}/archive/%{version}/%{i18nname}-%{version}.tar.gz # This needs to be aligned with kicad-library-*/template/fp-lib-table.for-pretty Patch1: kicad-5.1.0-nostrip.patch BuildRequires: wxgtk-devel >= 3.0 BuildRequires: mesa-common-devel BuildRequires: imagemagick BuildRequires: boost-devel BuildRequires: glm-devel BuildRequires: opencascade-devel BuildRequires: ngspice-devel BuildRequires: pkgconfig(glew) BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(openssl) >= 1.1 BuildRequires: libgomp-devel BuildRequires: pkgconfig(libcurl) BuildRequires: cmake # doc BuildRequires: dblatex BuildRequires: po4a BuildRequires: asciidoc BuildRequires: git BuildRequires: perl(Unicode::LineBreak) BuildRequires: source-highlight # python scripting BuildRequires: pkgconfig(python3) BuildRequires: python3-wxpython4 BuildRequires: swig BuildRequires: desktop-file-utils Requires: %{name}-library Requires: %{docname} Requires: %{i18nname} Requires: python3-wxpython4 %description Kicad is an open source (GPL) program for the creation of electronic schematic diagrams and printed circuit board artwork. Kicad is a set of four programs and a project manager: * Eeschema: Schematic entry. * Pcbnew: Board editor. * Gerbview: GERBER viewer (photoplotter documents). * Cvpcb: footprint selector for components used in the circuit design. * Kicad: project manager. %package doc Summary: Documentation for kicad (creation of electronic schematic diagrams) Requires: %{name} BuildArch: noarch %description doc Kicad is an open source (GPL) program for the creation of electronic schematic diagrams and printed circuit board artwork. Kicad-doc is the documentation for kicad. %package i18n Summary: Kicad locales Requires: %{name} BuildArch: noarch Obsoletes: kicad-locales-ca Obsoletes: kicad-locales-cs Obsoletes: kicad-locales-de Obsoletes: kicad-locales-en Obsoletes: kicad-locales-es Obsoletes: kicad-locales-fi Obsoletes: kicad-locales-fr Obsoletes: kicad-locales-hu Obsoletes: kicad-locales-it Obsoletes: kicad-locales-ja Obsoletes: kicad-locales-ko Obsoletes: kicad-locales-lt Obsoletes: kicad-locales-nl Obsoletes: kicad-locales-pl Obsoletes: kicad-locales-pt Obsoletes: kicad-locales-ru Obsoletes: kicad-locales-sl Obsoletes: kicad-locales-sv Obsoletes: kicad-locales-zh-cn %description i18n Kicad is an open source (GPL) program for the creation of electronic schematic diagrams and printed circuit board artwork. Kicad-i18n provides locales for kicad. %package library Summary: Library for kicad (creation of electronic schematic diagrams) License: LGPLv2 Requires: %{name} BuildArch: noarch %description library Kicad is an open source (GPL) program for the creation of electronic schematic diagrams and printed circuit board artwork. Kicad-library is a set of libraries needed by kicad. %prep %setup -q -a 1 -a 2 -a 3 -a 4 -a 5 -a 6 %patch1 -p1 %build export LC_ALL=C # Building kicad # Set CMAKE_PREFIX_PATH because of a misconfiguration in opencascade %cmake \ -DBUILD_SHARED_LIBS:BOOL=OFF \ -DCMAKE_BUILD_TYPE=Release \ -DKICAD_BUILD_VERSION=%{version} \ -DBUILD_GITHUB_PLUGIN=ON \ -DKICAD_SCRIPTING=ON \ -DKICAD_SCRIPTING_MODULES=ON \ -DKICAD_SCRIPTING_WXPYTHON=ON \ -DKICAD_SCRIPTING_WXPYTHON_PHOENIX=ON \ -DKICAD_SCRIPTING_PYTHON3=ON \ -DKICAD_SCRIPTING_ACTION_MENU=ON \ -DCPACK_DO_STRIP=OFF %make_build # for %%cmake: cd .. # Building kicad-doc pushd %{docname}-%{version} %cmake \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_FORMATS=html %make_build popd # Building kicad-symbols pushd %{symname}-%{version} %cmake \ -DCMAKE_BUILD_TYPE=Release %make_build popd # Building kicad-packages3D pushd %{p3dname}-%{version} %cmake \ -DCMAKE_BUILD_TYPE=Release %make_build popd # Building kicad-templates pushd %{templname}-%{version} %cmake \ -DCMAKE_BUILD_TYPE=Release %make_build popd # Building kicad-footprints pushd %{fpname}-%{version} %cmake \ -DCMAKE_BUILD_TYPE=Release %make_build popd # Building kicad-i18n pushd %{i18nname}-%{version} %cmake \ -DCMAKE_BUILD_TYPE=Release \ -DKICAD_I18N_UNIX_STRICT_PATH=ON %make_build popd %install pushd %{docname}-%{version} # Installing kicad-doc %make_install -C build popd # Installing kicad-symbols pushd %{symname}-%{version} %make_install -C build popd # Installing kicad-packages3D pushd %{p3dname}-%{version} %make_install -C build popd # Installing kicad-templates pushd %{templname}-%{version} %make_install -C build popd # Installing kicad-footprints pushd %{fpname}-%{version} %make_install -C build popd # Installing kicad-i18n pushd %{i18nname}-%{version} %make_install -C build popd %find_lang %{name} # Installing kicad %make_install -C build # create desktop file desktop-file-install --vendor='' \ --remove-category='Scientific' \ --add-category='Science;Electronics;Education' \ --dir=%buildroot%{_datadir}/applications \ %buildroot%{_datadir}/applications/*.desktop # remove unwanted devel files rm -r %{buildroot}%{_libdir}/libkicad_3dsg.so %files %{_bindir}/* %{_libdir}/libkicad_3dsg.so.* %{_iconsdir}/*/*/* %{python3_sitelib}/_pcbnew.so %{python3_sitelib}/pcbnew.* %{python3_sitelib}/__pycache__/* %{_datadir}/%{name}/demos/ %{_datadir}/%{name}/template/ %{_datadir}/applications/*.desktop %{_datadir}/mime/packages/kicad-*.xml %{_datadir}/appdata/kicad.*.xml %{_libdir}/%{name}/plugins/ %{_datadir}/%{name}/plugins/ %{_datadir}/%{name}/scripting/ %dir %{_libdir}/%{name} %dir %{_datadir}/%{name} %files doc %doc %{_docdir}/%{name}/ %files i18n -f %{name}.lang %files library %{_datadir}/%{name}/library %{_datadir}/%{name}/modules %changelog * Thu Jan 23 2020 daviddavid <daviddavid> 1:5.1.5-1.mga7 + Revision: 1482449 - new version: 5.1.5 (latest series 5 stable release) (mga#26074) - new version: 5.1.4 (mga#25543) * Mon May 06 2019 daviddavid <daviddavid> 1:5.1.2-2.mga7 + Revision: 1396509 - switch to python3-wxpython4 * Tue Apr 23 2019 daviddavid <daviddavid> 1:5.1.2-1.mga7 + Revision: 1394879 - new version: 5.1.2 * Wed Apr 17 2019 daviddavid <daviddavid> 1:5.1.1-1.mga7 + Revision: 1392103 - new version: 5.1.1 * Mon Mar 18 2019 daviddavid <daviddavid> 1:5.1.0-1.mga7 + Revision: 1378703 - new version: 5.1.0 * Fri Mar 01 2019 daviddavid <daviddavid> 1:5.0.2-2.mga7 + Revision: 1370620 - remove unwanted devel files * Wed Feb 20 2019 zezinho <zezinho> 1:5.0.2-1.mga7 + Revision: 1368861 - new version 5 * Tue Oct 16 2018 wally <wally> 1:4.0.6-11.mga7 + Revision: 1321049 - rebuild for new boost 1.68.0 * Sun Sep 23 2018 umeabot <umeabot> 1:4.0.6-10.mga7 + Revision: 1298541 - Mageia 7 Mass Rebuild * Wed Jul 18 2018 wally <wally> 1:4.0.6-9.mga7 + Revision: 1244224 - fix build with CMake >= 3.11 * Mon Dec 25 2017 wally <wally> 1:4.0.6-8.mga7 + Revision: 1184677 - rebuild for new boost * Sun Dec 03 2017 daviddavid <daviddavid> 1:4.0.6-7.mga7 + Revision: 1180797 - rebuild for new glew 2.1.0 * Tue Nov 21 2017 tv <tv> 1:4.0.6-6.mga7 + Revision: 1178114 - rebuild for boost 1.65 * Tue Sep 26 2017 tv <tv> 1:4.0.6-5.mga7 + Revision: 1159890 - fix build with newer boost - rebuild with latest boost * Tue Sep 05 2017 cjw <cjw> 1:4.0.6-4.mga7 + Revision: 1151485 - fix debug packages + daviddavid <daviddavid> - rebuild for new glew 2.0.0 * Sat Jun 03 2017 akien <akien> 1:4.0.6-3.mga6 + Revision: 1106098 - Rebuild for wxgtk 3.0.3.1 * Mon May 29 2017 neoclust <neoclust> 1:4.0.6-2.mga6 + Revision: 1105516 - Rebuild with fixed python pip + akien <akien> - New version 4.0.6 packaged by Juergen Harms (mga#9353) o correct Source0 specification: /.../%%{name}/4.0/%%{version}/+download/... to .../%%{name}-%%{version}/+download/... o add missing "Requires: wxPython" o add missing "BuildRequires: curl-devel" o correct "BuildRequires: BuildRequires Perl(Unicode:GCString)" to "BuildRequires: perl(Unicode::LineBreak)" o verify that the patches used in Fedora kicad 4.0.6 are not needed in Mageia environment o review and update list of kicad libraries (xxx.pretty) to include, based on upstream fp-lib-table.for-pretty * Tue Sep 27 2016 daviddavid <daviddavid> 1:4.0.4-1.mga6 + Revision: 1057110 - new version: 4.0.4 - remove merged upstream patch - fix some ownership dir * Thu Aug 18 2016 luigiwalser <luigiwalser> 1:4.0.1-6.mga6 + Revision: 1046898 - rediff patch from opensuse to fix build with swig 3.0.10 * Thu Jun 02 2016 daviddavid <daviddavid> 1:4.0.1-5.mga6 + Revision: 1019816 - rebuild for wxgtk3.0 built with GTK2 * Wed Mar 02 2016 umeabot <umeabot> 1:4.0.1-4.mga6 + Revision: 983547 - Rebuild for openssl * Sat Dec 26 2015 daviddavid <daviddavid> 1:4.0.1-3.mga6 + Revision: 915357 - rebuild for new boost 1.60.0 * Mon Dec 21 2015 ycantin <ycantin> 1:4.0.1-2.mga6 + Revision: 913195 - bundle footprints * Sun Dec 20 2015 ycantin <ycantin> 1:4.0.1-1.mga6 + Revision: 912497 - new version 4.0.1 * Sun Dec 06 2015 ycantin <ycantin> 1:4.0.0-1.mga6 + Revision: 908586 - fix build - fix release versioning - fix licensing - add Epoch to deal with version numbering change - new version 4.0.0 - merge i18n packages - enable python scripting + umeabot <umeabot> - Second Mageia 5 Mass Rebuild * Sat Sep 27 2014 tv <tv> 20130725.bzr4024-5.mga5 + Revision: 726643 - rebuild for missing pythoneggs deps - s/uggests:/Recommends:/ + umeabot <umeabot> - Mageia 5 Mass Rebuild * Wed Feb 05 2014 stormi <stormi> 20130725.bzr4024-3.mga5 + Revision: 583863 - add missing icon for eeschema (mga#8425), thanks to AlexL * Mon Oct 21 2013 umeabot <umeabot> 20130725.bzr4024-2.mga4 + Revision: 537828 - Mageia 4 Mass Rebuild * Fri Sep 27 2013 akien <akien> 20130725.bzr4024-1.mga4 + Revision: 487797 - Reverting erroneous libpath introduced in r487685 - Update to current stable release (r4024 for the program) using update.sh script - Removed trailing spaces and fixed inconsistent use of spaces and tabs * Wed Jul 10 2013 fwang <fwang> 20111221.bzr3253-4.mga4 + Revision: 452341 - rebuild for new boost * Sat Jan 12 2013 umeabot <umeabot> 20111221.bzr3253-3.mga3 + Revision: 356169 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Dec 05 2012 juancho <juancho> 20111221.bzr3253-2.mga3 + Revision: 326831 - Added upstream patch to fix boost build failure. * Thu Jan 19 2012 fwang <fwang> 20111221.bzr3253-1.mga2 + Revision: 198405 - build with wxgtku + mcb30 <mcb30> - Remove requirement for specific versions of library and doc packages - Update to latest stable version (using auto-update script) Fix BuildRequires to work on Mageia 1 as well as Cauldron - Add auto-update script to rebuild tarballs from bzr checkouts * Sat Dec 17 2011 wally <wally> 20110720.bzr3052-2.mga2 + Revision: 182876 - fix build - wxGTK-devel BR was renamed to wxgtk-devel + mcb30 <mcb30> - Add Requires: locales-XX for each locale subpackage - Provide dummy "en" locale package to minimise user confusion * Sat Nov 12 2011 shlomif <shlomif> 20110720.bzr3052-1.mga2 + Revision: 166922 - software is an uncountable noun - software is an uncountable noun + mcb30 <mcb30> - Removed old sources (not automatically removed via "mgarepo sync") - Update to latest stable version - Remove specfile cruft - Remove specfile cruft - imported package kicad * Fri Nov 11 2011 Michael Brown <mbrown@fensystems.co.uk> 20110525.bzr3009-7 - Remove references to %%mdkversion * Sun Jun 05 2011 Alexandre Lissy <alissy@mandriva.com> 20110525.bzr3009-6mdv2011.0 + Revision: 682787 - Only one %%mkrel - Split kicad-locales into several package, each providing kicad-locales-X and kicad-locale - Adding Suggests from kicad to kicad-locale - Unifying versions number - Changing requires - Adding missing License - Release bump, package eaten by build system :( - Updating release ... - Fix bad version number for kicad-locales * Fri Jun 03 2011 Alexandre Lissy <alissy@mandriva.com> 20110525.bzr3009-1 + Revision: 682668 - Fixing typo in versions definitions - Unification of all kicad sources packages - Updating kicad, kicad-doc and kicad-library to latest (stable) bazaar revsion - Adding new kicad-locales package - Setting noarch for kicad-doc, kicad-library and kicad-locales - Updating Kicad to latest release * Mon Dec 06 2010 Oden Eriksson <oeriksson@mandriva.com> 20100314-2mdv2011.0 + Revision: 612604 - the mass rebuild of 2010.1 packages * Wed Apr 14 2010 Funda Wang <fwang@mandriva.org> 20100314-1mdv2010.1 + Revision: 534645 - clean old switches + trem <trem@mandriva.org> - remove use of iconscaldir - update to 20100314 * Wed Jul 15 2009 trem <trem@mandriva.org> 20090216-1mdv2010.0 + Revision: 396494 - update to 2009-02-16 - add lot of patches to fix printf format + Oden Eriksson <oeriksson@mandriva.com> - lowercase ImageMagick * Tue Aug 26 2008 trem <trem@mandriva.org> 20080715-4mdv2009.0 + Revision: 276407 - new mdvrelease - replace kicad-20080715-fix-desktop.patch by fix_desktop.patch * Tue Aug 26 2008 Funda Wang <fwang@mandriva.org> 20080715-3mdv2009.0 + Revision: 276396 - drop our own desktop file * Tue Aug 26 2008 Funda Wang <fwang@mandriva.org> 20080715-2mdv2009.0 + Revision: 276135 - fix license - fix desktop file * Thu Aug 21 2008 trem <trem@mandriva.org> 20080715-1mdv2009.0 + Revision: 274944 - update to 20080715 + Thierry Vignaud <tv@mandriva.org> - rebuild - rebuild - drop old menu - kill re-definition of %%buildroot on Pixel's request - import kicad + Pixel <pixel@mandriva.com> - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Tue Aug 1 2006 Couriousous <couriousous@mandriva.org> 20060626-1mdv2007.0 - XDG - 20060626 * Tue Apr 18 2006 Nicolas Lécureuil <neoclust@mandriva.org> 20060321-2mdk - Fix BuildRequires - use mkrel * Mon Apr 17 2006 Couriousous <couriousous@mandriva.org> 20060321-1mdk - 20060321 * Fri Sep 9 2005 Couriousous <couriousous@mandriva.org> 20050906-1mdk - 20050906 * Tue Jul 26 2005 Couriousous <couriousous@mandriva.org> 20050725-1mdk - 20050725 - Kicad is now FHS complient * Sun Jul 17 2005 Couriousous <couriousous@mandriva.org> 20050704-1mdk - First Mandriva release - Patch for gcc4 - Patch for amd64