File qucs.spec of Package qucs-s
#
# spec file for package qucs-s
#
# Copyright (c) 2016 SUSE LINUX 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: qucs-s
Version: 47fdbfa0
Release: 0
Summary: Circuit Simulator with Graphical User Interface (Qt)
License: GPL-2.0 and GPL-2.0+
Group: Productivity/Scientific/Electronics
Url: http://qucs-s.sf.net
Source0: %{name}-%{version}.tar.gz
#Source1: %{name}.desktop
# Qucs icon from http://qucs-s.sourceforge.net/
#Source2: %{name}.png
BuildRequires: cmake
BuildRequires: bison
BuildRequires: fdupes
BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: gperf
BuildRequires: hicolor-icon-theme
BuildRequires: update-desktop-files
BuildRequires: libqt5-linguist-devel
BuildRequires: libqt5-qtbase-devel
BuildRequires: libqt5-qtsvg-devel
Requires: adms
Requires: asco
Requires: iverilog
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Qucs is an integrated circuit simulator which means you are able to
setup a circuit with a graphical user interface (GUI) and simulate the
large-signal, small-signal and noise behaviour of the circuit. After
that simulation has finished you can view the simulation results on a
presentation page or window.
%prep
%setup -q
#cp %{SOURCE1} .
#cp %{SOURCE2} .
%build
%cmake
%cmake_build
%install
%cmake_install
#sed -e 's/Categories=Education;Electronics/Categories=Education;Engineering/g' -i %{buildroot}%{_datadir}/applications/*.desktop
%files
%defattr(-,root,root)
#%doc NEWS.md README COPYING
%{_bindir}/*
%dir %{_datadir}/qucs-s
%{_datadir}/qucs-s/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/man/man1/%{name}.1.gz
%changelog