File gtkwave.spec of Package gtkwave
#
# spec file for package gtkwave
#
# 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: gtkwave
Version: 3.3.48
Release: 0
Summary: Waveform viewer for Ditital Signals
License: GPL-2.0+
Group: Productivity/Scientific/Electronics
Url: http://gtkwave.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: gperf
BuildRequires: gtk2-devel
BuildRequires: judy-devel
BuildRequires: tcl-devel
BuildRequires: tk-devel
BuildRequires: update-desktop-files
BuildRequires: xz-devel
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
GTKWave is a waveform viewer that can view VCD files produced by most Verilog
simulation tools, as well as LXT files produced by certain Verilog simulation
tools.
%prep
%setup -q
%build
%configure \
--disable-mime-update \
--enable-judy
make %{?_smp_mflags}
%install
%makeinstall
install -D -m 644 share/icons/gnome/16x16/mimetypes/gtkwave.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/gtkwave.png
install -D -m 644 share/icons/gnome/32x32/mimetypes/gtkwave.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/gtkwave.png
install -D -m 644 share/icons/gnome/48x48/mimetypes/gtkwave.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/gtkwave.png
%suse_update_desktop_file -i -r %{name} Education Engineering
# non OSI compliant files [bnc#783166]
rm -r %{buildroot}%{_datadir}/%{name}/examples/des*
%fdupes %{buildroot}/%{_datadir}/icons/
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc ChangeLog README COPYING LICENSE.TXT
%{_datadir}/gtkwave/*
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man5/*
%dir %{_datadir}/gtkwave
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/icons/gnome/
%dir %{_datadir}/icons/gnome/*x*/
%dir %{_datadir}/icons/gnome/*/mimetypes/
%{_datadir}/icons/gnome/*/mimetypes/*.png
%{_datadir}/icons/gtkwave*
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/mime/packages/x-gtkwave-extension*.xml
%changelog