2024-01-06 01:41:01 +01:00
|
|
|
%define pkgver %(version=%version;echo ${version:0:4}-${version:4:2}-${version:6:2})
|
|
|
|
%define docpkgver 2013-03-15
|
|
|
|
Name: kicad
|
2024-01-06 01:41:01 +01:00
|
|
|
Epoch: 1
|
2024-01-06 01:41:01 +01:00
|
|
|
Version: 6.0.7
|
2024-01-06 01:41:01 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 01:41:01 +01:00
|
|
|
Summary: The KiCad EDA Suite project is a software capable of schematic and printed circuit board design
|
2024-01-06 01:41:01 +01:00
|
|
|
Group: Graphical Desktop/Applications/Graphics
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 01:41:01 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://www.kicad.org/
|
|
|
|
Source: https://gitlab.com/kicad/code/kicad/-/archive/%{version}/kicad-%{version}.tar.bz2
|
2024-01-06 01:41:01 +01:00
|
|
|
Patch0: kicad-20130331-wxWidgets-3.0.1.patch
|
|
|
|
License: GPL, KiCad Free Documentation Licence
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libGLU-devel
|
2024-01-06 01:41:01 +01:00
|
|
|
BuildRequires: libatk-devel
|
2024-01-06 01:41:01 +01:00
|
|
|
BuildRequires: libcairo-devel
|
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
BuildRequires: libgcc
|
2024-01-06 01:41:01 +01:00
|
|
|
BuildRequires: libgdk-pixbuf-devel
|
|
|
|
BuildRequires: libglib-devel
|
2024-01-06 01:41:01 +01:00
|
|
|
BuildRequires: libglvnd-devel
|
2024-01-06 01:41:01 +01:00
|
|
|
BuildRequires: libgtk3-devel
|
|
|
|
BuildRequires: libharfbuzz-devel
|
2024-01-06 01:41:01 +01:00
|
|
|
BuildRequires: libngspice-devel
|
2024-01-06 01:41:01 +01:00
|
|
|
BuildRequires: libocct-devel
|
|
|
|
BuildRequires: libpango-devel
|
2024-01-06 01:41:01 +01:00
|
|
|
BuildRequires: libpixman-devel
|
2024-01-06 01:41:01 +01:00
|
|
|
BuildRequires: libpython3-devel
|
|
|
|
BuildRequires: libpython310-devel
|
2024-01-06 01:41:01 +01:00
|
|
|
BuildRequires: libstdc++6-devel
|
2024-01-06 01:41:01 +01:00
|
|
|
BuildRequires: libwx_baseu-devel
|
|
|
|
BuildRequires: libwx_gtk3u-devel
|
2024-01-06 01:41:01 +01:00
|
|
|
BuildRequires: libz-devel
|
2024-01-06 01:41:01 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 01:41:01 +01:00
|
|
|
BuildRequires: libocct-devel
|
2024-01-06 01:41:01 +01:00
|
|
|
BuildRequires: python-wxPython-py3
|
2024-01-06 01:41:01 +01: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:
|
|
|
|
- Eeschema: schematic entry
|
|
|
|
- Pcbnew: board editor
|
|
|
|
- Gerbview: GERBER viewer (photoplotter documents)
|
|
|
|
- Cvpcb: footprint selector for components used in the circuit design
|
|
|
|
- Kicad: project manager
|
|
|
|
|
2024-01-06 01:41:01 +01:00
|
|
|
%debug_package
|
2024-01-06 01:41:01 +01:00
|
|
|
|
|
|
|
%prep
|
2024-01-06 01:41:01 +01:00
|
|
|
%setup -q
|
2024-01-06 01:41:01 +01:00
|
|
|
#-D -T
|
2024-01-06 01:41:01 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-06 01:41:01 +01:00
|
|
|
#:<< _EOF
|
2024-01-06 01:41:01 +01:00
|
|
|
%cmake -d build \
|
|
|
|
-DKICAD_STABLE_VERSION=ON \
|
|
|
|
-DBUILD_DOCS:BOOL=ON \
|
|
|
|
-DBUILD_SHARED_LIBS:BOOL=ON \
|
|
|
|
-DKICAD_USE_OCE=OFF \
|
|
|
|
-DKICAD_SCRIPTING=ON \
|
|
|
|
-DKICAD_SCRIPTING_PYTHON3=ON \
|
|
|
|
-DKICAD_SCRIPTING_MODULES=ON \
|
|
|
|
-DKICAD_SCRIPTING_WXPYTHON=ON \
|
|
|
|
-DKICAD_SCRIPTING_ACTION_MENU=ON \
|
|
|
|
-DKICAD_SCRIPTING_WXPYTHON_PHOENIX=ON \
|
|
|
|
-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-unicode-3 \
|
|
|
|
-DBUILD_GITHUB_PLUGIN=ON \
|
|
|
|
-DPYTHON_EXECUTABLE=%{__python3} \
|
2024-01-06 01:41:01 +01:00
|
|
|
-DKICAD_USE_EGL=1 \
|
2024-01-06 01:41:01 +01:00
|
|
|
.
|
|
|
|
|
|
|
|
# -DKICAD_USE_OCC=ON \
|
|
|
|
|
2024-01-06 01:41:01 +01:00
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 01:41:01 +01:00
|
|
|
%makeinstall -C build
|
2024-01-06 01:41:01 +01:00
|
|
|
|
|
|
|
#cd %{buildroot}%{_datadir}/kicad
|
|
|
|
#tar -xzf %{SOURCE1}
|
|
|
|
# install localization
|
|
|
|
#rm -rf %{buildroot}%{_datadir}/%{name}/internat/
|
|
|
|
#cd %{buildroot}%{_datadir}/kicad
|
|
|
|
#tar -xzf %{SOURCE2}
|
|
|
|
#install -d %{buildroot}%{_datadir}/locale
|
|
|
|
#cd internat
|
|
|
|
#for dir in ca cs de es fr hu it ko nl pl pt ru sl sv zh_CN; do
|
|
|
|
# install -d %{buildroot}%{_datadir}/locale/${dir}/LC_MESSAGES
|
|
|
|
# install -m 644 ${dir}/%{name}.mo %{buildroot}%{_datadir}/locale/${dir}/LC_MESSAGES/%{name}.mo
|
|
|
|
#done
|
|
|
|
#cd ..
|
|
|
|
#rm -rf %{buildroot}%{_datadir}/%{name}/internat/
|
|
|
|
#
|
|
|
|
#%find_lang %{name}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
#-f %{name}.lang
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 01:41:01 +01:00
|
|
|
%{_bindir}/*
|
|
|
|
%{python3_sitelib}/_pcbnew.so
|
|
|
|
%{python3_sitelib}/pcbnew.py
|
2024-01-06 01:41:01 +01:00
|
|
|
%{_libdir}/kicad/plugins/3d/libs3d_plugin_*.so
|
2024-01-06 01:41:01 +01:00
|
|
|
%{_libdir}/libkicad_3dsg.so
|
|
|
|
%{_libdir}/libkicad_3dsg.so.*
|
2024-01-06 01:41:01 +01:00
|
|
|
%dir %{_datadir}/kicad
|
2024-01-06 01:41:01 +01:00
|
|
|
%{_datadir}/kicad/*
|
2024-01-06 01:41:01 +01:00
|
|
|
%{_datadir}/metainfo/org.kicad.kicad.metainfo.xml
|
2024-01-06 01:41:01 +01:00
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
|
%{_datadir}/mime/packages/kicad-gerbers.xml
|
|
|
|
%{_datadir}/mime/packages/kicad-kicad.xml
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/*.png
|
|
|
|
%{_datadir}/icons/hicolor/*/mimetypes/*.png
|
|
|
|
%{_datadir}/icons/hicolor/scalable/apps/*.svg
|
|
|
|
%{_datadir}/icons/hicolor/scalable/mimetypes/*.svg
|
2024-01-06 01:41:01 +01:00
|
|
|
%dir %{_datadir}/doc/kicad
|
|
|
|
%{_datadir}/doc/kicad/*
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 01:41:01 +01:00
|
|
|
* Wed Jul 27 2022 Automatic Build System <autodist@mambasoft.it> 6.0.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 01:41:01 +01:00
|
|
|
* Sat Jul 23 2022 Automatic Build System <autodist@mambasoft.it> 6.0.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 01:41:01 +01:00
|
|
|
* Thu Oct 14 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.1.10-1mamba
|
|
|
|
- update to 5.1.10
|
|
|
|
|
2024-01-06 01:41:01 +01:00
|
|
|
* Sun Jan 18 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 20130518-1mamba
|
|
|
|
- update to 20130518
|
|
|
|
|
2024-01-06 01:41:01 +01:00
|
|
|
* Fri May 10 2013 Automatic Build System <autodist@mambasoft.it> 20130331-1mamba
|
|
|
|
- update to 20130331
|
|
|
|
|
|
|
|
* Thu Apr 26 2012 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 20120415-1mamba
|
|
|
|
- update to snapshot 20120415
|
|
|
|
|
|
|
|
* Sat Mar 31 2012 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 20120324-2mamba
|
|
|
|
- fixed a path error in library and modules
|
|
|
|
- added translations files
|
|
|
|
|
|
|
|
* Thu Mar 29 2012 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 20120324-1mamba
|
|
|
|
- changed version number to snapshot date
|
|
|
|
- added library files
|
|
|
|
|
|
|
|
* Mon Mar 26 2012 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> source-1mamba
|
|
|
|
- package created by autospec
|