File _service:set_version:ktechlab.spec of Package ktechlab

#
# spec file for package ktechlab
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


Name:           ktechlab
Version:        0.50.0
Release:        0
Summary:        IDE for Microcontrollers and Electronics
License:        GPL-2.0+
Group:          Productivity/Scientific/Other
Url:            https://cgit.kde.org/ktechlab.git/
Source0:        %{name}-%{version}.tar.xz
Patch1:         %{name}-KWindowSystem.patch
Patch2:         %{name}-QPainterPath.patch
Patch10:        desktop-file.patch
BuildRequires:  update-desktop-files
BuildRequires:  cmake >= 3.1
BuildRequires:  gcc-c++
BuildRequires:  cmake(Qt5Core)
BuildRequires:  cmake(Qt5DBus)
BuildRequires:  cmake(Qt5Widgets)
BuildRequires:  cmake(Qt5Test)
BuildRequires:  cmake(KF5Config)
BuildRequires:  cmake(KF5CoreAddons)
BuildRequires:  cmake(KF5DocTools)
BuildRequires:  cmake(KF5IconThemes)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5KDELibs4Support)
BuildRequires:  cmake(KF5KHtml)
BuildRequires:  cmake(KF5KIO)
BuildRequires:  cmake(KF5Parts)
BuildRequires:  cmake(KF5TextEditor)
BuildRequires:  cmake(KF5TextWidgets)
BuildRequires:  cmake(KF5Solid)
BuildRequires:  cmake(KF5WidgetsAddons)
BuildRequires:  cmake(KF5XmlGui)
BuildRequires:  plasma5-desktop
BuildRequires:  hicolor-icon-theme
BuildRequires:  glib2-devel
BuildRequires:  gpsim-devel

%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
%patch1 -p1
%patch2 -p1
%patch10 -p1

%build
cmake  -DCMAKE_INSTALL_PREFIX:PATH=/usr
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install
%suse_update_desktop_file org.kde.ktechlab

%post
update-mime-database /usr/share/mime

%postun
update-mime-database /usr/share/mime

%files
%defattr(-, root, root)
%{_bindir}/ktechlab
%{_bindir}/microbe
%{_datadir}/katepart5/*
%{_datadir}/kxmlgui5/*
%{_datadir}/applications/org.kde.ktechlab.desktop
%{_datadir}/mime/packages/ktechlab_mime.xml
%{_datadir}/metainfo/org.kde.ktechlab.appdata.xml
%{_datadir}/config.kcfg/ktechlab.kcfg
%{_datadir}/ktechlab
%{_datadir}/icons/hicolor/*
%doc %{_datadir}/doc/HTML/en/ktechlab

%changelog
openSUSE Build Service is sponsored by