mirror of https://github.com/KLayout/klayout.git
Fixed RPM build script.
This commit is contained in:
parent
962441975d
commit
aed13ef78f
|
|
@ -31,6 +31,8 @@ Source0: http://www.klayout.de/downloads/%{name}-%{version}.tar.gz
|
||||||
# so's of klayout itself)
|
# so's of klayout itself)
|
||||||
AutoReqProv: no
|
AutoReqProv: no
|
||||||
|
|
||||||
|
%define buildopt -j2
|
||||||
|
|
||||||
# CentOS7 requirements
|
# CentOS7 requirements
|
||||||
%if "%{target_system}" == "centos7"
|
%if "%{target_system}" == "centos7"
|
||||||
Requires: ruby >= 2.0.0
|
Requires: ruby >= 2.0.0
|
||||||
|
|
@ -43,7 +45,8 @@ Requires: qt-x11 >= 4.8.5
|
||||||
Requires: libcurl >= 7.19.7
|
Requires: libcurl >= 7.19.7
|
||||||
Requires: ruby >= 1.8.7
|
Requires: ruby >= 1.8.7
|
||||||
Requires: python >= 2.6.6
|
Requires: python >= 2.6.6
|
||||||
%define buildopt -libcurl
|
Requires: qt-x11 >= 4.6.2
|
||||||
|
%define buildopt -libcurl %{buildopt}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{target_system}" == "opensuse42_2"
|
%if "%{target_system}" == "opensuse42_2"
|
||||||
|
|
@ -89,8 +92,7 @@ cd %{_sourcedir}
|
||||||
./build.sh -rpath %{_libdir}/klayout \
|
./build.sh -rpath %{_libdir}/klayout \
|
||||||
-bin %{_builddir}/bin.$TARGET \
|
-bin %{_builddir}/bin.$TARGET \
|
||||||
-build %{_builddir}/build.$TARGET \
|
-build %{_builddir}/build.$TARGET \
|
||||||
%{buildopt} \
|
%{buildopt}
|
||||||
-j2
|
|
||||||
|
|
||||||
cp -p LICENSE Changelog CONTRIB %{_builddir}
|
cp -p LICENSE Changelog CONTRIB %{_builddir}
|
||||||
strip %{_builddir}/bin.$TARGET/*
|
strip %{_builddir}/bin.$TARGET/*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue