Compare commits

..

No commits in common. "27da8839b443ed3ed8dc50d207bd73f1c92484fe" and "0d93a5c6a534675fbccf5e8db7a5b59e0aaea1b2" have entirely different histories.

View File

@ -1,8 +1,10 @@
%define debug_package %{nil}
Name: ukwm
Version: 1.2.1
Release: 8
Release: 3
Summary: lightweight GTK+ window manager
License: LGPL-2.0-or-later and GPL-2.0-or-later and MIT
License: GPL-2+ LGPL-2+ MIT~OldStyle+LegalDisclaimer Expat SGI-B-2.0
URL: http://www.ukui.org
Source0: %{name}-%{version}.tar.gz
Patch0: 0001-Bump-dependency-on-gsettings-desktop-schemas-3.31.0.patch
@ -74,7 +76,6 @@ 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
@ -158,25 +159,40 @@ Ukwm is a small window manager, using GTK+ and Clutter to do
%patch0 -p1
%patch1 -p1
%build
%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
./autogen.sh
./autogen.sh --prefix=/usr --libdir=/usr/lib64
%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
%{make_build}
make
%install
rm -rf $RPM_BUILD_ROOT
%{make_install} DESTDIR=%{buildroot}
#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
#chrpath -d %{buildroot}/usr/bin/ukwm
%clean
rm -rf $RPM_BUILD_ROOT
%preun
update-alternatives --remove x-window-manager \
/usr/bin/ukwm &> /dev/null || :
/usr/bin/ukwm
%post
update-alternatives --install /usr/bin/x-window-manager \
@ -186,14 +202,14 @@ update-alternatives --install /usr/bin/x-window-manager \
%files
%{_bindir}/*
%{_libexecdir}/ukwm-restart-helper
%{_libdir}/ukwm/plugins/
%{_prefix}/lib//ukwm/ukwm-restart-helper
%{_prefix}/local/lib/ukwm/plugins/
%{_datadir}/applications/
%{_datadir}/ukui/plugin/org.ukui.ukwm.UkwmPlugin.xml
%files -n libukwm-1-0
%{_libdir}/libukwm-1.so*
%{_libdir}/ukwm/*.so
%{_prefix}/local/lib/libukwm-1.so.*
%{_prefix}/local/lib/ukwm/*.so
%files common
%doc debian/copyright debian/changelog
@ -204,32 +220,19 @@ update-alternatives --install /usr/bin/x-window-manager \
%{_datadir}/gnome-control-center
%files -n libukwm-1-dev
%{_includedir}/
%{_libdir}/pkgconfig/*.pc
%{_libdir}/ukwm/*.gir
%{_prefix}/include
%{_prefix}/local/lib/lib*.so
%{_prefix}/local/lib/pkgconfig/*.pc
%{_prefix}/local/lib/ukwm/*.gir
%files -n gir1.2-ukwm-1
%{_libdir}/ukwm/*.typelib
%{_prefix}/local/lib/ukwm/*.typelib
%exclude %{_libdir}/libukwm-1.la
%exclude %{_libdir}/ukwm/*.la
%exclude %{_prefix}/local/lib/libukwm-1.la
%exclude %{_prefix}/local/lib/ukwm/*.la
%exclude %{_datadir}/ukui
%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
@ -241,3 +244,4 @@ update-alternatives --install /usr/bin/x-window-manager \
* Thu Jul 9 2020 douyan <douyan@kylinos.cn> - 1.2.0-1
- Init package for openEuler