update to upstream version 0.10.0

(cherry picked from commit 413d15ae8927135a5fe011d720882013bc5932f3)
This commit is contained in:
pei-jiankang 2022-01-13 17:59:38 +08:00 committed by openeuler-sync-bot
parent 6b398f225c
commit 89deae7bc1

View File

@ -13,9 +13,6 @@ BuildRequires: %{?fedora:cmake}%{!?fedora:cmake3} >= 3.0
BuildRequires: gcc-c++
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: glib2-devel
%if 0%{?el7}
BuildRequires: devtoolset-7-gcc-c++
%endif
Requires: %{?fedora:cmake}%{!?fedora:cmake3} >= 3.0
@ -24,33 +21,17 @@ Various packaging tools and scripts for LXQt applications.
%prep
%if 0%{?el7}
scl enable devtoolset-7 - <<\EOF
%endif
%autosetup -p1
%{__mkdir} -p %{_target_platform}
%if 0%{?el7}
EOF
%endif
%build
%if 0%{?el7}
scl enable devtoolset-7 - <<\EOF
%endif
mkdir build && pushd build
pushd %{_target_platform}
%cmake3 -DPULL_TRANSLATIONS=NO ../
popd
%make_build -C %{_target_platform}
%if 0%{?el7}
EOF
%endif
popd
%install
%make_install -C %{_target_platform}