File qucs.spec of Package qucs
#
# spec file for package qucs
#
# Copyright (c) 2024 SUSE LLC.
# Copyright (c) 2018 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
Version: 0.0.20
Release: 0
Summary: Circuit Simulator with Graphical User Interface (Qt)
License: GPL-2.0-only AND GPL-2.0-or-later
Group: Productivity/Scientific/Electronics
Url: https://qucs.sourceforge.net/
Source0: https://codeload.github.com/Qucs/qucs/tar.gz/refs/tags/%{version}#/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE qucs-0.0.20-desktop-category.patch -- Respect openSUSE's own desktop categories
Patch0: qucs-0.0.20-desktop-category.patch
# PATCH-FIX-OPENSUSE qucs-digisim-verilog.patch -- using verilog for digital simulation by default
Patch1: qucs-digisim-verilog.patch
Patch2: qucs-ftx-build-gcc13.patch
BuildRequires: adms
BuildRequires: bison
BuildRequires: fdupes
BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: gperf
BuildRequires: hicolor-icon-theme
BuildRequires: libqt4-devel
BuildRequires: automake
BuildRequires: libtool
Requires: adms
Requires: asco
Requires: iverilog
Requires: qucsator
%lang_package
%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
%autosetup -p1
%build
./bootstrap
%configure --disable-doc \
OCTAVE=%{_bindir}/octave
%make_build
%install
%make_install
%fdupes %{buildroot}/%{_datadir}/qucs/docs
%check
%files
%doc AUTHORS NEWS README RELEASE THANKS TODO
%license COPYING
%{_bindir}/ps2sp
%{_bindir}/qucs*
%{_datadir}/qucs/
%exclude %{_datadir}/qucs/lang
%{_mandir}/man1/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/qucs.*
%files lang
%{_datadir}/qucs/lang
%changelog