!14 sync with 22.03 sp1 branch

From: @dou33 
Reviewed-by: @hua_yadong 
Signed-off-by: @hua_yadong
This commit is contained in:
openeuler-ci-bot 2023-02-03 08:14:49 +00:00 committed by Gitee
commit c0e8f9a854
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,8 +1,6 @@
%define debug_package %{nil}
Name: ukwm
Version: 1.2.1
Release: 1
Release: 3
Summary: lightweight GTK+ window manager
License: GPL-2+ LGPL-2+ MIT~OldStyle+LegalDisclaimer Expat SGI-B-2.0
URL: http://www.ukui.org
@ -159,7 +157,7 @@ Ukwm is a small window manager, using GTK+ and Clutter to do
%build
./autogen.sh
%define gettext_version %(dnf info gettext |grep Version |awk '{print $3}'| awk -F "." 'BEGIN {OFS = FS} {print $1,$2}')
%define gettext_version %(dnf info gettext |grep Version |awk '{print $3}'| awk -F "." 'BEGIN {OFS = FS} {print $1,$2}'| grep awk 'NR==1')
sed -i "/GETTEXT_MACRO_VERSION/s/0.19/%{gettext_version}/g" po/Makefile.in.in
make
@ -190,7 +188,7 @@ rm -rf $RPM_BUILD_ROOT
%preun
update-alternatives --remove x-window-manager \
/usr/bin/ukwm
/usr/bin/ukwm &> /dev/null || :
%post
update-alternatives --install /usr/bin/x-window-manager \
@ -231,6 +229,12 @@ update-alternatives --install /usr/bin/x-window-manager \
%exclude %{_datadir}/ukui
%changelog
* Fri Jan 20 2023 douyan <douyan@kylinos.cn> - 1.2.1-3
- fix uninstall issue
* Fri Dec 2 2022 douyan <douyan@kylinos.cn> - 1.2.1-2
- fix 22.03 sp1 build error
* Mon Oct 26 2020 douyan <douyan@kylinos.cn> - 1.2.1-1
- update to upstream version 1.2.1