mirror of https://github.com/KLayout/klayout.git
Cleaner builds for RPM & DEB
This commit is contained in:
parent
11627486d6
commit
3efde26584
|
|
@ -53,11 +53,14 @@ libdir="usr/lib/klayout"
|
|||
# TODO: is there a better way to produce this path?
|
||||
pylibdir="usr/lib/python3/dist-packages/klayout"
|
||||
|
||||
# @@@ TODO: remove -without-qtbinding
|
||||
# clean bin directory
|
||||
rm -rf $bininstdir
|
||||
|
||||
# do the actual build
|
||||
./build.sh -j2 \
|
||||
-bin $bininstdir \
|
||||
-build $builddir \
|
||||
-rpath /$libdir -without-qtbinding
|
||||
-rpath /$libdir
|
||||
|
||||
if [ "$bits" = "32" ]; then
|
||||
arch="i386"
|
||||
|
|
|
|||
|
|
@ -92,11 +92,15 @@ cd %{git_source}
|
|||
%else
|
||||
cd %{_sourcedir}
|
||||
%endif
|
||||
# @@@ remove -without-qtbinding
|
||||
|
||||
# clean bin dir
|
||||
rm -rf %{_builddir}/bin.$TARGET
|
||||
|
||||
# do the actual build
|
||||
./build.sh -rpath %{_libdir}/klayout \
|
||||
-bin %{_builddir}/bin.$TARGET \
|
||||
-build %{_builddir}/build.$TARGET \
|
||||
%{buildopt} -without-qtbinding
|
||||
%{buildopt}
|
||||
|
||||
cp -p LICENSE Changelog CONTRIB %{_builddir}
|
||||
strip %{_builddir}/bin.$TARGET/*.so
|
||||
|
|
|
|||
Loading…
Reference in New Issue