Compare commits
10 Commits
0d93a5c6a5
...
27da8839b4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
27da8839b4 | ||
|
|
29c1146e3e | ||
|
|
961d210427 | ||
|
|
a23abdd88f | ||
|
|
e9ba7f22d0 | ||
|
|
4e1b026e2e | ||
|
|
162c936c65 | ||
|
|
952338cb7f | ||
|
|
16a17bc5bc | ||
|
|
923340058f |
74
ukwm.spec
74
ukwm.spec
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user