File project.diff of Package klayout

--- klayout.spec.orig
+++ klayout.spec
@@ -27,21 +27,16 @@ Source0:        %{name}-%{version}.tar.g
 
 # Disable auto-detection of dependencies (to prevent including the
 # so's of klayout itself)
-AutoReqProv: 	no
+AutoReqProv:	no
 
 # CentOS 8 and higher, Fedora requirements
 %if (0%{?rhel} >= 8) || 0%{?fedora}
 Requires:	ruby >= 2.5.5
 Requires:	python3 >= 3.6.0
-Requires:	qt5-qtbase >= 5.11.1
-Requires:	qt5-qtmultimedia >= 5.11.1
-Requires:	qt5-qtxmlpatterns >= 5.11.1
-Requires:	qt5-qtsvg >= 5.11.1
-Requires:	qt5-qttools >= 5.11.1
 BuildRequires:	ruby-devel
 %if 0%{?rhel} == 8
 BuildRequires:	platform-python-devel
-%define buildopt8 -python /usr/libexec/platform-python
+%define buildopt -python /usr/libexec/platform-python
 %else
 BuildRequires:	python3-devel
 %endif
@@ -51,7 +46,6 @@ BuildRequires:	qt5-qtxmlpatterns-devel
 BuildRequires:	qt5-qtsvg-devel
 BuildRequires:	qt5-qttools-devel
 
-%define buildopt %{?buildopt8} -j2
 %define pylib %{python_sitearch}
 %define __python /usr/bin/python3
 %endif
@@ -65,7 +59,6 @@ BuildRequires: ruby-devel
 BuildRequires: python3-devel
 BuildRequires: qt-devel
 
-%define buildopt -j2
 %define pylib %{python_sitearch}
 %endif
 
@@ -73,11 +66,6 @@ BuildRequires: qt-devel
 # We only support opensuse version with qt5
 Requires:	ruby
 Requires:	python3
-Requires:	libqt5-qtbase
-Requires:	libqt5-qtxmlpatterns
-Requires:	libqt5-qtmultimedia
-Requires:	libqt5-qtsvg
-%define buildopt -j2
 %define pylib %{python3_sitearch}
 BuildRequires:  ruby-devel
 BuildRequires:	python3-devel
@@ -110,7 +98,7 @@ rm -rf %{_builddir}/bin.$TARGET
 ./build.sh -rpath %{_libdir}/klayout \
            -bin %{_builddir}/bin.$TARGET \
            -build %{_builddir}/build.$TARGET \
-           %{buildopt}
+           %{?buildopt} %{?_smp_mflags}
 
 cp -p LICENSE Changelog CONTRIB %{_builddir}
 strip %{_builddir}/bin.$TARGET/*.so
@@ -151,15 +139,9 @@ cp -pd %{_builddir}/bin.$TARGET/klayout
 chmod 755 %{buildroot}%{_bindir}/*
 
 # other files
-ls %{_sourcedir}
 install -Dm644 etc/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
 install -Dm644 etc/logo.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
 
-# TODO: remove this? This macro does not expand to anything in SuSE 42.x
-#%if 0%{?suse_version}%{?sles_version}
-#%suse_update_desktop_file -n %{name}
-#%endif
-
 %files
 %defattr(-,root,root)
 %doc LICENSE
openSUSE Build Service is sponsored by