Cleaner builds for RPM & DEB

This commit is contained in:
Matthias Koefferlein 2018-07-29 02:45:59 +02:00
parent 11627486d6
commit 3efde26584
2 changed files with 11 additions and 4 deletions

View File

@ -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"

View File

@ -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