2017-09-10 17:05:27 +02:00
|
|
|
#
|
|
|
|
|
# spec file for package klayout
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2017 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
|
2017-09-10 19:04:31 +02:00
|
|
|
Version: %{git_version}
|
2017-09-10 17:05:27 +02:00
|
|
|
Release: 0
|
|
|
|
|
Summary: KLayout, viewer and editor for mask layouts
|
|
|
|
|
License: GPL-2.0+
|
|
|
|
|
Group: Productivity/Scientific/Electronics
|
|
|
|
|
Url: http://www.klayout.de
|
2017-09-10 19:04:31 +02:00
|
|
|
%if "%{git_source}" == ""
|
2017-09-10 17:05:27 +02:00
|
|
|
Source0: http://www.klayout.de/downloads/%{name}-%{version}.tar.gz
|
2017-09-10 19:04:31 +02:00
|
|
|
%endif
|
2017-09-10 17:05:27 +02:00
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Mask layout viewer and editor for the chip design engineer.
|
|
|
|
|
|
2017-09-10 19:04:31 +02:00
|
|
|
For details see README.md
|
2017-09-10 17:05:27 +02:00
|
|
|
|
|
|
|
|
%prep
|
2017-09-10 19:04:31 +02:00
|
|
|
|
|
|
|
|
%if "%{git_source}" != ""
|
|
|
|
|
mkdir -p %{_sourcedir}
|
|
|
|
|
cp -pr %{git_source}/* %{_sourcedir}
|
|
|
|
|
%else
|
|
|
|
|
%setup -q
|
|
|
|
|
%endif
|
2017-09-10 17:05:27 +02:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
2017-09-10 19:04:31 +02:00
|
|
|
%ifarch %ix86
|
|
|
|
|
TARGET="linux-32-gcc-release"
|
|
|
|
|
%else
|
|
|
|
|
TARGET="linux-64-gcc-release"
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
QMAKE=qmake-does-not-exist
|
|
|
|
|
if which qmake; then
|
|
|
|
|
QMAKE=qmake
|
|
|
|
|
elif which qmake-qt4; then
|
|
|
|
|
QMAKE=qmake-qt4
|
|
|
|
|
elif which qmake-qt5; then
|
|
|
|
|
QMAKE=qmake-qt5
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# TODO: remove -without-qtbinding
|
|
|
|
|
cd %{_sourcedir}
|
|
|
|
|
./build.sh -rpath %{_libdir}/klayout \
|
|
|
|
|
-bin %{_builddir}/bin.$TARGET \
|
|
|
|
|
-build %{_builddir}/build.$TARGET \
|
2017-09-10 17:05:27 +02:00
|
|
|
-j4 \
|
2017-09-10 19:04:31 +02:00
|
|
|
-qmake $QMAKE \
|
|
|
|
|
-without-qtbinding
|
2017-09-10 17:05:27 +02:00
|
|
|
|
|
|
|
|
%install
|
2017-09-10 19:04:31 +02:00
|
|
|
|
|
|
|
|
%ifarch %ix86
|
|
|
|
|
TARGET="linux-32-gcc-release"
|
|
|
|
|
%else
|
|
|
|
|
TARGET="linux-64-gcc-release"
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/klayout
|
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
|
install -Dm644 %{_builddir}/bin.$TARGET/lib*.so* %{buildroot}%{_libdir}/klayout
|
|
|
|
|
install -Dm644 %{_builddir}/bin.$TARGET/klayout %{_builddir}/bin.$TARGET/strm* %{buildroot}%{_bindir}
|
|
|
|
|
install -Dm644 %{_sourcedir}/etc/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
install -Dm644 %{_sourcedir}/src/lay/lay/images/logo.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
2017-09-10 17:05:27 +02:00
|
|
|
%if 0%{?suse_version}%{?sles_version}
|
|
|
|
|
%suse_update_desktop_file -n %{name}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
2017-09-10 19:04:31 +02:00
|
|
|
%doc %{_sourcedir}/LICENSE %{_sourcedir}/Changelog %{_sourcedir}/CONTRIB
|
2017-09-10 17:05:27 +02:00
|
|
|
%{_bindir}/klayout
|
|
|
|
|
%{_bindir}/strm*
|
|
|
|
|
%{_libdir}/klayout/*
|
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
|
|
|
|
|
|
|
|
%changelog
|