File qucs.spec of Package qucs

#
# spec file for package qucs
#
# 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:           qucs
Version:        0.0.17
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.sf.net
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1:        %{name}.desktop
# Qucs icon from http://qucs.sourceforge.net/
Source2:        %{name}.png
# PATCH-FIX-OPENSUSE qucs-digisim-verilog.patch -- using verilog for digital simulation by default
Patch1:         qucs-digisim-verilog.patch

BuildRequires:  bison
BuildRequires:  fdupes
BuildRequires:  flex
BuildRequires:  gcc-c++
BuildRequires:  gperf
BuildRequires:  libqt4-devel
BuildRequires:  update-desktop-files

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

cp %{SOURCE1} .
cp %{SOURCE2} .

%build
%configure
make %{?_smp_mflags}

%install
%makeinstall
%fdupes %{buildroot}/%{_datadir}/qucs/

install -Dm 644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
install -Dm 644 %{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png

%suse_update_desktop_file %{name}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc NEWS README COPYING
%{_bindir}/alter
%{_bindir}/asco
%{_bindir}/asco-test
%{_bindir}/log
%{_bindir}/monte
%{_bindir}/postp
%{_bindir}/ps2sp
%{_bindir}/qucs*
%{_bindir}/rosen
%{_datadir}/qucs/
%{_mandir}/man1/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

%changelog
openSUSE Build Service is sponsored by