File klayout.spec of Package klayout
#
# spec file for package klayout
#
# Copyright (c) 2016-2024 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: klayout
Version: 0.28.17
Release: 0
Summary: GDS2 chip layout Viewer
License: GPL-2.0+
Group: Productivity/Scientific/Electronics
Url: http://www.klayout.org
Source0: http://www.klayout.org/downloads/source/%{name}-%{version}.tar.bz2
Source1: %{name}.desktop
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: qt6-base-devel
BuildRequires: qt6-network-devel
BuildRequires: qt6-multimedia-devel
BuildRequires: qt6-uitools-devel
BuildRequires: qt6-sql-devel
BuildRequires: qt6-svg-devel
BuildRequires: qt6-printsupport-devel
BuildRequires: qt6-xml-devel
BuildRequires: qt6-designer-devel
BuildRequires: qt6-multimediawidgets-devel
BuildRequires: qt6-qt5compat-devel
BuildRequires: libgit2-devel
BuildRequires: ruby
BuildRequires: ruby-devel
BuildRequires: python
BuildRequires: python-devel
BuildRequires: pkgconfig
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
GDS2 (chip layout) viewer for the chip design engineer.
The main objective was to focus on the basic functionality but adding some
useful features that many, even commercial viewers don't have:
* shows the design as it is
* can animate layers to make them blink or scroll the fill pattern.
* display a layer "marked" by drawing a small cross on all shapes<
All comes wrapped in a nice, Qt based state of the art GUI. Usage of the viewer
is simple and is similar to that of other tools.
%prep
%setup -q
%build
BUILD_DATE=$(date "+%Y-%m-%d")
qmake6 -recursive HAVE_PYTHON="1" HAVE_GIT2="1" HAVE_RUBY="1" \
HAVE_QTBINDINGS="1" KLAYOUT_VERSION="%version" \
KLAYOUT_VERSION_DATE="$BUILD_DATE" \
KLAYOUT_VERSION_REV="$KLAYOUT_VERSION_REV" \
QMAKE_CFLAGS+="%optflags" QMAKE_CXXFLAGS+="%optflags" \
QMAKE_STRIP="/bin/true" src/klayout.pro
%make_build
%install
%make_install
install -Dm644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -Dm644 src/images/logo.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
%if 0%{?suse_version}%{?sles_version}
%suse_update_desktop_file -n %{name}
%endif
%files
%defattr(-,root,root)
%doc LICENSE
%{_bindir}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog