ukui-session-manager/ukui-session-manager.spec

87 lines
2.7 KiB
RPMSpec
Raw Normal View History

2020-07-09 10:02:25 +08:00
%define debug_package %{nil}
Name: ukui-session-manager
2020-11-03 14:18:54 +08:00
Version: 3.0.2
Release: 4
2020-07-09 10:02:25 +08:00
Summary: Session manager of the UKUI desktop environment
2020-07-09 13:29:11 +08:00
License: LGPL-2.1+ GPL-3+
2020-07-09 10:02:25 +08:00
URL: http://www.ukui.org
Source0: %{name}-%{version}.tar.gz
2020-11-03 14:18:54 +08:00
BuildRequires: cmake,libXtst-devel,libX11-devel,xdg-user-dirs,kf5-kidletime-devel,qt5-qtx11extras-devel,qt5-qtbase-devel,systemd-devel,qt5-qttools-devel,qt5-qtmultimedia-devel,gsettings-qt-devel,pkgconf
2020-07-09 10:02:25 +08:00
Requires: ukui-themes
2020-11-03 14:18:54 +08:00
Requires: glib2
Requires: qt5-qtmultimedia
2020-07-09 10:02:25 +08:00
Recommends: peony
Recommends: ukwm
Recommends: ukui-panel
Recommends: ukui-polkit
Recommends: ukui-screensaver
Recommends: ukui-settings-daemon
Provides: x-session-manager
2020-12-03 14:09:39 +08:00
patch0: 0001-fix-poweroff.patch
2021-10-28 19:30:00 +08:00
patch1: 0002-reset-changelog-and-format.patch
patch2: 0003-adjust-the-sequence-to-make-translation-file-loaded-first.patch
2020-07-09 10:02:25 +08:00
%description
This package contains a session that can be started from a display
manager such as lightdm. It will load all necessary applications for
a full-featured user session.
This package contain the session manager component.
%prep
%setup -q
2020-12-03 14:09:39 +08:00
%patch0 -p1
2021-10-28 19:30:00 +08:00
%patch1 -p1
%patch2 -p1
2020-07-09 10:02:25 +08:00
%build
mkdir cmake-build
pushd cmake-build
%cmake3 ..
%{make_build}
popd
%install
pushd cmake-build
%make_install INSTALL_ROOT=%{buildroot}
popd
2020-11-03 14:18:54 +08:00
#mkdir -p %{buildroot}/etc/X11/Xsession.d/ %{buildroot}/usr/share/man/man1/
#install -m644 debian/99ukui-environment %{buildroot}/etc/X11/Xsession.d/99ukui-environment
install -d %{buildroot}/usr/share/man/man1/ %{buildroot}/etc/polkit-1/localauthority/50-local.d/
install -m644 data/com.ubuntu.enable-hibernate.pkla %{buildroot}/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
2020-12-03 14:09:39 +08:00
gzip -c man/ukui-session.1 > %{buildroot}/usr/share/man/man1/ukui-session.1.gz
2020-07-09 10:02:25 +08:00
gzip -c man/ukui-session-tools.1 > %{buildroot}/usr/share/man/man1/ukui-session-tools.1.gz
%clean
rm -rf $RPM_BUILD_ROOT
%files
%doc debian/changelog debian/copyright
2020-11-03 14:18:54 +08:00
#%%{_sysconfdir}/X11/Xsession.d/99ukui-environment
%{_sysconfdir}/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
2020-07-09 10:02:25 +08:00
%{_datadir}/*
%{_prefix}/bin/ukui-session
%{_prefix}/bin/ukui-session-tools
2020-12-03 14:09:39 +08:00
#%%{_datadir}/man/man1/ukui-session.1.gz
2020-07-09 10:02:25 +08:00
#%%{_datadir}/man/man1/ukui-session-tools.1.gz
%changelog
* Mon Nov 1 2021 tanyulong <tanyulong@kylinos.cn> - 3.0.2-3
- adjust the sequence to make translation file loaded first
2021-10-28 19:30:00 +08:00
* Thu Oct 28 2021 tanyulong <tanyulong@kylinos.cn> - 3.0.2-3
- reset changelog and format
2020-12-03 14:09:39 +08:00
* Thu Dec 3 2020 lvhan <lvhan@kylinos.cn> - 3.0.2-2
- fix poweroff
2020-11-03 14:18:54 +08:00
* Mon Oct 26 2020 douyan <douyan@kylinos.cn> - 3.0.2-1
- update to upstream version 3.0.1
2020-07-09 10:02:25 +08:00
* Thu Jul 9 2020 douyan <douyan@kylinos.cn> - 2.0.2-1
- Init package for openEuler