173 lines
5.4 KiB
RPMSpec
173 lines
5.4 KiB
RPMSpec
%define pkgver %(version=%version;echo ${version:0:4}-${version:4:2}-${version:6:2})
|
|
%define docpkgver 2013-03-15
|
|
Name: kicad
|
|
Epoch: 1
|
|
Version: 7.0.0
|
|
Release: 1mamba
|
|
Summary: The KiCad EDA Suite project is a software capable of schematic and printed circuit board design
|
|
Group: Graphical Desktop/Applications/Graphics
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
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
|
|
Patch0: kicad-20130331-wxWidgets-3.0.1.patch
|
|
License: GPL, KiCad Free Documentation Licence
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libGLU-devel
|
|
BuildRequires: libat-spi2-core-devel
|
|
BuildRequires: libcairo-devel
|
|
BuildRequires: libcurl-devel
|
|
BuildRequires: libfontconfig-devel
|
|
BuildRequires: libfreetype-devel
|
|
BuildRequires: libgcc
|
|
BuildRequires: libgdk-pixbuf-devel
|
|
BuildRequires: libglib-devel
|
|
BuildRequires: libglvnd-devel
|
|
BuildRequires: libgtk3-devel
|
|
BuildRequires: libharfbuzz-devel
|
|
BuildRequires: libngspice-devel
|
|
BuildRequires: libocct-devel
|
|
BuildRequires: libodbc-devel
|
|
BuildRequires: libpango-devel
|
|
BuildRequires: libpixman-devel
|
|
BuildRequires: libpython3-devel
|
|
BuildRequires: libpython310-devel
|
|
BuildRequires: libstdc++6-devel
|
|
BuildRequires: libz-devel
|
|
BuildRequires: wxwidgets-devel
|
|
BuildRequires: wxwidgets-gtk3-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: libocct-devel
|
|
BuildRequires: python-wxPython-py3
|
|
|
|
%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
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q
|
|
#-D -T
|
|
|
|
%build
|
|
#:<< _EOF
|
|
%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} \
|
|
-DKICAD_USE_EGL=1 \
|
|
.
|
|
|
|
# -DKICAD_USE_OCC=ON \
|
|
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall -C build
|
|
|
|
#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)
|
|
%{_bindir}/*
|
|
%{python3_sitelib}/_pcbnew.so
|
|
%{python3_sitelib}/pcbnew.py
|
|
%{_libdir}/kicad/plugins/3d/libs3d_plugin_*.so
|
|
%{_libdir}/libkicad_3dsg.so
|
|
%{_libdir}/libkicad_3dsg.so.*
|
|
%dir %{_datadir}/kicad
|
|
%{_datadir}/kicad/*
|
|
%{_datadir}/metainfo/org.kicad.kicad.metainfo.xml
|
|
%{_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
|
|
#%dir %{_datadir}/doc/kicad
|
|
#%{_datadir}/doc/kicad/*
|
|
|
|
%changelog
|
|
* Tue Feb 14 2023 Automatic Build System <autodist@mambasoft.it> 7.0.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Jan 25 2023 Automatic Build System <autodist@mambasoft.it> 6.0.11-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Dec 21 2022 Automatic Build System <autodist@mambasoft.it> 6.0.10-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Oct 29 2022 Automatic Build System <autodist@mambasoft.it> 6.0.9-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Sep 28 2022 Automatic Build System <autodist@mambasoft.it> 6.0.8-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Jul 27 2022 Automatic Build System <autodist@mambasoft.it> 6.0.7-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Jul 23 2022 Automatic Build System <autodist@mambasoft.it> 6.0.6-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Oct 14 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.1.10-1mamba
|
|
- update to 5.1.10
|
|
|
|
* Sun Jan 18 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 20130518-1mamba
|
|
- update to 20130518
|
|
|
|
* 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
|