Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
27da8839b4
!23 fix build error
From: @peijiankang 
Reviewed-by: @hua_yadong 
Signed-off-by: @hua_yadong
2023-10-24 01:11:35 +00:00
peijiankang
29c1146e3e fix build error 2023-10-23 17:12:27 +08:00
openeuler-ci-bot
961d210427
!19 [sync] PR-18: update ukwm.spec
From: @openeuler-sync-bot 
Reviewed-by: @peijiankang 
Signed-off-by: @peijiankang
2023-10-17 06:45:06 +00:00
peijiankang
a23abdd88f update ukwm.spec
(cherry picked from commit 9672b2641e6af6c8d51d4132f1c6db95c66cf830)
2023-10-17 13:50:25 +08:00
openeuler-ci-bot
e9ba7f22d0
!16 remove rpath of ukwm
From: @tanyulong2021 
Reviewed-by: @peijiankang 
Signed-off-by: @peijiankang
2023-03-22 05:55:28 +00:00
tanyulong2021
4e1b026e2e remove rpath of ukwm 2023-03-15 17:00:05 +08:00
openeuler-ci-bot
162c936c65
!15 sync with 22.03 sp1 branch
From: @dou33 
Reviewed-by: @hua_yadong 
Signed-off-by: @hua_yadong
2023-02-03 08:14:33 +00:00
dou33
952338cb7f sync with 22.03 sp1 branch 2023-02-03 14:36:26 +08:00
openeuler-ci-bot
16a17bc5bc
!9 Improve the project according to the requirements of compliance improvement
From: @tanyulong2021 
Reviewed-by: @peijiankang 
Signed-off-by: @dou33
2022-07-25 12:51:13 +00:00
tanyulong2021
923340058f Improve the project according to the requirements of compliance improvement 2022-05-25 14:36:11 +08:00

View File

@ -1,10 +1,8 @@
%define debug_package %{nil}
Name: ukwm
Version: 1.2.1
Release: 3
Release: 8
Summary: lightweight GTK+ window manager
License: GPL-2+ LGPL-2+ MIT~OldStyle+LegalDisclaimer Expat SGI-B-2.0
License: LGPL-2.0-or-later and GPL-2.0-or-later and MIT
URL: http://www.ukui.org
Source0: %{name}-%{version}.tar.gz
Patch0: 0001-Bump-dependency-on-gsettings-desktop-schemas-3.31.0.patch
@ -76,6 +74,7 @@ BuildRequires: xorg-x11-server-Xvfb
BuildRequires: xauth
BuildRequires: intltool
BuildRequires: chrpath
Requires: clutter
%description
Ukwm is a small window manager, using GTK+ and Clutter to do
@ -159,40 +158,25 @@ Ukwm is a small window manager, using GTK+ and Clutter to do
%patch0 -p1
%patch1 -p1
%build
./autogen.sh
%define gettext_version %(dnf info gettext |grep Version |awk '{print $3}'| awk -F "." 'BEGIN {OFS = FS} {print $1,$2}'|awk 'NR==1')
sed -i 's/GETTEXT_MACRO_VERSION = .*/GETTEXT_MACRO_VERSION = %{gettext_version}/g' po/Makefile.in.in
%define gettext_version %(dnf info gettext |grep Version |awk '{print $3}'| awk -F "." 'BEGIN {OFS = FS} {print $1,$2}')
sed -i "/GETTEXT_MACRO_VERSION/s/0.19/%{gettext_version}/g" po/Makefile.in.in
./autogen.sh --prefix=/usr --libdir=/usr/lib64
make
%{make_build}
%install
rm -rf $RPM_BUILD_ROOT
#make INSTALL_ROOT=/root/rpmbuild/BUILDROOT install
make DESTDIR=$RPM_BUILD_ROOT install
cp -rf %{buildroot}/usr/local/bin %{buildroot}/usr/bin
rm -rf %{buildroot}/usr/local/bin
cp -rf %{buildroot}/usr/local/share %{buildroot}/usr/share
rm -rf %{buildroot}/usr/local/share
cp -rf %{buildroot}/usr/local/include %{buildroot}/usr/include
rm -rf %{buildroot}/usr/local/include
mkdir -p %{buildroot}/usr/lib/ukwm
cp -rf %{buildroot}/usr/local/libexec/ukwm-restart-helper %{buildroot}/usr/lib/ukwm/ukwm-restart-helper
rm -rf %{buildroot}/usr/local/libexec
%{make_install} DESTDIR=%{buildroot}
#chrpath -d %{buildroot}/usr/bin/ukwm
%clean
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 \
@ -202,14 +186,14 @@ update-alternatives --install /usr/bin/x-window-manager \
%files
%{_bindir}/*
%{_prefix}/lib//ukwm/ukwm-restart-helper
%{_prefix}/local/lib/ukwm/plugins/
%{_libexecdir}/ukwm-restart-helper
%{_libdir}/ukwm/plugins/
%{_datadir}/applications/
%{_datadir}/ukui/plugin/org.ukui.ukwm.UkwmPlugin.xml
%files -n libukwm-1-0
%{_prefix}/local/lib/libukwm-1.so.*
%{_prefix}/local/lib/ukwm/*.so
%{_libdir}/libukwm-1.so*
%{_libdir}/ukwm/*.so
%files common
%doc debian/copyright debian/changelog
@ -220,19 +204,32 @@ update-alternatives --install /usr/bin/x-window-manager \
%{_datadir}/gnome-control-center
%files -n libukwm-1-dev
%{_prefix}/include
%{_prefix}/local/lib/lib*.so
%{_prefix}/local/lib/pkgconfig/*.pc
%{_prefix}/local/lib/ukwm/*.gir
%{_includedir}/
%{_libdir}/pkgconfig/*.pc
%{_libdir}/ukwm/*.gir
%files -n gir1.2-ukwm-1
%{_prefix}/local/lib/ukwm/*.typelib
%{_libdir}/ukwm/*.typelib
%exclude %{_prefix}/local/lib/libukwm-1.la
%exclude %{_prefix}/local/lib/ukwm/*.la
%exclude %{_datadir}/ukui
%exclude %{_libdir}/libukwm-1.la
%exclude %{_libdir}/ukwm/*.la
%changelog
* Mon Oct 23 2023 peijiankang <peijiankang@kylinos.cn> - 1.2.1-8
- fix build error
* Mon Sep 25 2023 peijiankang <peijiankang@kylinos.cn> - 1.2.1-7
- update ukwm.spec
* Wed Mar 01 2023 tanyulong <tanyulong@kylinos.cn> - 1.2.1-6
- remove rpath of ukwm
* Fri Feb 3 2023 douyan <douyan@kylinos.cn> - 1.2.1-5
- fix build error and uninstall issue
* Wed May 25 2022 tanyulong <tanyulong@kylinos.cn> - 1.2.1-4
- Improve the project according to the requirements of compliance improvement
* Thu Dec 23 2021 pei-jiankang <peijiankang@kylinos.cn> - 1.2.1-3
- update copyright
@ -244,4 +241,3 @@ update-alternatives --install /usr/bin/x-window-manager \
* Thu Jul 9 2020 douyan <douyan@kylinos.cn> - 1.2.0-1
- Init package for openEuler