Updated CONTRIB file, preparations for RPM building.

This commit is contained in:
Matthias 2017-09-10 17:04:31 +00:00
parent 668959c943
commit 618c16f431
5 changed files with 1851 additions and 38 deletions

10
CONTRIB
View File

@ -6,14 +6,4 @@ List of Contributions and 3rd Party Sources
The original version of the code for the GDS2 text format reader and writer has been contributed
by Romain Gauci from Oscillated Recall Technology (http://www.or-tech.co.jp).
2.) contrib/zlib
ZLIB 1.2.5
See license terms and conditions in zlib.h
Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler
Jean-loup Gailly Mark Adler
jloup@gzip.org madler@alumni.caltech.edu

1794
Changelog Normal file

File diff suppressed because it is too large Load Diff

10
etc/klayout.desktop Normal file
View File

@ -0,0 +1,10 @@
[Desktop Entry]
Version=1.0
Name=Klayout, viewer and editor of mask layouts.
GenericName=layout viewer
Comment=Klayout is a viewer (and editor) of mask layout in a.o. GDSII and CIF format.
Exec=klayout
Icon=klayout
Type=Application
Categories=Development;Engineering;Electronics;

BIN
etc/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

View File

@ -15,60 +15,80 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%ifarch %ix86
TARGET="linux-32-gcc-release"
%else
TARGET="linux-64-gcc-release"
%endif
VERSION="%VERSION%"
Name: klayout
Version: $VERSION
Version: %{git_version}
Release: 0
Summary: KLayout, viewer and editor for mask layouts
License: GPL-2.0+
Group: Productivity/Scientific/Electronics
Url: http://www.klayout.de
%if "%{git_source}" == ""
Source0: http://www.klayout.de/downloads/%{name}-%{version}.tar.gz
Source1: %{name}.desktop
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Mask layout viewer and editor for the chip design engineer.
Highlights are:
* Efficient viewing in viewer mode
* Advanced editing features in editor mode (such as
parametrized cells)
* Scripting capability (Ruby and Python)
* Net tracing
* DRC functionality
* Clip feature
* XOR feature
For details see README.md
%prep
%setup -q
%if "%{git_source}" != ""
mkdir -p %{_sourcedir}
cp -pr %{git_source}/* %{_sourcedir}
%else
%setup -q
%endif
%build
./build.sh -rpath ${_libdir}/klayout \
-bin `pwd`/bin.$TARGET \
-build `pwd`/build.$TARGET \
%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 \
-j4 \
-qmake $QMAKE \
-without-qtbinding
%install
install -Dm644 `pwd`/bin.$TARGET/lib*.so* %{buildroot}%{_libdir}/klayout
install -Dm644 `pwd`/bin.$TARGET/klayout `pwd`/bin.$TARGET/strm* %{buildroot}%{_bindir}
install -Dm644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -Dm644 src/images/logo.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
%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
%if 0%{?suse_version}%{?sles_version}
%suse_update_desktop_file -n %{name}
%endif
%files
%defattr(-,root,root)
%doc LICENSE Changelog
%doc %{_sourcedir}/LICENSE %{_sourcedir}/Changelog %{_sourcedir}/CONTRIB
%{_bindir}/klayout
%{_bindir}/strm*
%{_libdir}/klayout/*
@ -76,4 +96,3 @@ install -Dm644 src/images/logo.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
%{_datadir}/pixmaps/%{name}.png
%changelog
See Changelog file