kicad/kicad.spec

144 lines
5.1 KiB
RPMSpec
Raw Permalink Normal View History

%define pkgver %(version=%version;echo ${version:0:4}-${version:4:2}-${version:6:2})
%define docpkgver 2013-03-15
Name: kicad
Version: 20130331
Release: 1mamba
Summary: The KiCad EDA Suite project is a software capable of schematic and printed circuit board design.
Summary(it): Il progetto KiCad EDA Suite è un programma in grado di realizare schemi elettronici e circuiti stampati
Group: Graphical Desktop/Applications/Graphics
Vendor: openmamba
Distribution: openmamba
Packager: Ercole 'ercolinux' Carpanetto <ercole69@gmail.com>
URL: http://kicad.sourceforge.net/wiki/Main_Page
Source: http://iut-tice.ujf-grenoble.fr/cao/kicad-sources_stable_%{pkgver}_BZR4008.zip
#Source1: http://iut-tice.ujf-grenoble.fr/cao/kicad-docs+translations_only_for-stable_%{docpkgver}_BZR4003.zip
#Source: http://kicad.picaxe.cz/source/kicad-%{version}-r3512-source.tar.bz2
#Source1: kicad-library.tar.gz
#Source2: kicad-locale.tar.gz
Patch0: kicad-20130331-wxWidgets-3.0.1.patch
License: GPL, KiCad Free Documentation Licence
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libGL-devel
BuildRequires: libGLU-devel
BuildRequires: libICE-devel
BuildRequires: libSM-devel
BuildRequires: libstdc++6-devel
BuildRequires: libwxBase-unicode-devel
BuildRequires: libwxGTK-unicode-devel
BuildRequires: libX11-devel
BuildRequires: libXext-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%debug_package
%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
%description -l it
Kicad è un programma EDA per disegnare schemi elettronici e circuiti stampati fino a 16 livelli.
Kicad è un set di 4 programmi e un gestore:
- Eeschema: serve per generare gli schemi elettronici
- Pcbnew: editor delle schede
- Gerbview: visualizzatore di file GERBER (documenti per photoplotter)
- Cvpcb: selezionatore di footprint per i componenti usati nel design del circuito
- Kicad: project manager
%prep
%setup -q -c %{name}-src
unzip -qqu %{SOURCE0}
#unzip -qqu %{SOURCE1}
mv stable*/* .
%patch0 -p1
%build
cmake -DKICAD_STABLE_VERSION=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr -DBUILD_DOCS:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON .
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
#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}/cvpcb
%{_bindir}/eeschema
%{_bindir}/gerbview
%{_bindir}/kicad
%{_bindir}/pcbnew
%{_bindir}/bitmap2component
%{_bindir}/pcb_calculator
%{_bindir}/freeroute.jnlp
%dir %{_prefix}/lib/kicad
%dir %{_prefix}/lib/kicad/plugins
%{_prefix}/lib/kicad/plugins/netlist_form_pads-pcb.xsl
%dir %{_datadir}/kicad
%dir %{_datadir}/kicad/demos
%{_datadir}/kicad/demos/*
%dir %{_datadir}/kicad/template
%{_datadir}/kicad/template/*
#%dir %{_datadir}/kicad/library
#%{_datadir}/kicad/library/*
#%dir %{_datadir}/kicad/modules
#%{_datadir}/kicad/modules/*
#%{_datadir}/kicad/COPYRIGHT.txt
%{_datadir}/icons/hicolor/48x48/apps/kicad.png
%{_datadir}/icons/hicolor/*/mimetypes/application-x-kicad-project.png
%{_datadir}/icons/hicolor/scalable/apps/kicad.svg
%{_datadir}/icons/hicolor/scalable/mimetypes/application-x-kicad-project.svg
%{_datadir}/mimelnk/application/x-kicad-project.desktop
%{_datadir}/mimelnk/application/x-kicad-schematic.desktop
%{_datadir}/mime/packages/kicad.xml
%{_datadir}/applications/eeschema.desktop
%{_datadir}/applications/kicad.desktop
%dir %{_datadir}/doc/kicad
%{_datadir}/doc/kicad/*
%changelog
* 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