upgrade to 4.16.0 for xfce 4.16

upgrade to 4.16.0 for xfce 4.16

modify spec
This commit is contained in:
linz 2021-06-16 11:08:23 +08:00
parent 51aaf7c310
commit f8a2856b60
3 changed files with 28 additions and 15 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,18 +1,20 @@
%global xfceversion 4.14 %global xfceversion 4.16
Name: xfce4-session Name: xfce4-session
Version: 4.14.2 Version: 4.16.0
Release: 2 Release: 1
Summary: Session manager for the Xfce desktop environment. Summary: Xfce session manager
License: GPLv2+ License: GPLv2+
#Group: Development/Libraries
URL: http://www.xfce.org/ URL: http://www.xfce.org/
Source0: http://archive.xfce.org/src/xfce/%{name}/%{xfceversion}/%{name}-%{version}.tar.bz2 Source0: http://archive.xfce.org/src/xfce/%{name}/%{xfceversion}/%{name}-%{version}.tar.bz2
# Add a xfce-mimeapps.list to allow setting mime handlers for Xfce apps # Add a xfce-mimeapps.list to allow setting mime handlers for Xfce apps
Source1: xfce-mimeapps.list
Source2: xfce-mimeapps.list
# Patch startxfce4 to keep it on the same vty for logind # Patch startxfce4 to keep it on the same vty for logind
Patch1: xfce-session-4.10-startxfce4.patch Patch1: xfce-session-4.10-startxfce4.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
#BuildArch: noarch BuildRequires: make
BuildRequires: dbus-devel >= 1.1.0 BuildRequires: dbus-devel >= 1.1.0
BuildRequires: dbus-glib-devel >= 0.84 BuildRequires: dbus-glib-devel >= 0.84
BuildRequires: glib2-devel >= 2.24.0 BuildRequires: glib2-devel >= 2.24.0
@ -22,7 +24,7 @@ BuildRequires: libxfce4ui-devel >= %{xfceversion}
BuildRequires: startup-notification-devel BuildRequires: startup-notification-devel
BuildRequires: xfce4-panel-devel >= %{xfceversion} BuildRequires: xfce4-panel-devel >= %{xfceversion}
BuildRequires: xfconf-devel >= %{xfceversion} BuildRequires: xfconf-devel >= %{xfceversion}
BuildRequires: xorg-x11-server-utils BuildRequires: iceauth xrdb xset
# Build tools # Build tools
BuildRequires: desktop-file-utils BuildRequires: desktop-file-utils
BuildRequires: gettext BuildRequires: gettext
@ -32,15 +34,21 @@ BuildRequires: libxslt
BuildRequires: systemd-devel >= 195 BuildRequires: systemd-devel >= 195
BuildRequires: polkit-devel BuildRequires: polkit-devel
BuildRequires: libtool BuildRequires: libtool
Requires: xorg-x11-server-utils Requires: iceauth xrdb xset
Requires: xfce-polkit >= 0.2-2 Requires: xfce-polkit >= 0.2-2
Requires: systemd >= 195 Requires: systemd >= 195
# Needed for exo desktop preferred applications
Requires: exo Requires: exo
Suggests: imsettings-xfce Suggests: imsettings-xfce
Obsoletes: xfce-utils < 4.8.3-7
# splash screens no longer exists
Obsoletes: xfce4-session-engines <= 4.13.1
Obsoletes: xfce4-session-devel <= 4.13.3
%description %description
Its task is to save the state of your desktop (opened applications and their location) and restore xfce4-session is the session manager for the Xfce desktop environment.
it during a next startup. You can create several different sessions and choose one of them on startup.
%prep %prep
%autosetup -p1 %autosetup -p1
@ -57,20 +65,22 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%install %install
%make_install %make_install
# remove xscreensaver autostart file
rm -fr %{buildroot}%{_sysconfdir}/xdg/autostart/xscreensaver.desktop
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';' find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
%find_lang %{name} %find_lang %{name}
# install our xfce-mimeapps.list file to set mime handlers # install our xfce-mimeapps.list file to set mime handlers
mkdir -p %{buildroot}%{_datadir}/applications mkdir -p %{buildroot}%{_datadir}/applications
cp -a %{SOURCE1} %{buildroot}%{_datadir}/applications/xfce-mimeapps.list cp -a %{SOURCE2} %{buildroot}%{_datadir}/applications/xfce-mimeapps.list
%files -f %{name}.lang %files -f %{name}.lang
%license COPYING %license COPYING
%doc AUTHORS BUGS ChangeLog NEWS README TODO %doc AUTHORS BUGS ChangeLog NEWS TODO
%doc doc/FAQ doc/NEWS.pre-4.3 doc/README.Kiosk %doc doc/FAQ doc/NEWS.pre-4.3 doc/README.Kiosk
%{_sysconfdir}/xdg/xfce4 %{_sysconfdir}/xdg/xfce4
%{_sysconfdir}/xdg/autostart/xscreensaver.desktop
%{_bindir}/* %{_bindir}/*
%dir %{_libdir}/xfce4/session/ %dir %{_libdir}/xfce4/session/
%{_libdir}/xfce4/session/xfsm-shutdown-helper %{_libdir}/xfce4/session/xfsm-shutdown-helper
@ -82,5 +92,8 @@ cp -a %{SOURCE1} %{buildroot}%{_datadir}/applications/xfce-mimeapps.list
%{_mandir}/man1/* %{_mandir}/man1/*
%changelog %changelog
* Fri Jun 18 2021 zhanglin <lin.zhang@turbolinux.com.cn> - 4.16.0-1
- Update to 4.16.0
* Sun Jul 12 Dillon Chen <dillon.chen@turbolinux.com.cn> - 4.14.2-1 * Sun Jul 12 Dillon Chen <dillon.chen@turbolinux.com.cn> - 4.14.2-1
- Init package - Init package