File ktechlab.spec of Package kde3-ktechlab
#
# spec file for package KTechLab
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# norootforbuild
%if 0%{suse_version} > 1110
Name: kde3-ktechlab
%endif
%if 0%{suse_version} < 1120
Name: ktechlab
%endif
Summary: Development and simulation environment for microcontrollers
Version: 0.3.7
Release: 1
Group: Productivity/Scientific/Other
Url: http://ktechlab.org/
License: GPL-2.0
Vendor: openSUSE-Education
BuildRequires: kdelibs3-devel readline-devel popt-devel gtk2-devel
%if %suse_version < 1320
BuildRequires: gpsim-devel
%endif
Source0: ktechlab-%version.tar.bz2
Patch0: ktechlab-deprecate-update-desktop-files.patch
BuildRoot: %_tmppath/%name-%version-build
%define kdedir /opt/kde3
%description
KTechLab is a development and simulation environment for
microcontrollers and electronic circuits, distributed
under the GNU General Public License.
KTechlab consists of several well-integrated components:
A circuit simulator, capable of simulating logic, linear
devices and some nonlinear devices.
* Integration with gpsim, allowing PICs to be simulated
in circuit.
* A schematic editor, which provides a rich real-time
feedback of the simulation.
* A flowchart editor, allowing PIC programs to be
constructed visually.
* MicroBASIC; a BASIC-like compiler for PICs, written
as a companion program to KTechLab.
* An embedded Kate part, which provides a powerful
editor for PIC programs.
* Integrated assembler and disassembler via gpasm and gpdasm..
Authors:
--------
--- This release was done by ---
Jason Lucas
Alan Grimes
Zoltan Padrah <zoltan_padrah@users.sourceforge.net>
Julian Bäume <julian@svg4all.de>
--- former authors ---
David Saxton <david@bluehaze.org>
Daniel Clarke <daniel.jc@gmail.com>
%prep
%setup -q -n ktechlab-%version
. /etc/opt/kde3/common_options
update_admin
sed -i 's|QPixmap::QPixmap|QPixmap|g' src/gui/itemeditor/orientationwidget.cpp
sed -i 's|QString::QString|QString|g' src/electronics/components/discretelogic.cpp
sed -i 's|QString::QString|QString|g' src/electronics/components/ecsubcircuit.cpp
sed -i 's|QPoint::QPoint|QPoint|g' src/picitem.cpp
sed -i 's|while.png for.png||g' icons/pics/Makefile.in
sed -i 's|while.png for.png||g' icons/pics/Makefile.am
%patch -P 0 -p1
%build
. /etc/opt/kde3/common_options
./configure $configkde --disable-final
make
%install
%makeinstall
# move to the right place
mkdir -p %{buildroot}/opt/kde3/share/applications/kde
mv %{buildroot}/opt/kde3/share/applnk/Development/ktechlab.desktop %{buildroot}/opt/kde3/share/applications/kde/ktechlab.desktop
%find_lang ktechlab
%files -f ktechlab.lang
%defattr(-, root, root)
%{kdedir}/bin/ktechlab
%{kdedir}/bin/microbe
%{kdedir}/share/applications/kde/ktechlab.desktop
%{kdedir}/share/apps/katepart/syntax/microbe.xml
%{kdedir}/share/apps/ktechlab/icons/*.png
%{kdedir}/share/apps/ktechlab/contexthelp/*
%{kdedir}/share/apps/ktechlab/examples/*/*.circuit
%{kdedir}/share/apps/ktechlab/*.rc
%{kdedir}/share/config.kcfg/ktechlab.kcfg
%{kdedir}/share/icons/hicolor/*/*
%{kdedir}/share/mimelnk/application/*.desktop
%{kdedir}/share/apps/ktechlab/models/transistors.lib
%dir %{kdedir}/share/apps/ktechlab
%dir %{kdedir}/share/apps/ktechlab/icons
%dir %{kdedir}/share/apps/ktechlab/contexthelp
%dir %{kdedir}/share/apps/ktechlab/examples
%dir %{kdedir}/share/apps/ktechlab/examples/555
%dir %{kdedir}/share/apps/ktechlab/examples/basic
%dir %{kdedir}/share/apps/ktechlab/examples/diodes
%dir %{kdedir}/share/apps/ktechlab/examples/jfets
%dir %{kdedir}/share/apps/ktechlab/examples/mosfets
%dir %{kdedir}/share/apps/ktechlab/examples/opamps
%dir %{kdedir}/share/apps/ktechlab/examples/transistors
%dir %{kdedir}/share/apps/ktechlab/models
%Changelog