File ktechlab.spec of Package ktechlab
#
# spec file for package ktechlab
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: ktechlab
Version: 0.51.0
Release: 0
Summary: KTechlab is a development and simulation environment for microcontrollers
License: GPL-2.0-or-later
Group: Productivity/Scientific/Other
URL: https://invent.kde.org/sdk/ktechlab
Source0: https://github.com/ktechlab/ktechlab/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: %{name}-desktop-categories.patch
BuildRequires: cmake
BuildRequires: extra-cmake-modules >= 5.14.0
BuildRequires: gcc-c++
BuildRequires: gpsim-devel
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: cmake(KF5Config)
BuildRequires: cmake(KF5CoreAddons)
BuildRequires: cmake(KF5DocTools)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5IconThemes)
BuildRequires: cmake(KF5KDELibs4Support)
BuildRequires: cmake(KF5KHtml)
BuildRequires: cmake(KF5KIO)
BuildRequires: cmake(KF5Parts)
BuildRequires: cmake(KF5Solid)
BuildRequires: cmake(KF5TextEditor)
BuildRequires: cmake(KF5TextWidgets)
BuildRequires: cmake(KF5WidgetsAddons)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5SerialPort)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(glib-2.0)
%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.
%prep
%setup -q
%patch0 -p1
%build
cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr
%make_build
%install
%make_install
%suse_update_desktop_file -n org.kde.%{name}
%find_lang %{name}
%files -f %{name}.lang
%license COPYING COPYING.icons-kde3 COPYING.q3poligonscanner
%doc README.md
%{_bindir}/microbe
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/katepart5
%{_kf5_kxmlguidir}/%{name}
%{_kf5_iconsdir}/hicolor/*/apps/*.png
%{_kf5_iconsdir}/hicolor/*/mimetypes/*.png
%{_kf5_applicationsdir}/org.kde.ktechlab.desktop
%{_kf5_sharedir}/metainfo/org.kde.ktechlab.appdata.xml
%{_kf5_sharedir}/mime/packages/ktechlab_mime.xml
%{_kf5_sharedir}/config.kcfg/ktechlab.kcfg
%dir %{_kf5_sharedir}/config.kcfg
%changelog