File qucs.spec of Package qucs

#
# spec file for package qucs
#
# 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.19
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:            http://qucs.sf.net
Source0:        https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE qucs-0.0.19-desktop-category.patch -- Respect openSUSE's own desktop categories
Patch0:         qucs-0.0.19-desktop-category.patch
# PATCH-FIX-OPENSUSE qucs-digisim-verilog.patch -- using verilog for digital simulation by default
Patch1:         qucs-digisim-verilog.patch
BuildRequires:  adms
BuildRequires:  bison
BuildRequires:  fdupes
BuildRequires:  flex
BuildRequires:  gcc-c++
BuildRequires:  gperf
BuildRequires:  hicolor-icon-theme
BuildRequires:  libqt4-devel
Requires:       adms
Requires:       asco
Requires:       iverilog
%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.

%package     -n libqucs0
Summary:        Qucs library
Group:          System/Libraries

%description -n libqucs0
This package contains the libqucs shared library.

%package        devel
Summary:        Development files fir QUCS library
Group:          Development/Libraries/Other
Requires:       libqucs0 = %{version}

%description    devel
This package contains the development files for Qucs.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
chmod -x CONTRIBUTING.md qucs/COPYING

%build
%configure --disable-doc
make %{?_smp_mflags}

%install
%make_install
%fdupes %{buildroot}/%{_datadir}/qucs/docs
rm %{buildroot}/%{_libdir}/libqucs.la

%post -n libqucs0 -p /sbin/ldconfig
%postun -n libqucs0 -p /sbin/ldconfig

%files
%doc CONTRIBUTING.md NEWS.md README.md
%license qucs/COPYING
%{_bindir}/ps2sp
%{_bindir}/qucs*
%{_datadir}/qucs/
%exclude %{_datadir}/qucs/lang
%{_datadir}/qucs-core/
%{_mandir}/man1/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/qucs.*

%files -n libqucs0
%{_libdir}/libqucs.so.0*

%files devel
%{_libdir}/libqucs.so
%{_includedir}/qucs-core/

%files lang
%{_datadir}/qucs/lang

%changelog
openSUSE Build Service is sponsored by