xfce4-session/xfce4-session.spec
陈棋德 fc5f2f98cd update xfce4-session.spec.
Signed-off-by: 陈棋德 <dillon.chen@gmail.com>
(cherry picked from commit a3a360b7283638cd6cb1b50ac1d4ff1c32abfdba)
2022-09-08 11:13:02 +08:00

100 lines
2.8 KiB
RPMSpec

%global xfceversion 4.16
Name: xfce4-session
Version: 4.16.0
Release: 1
Summary: Xfce session manager
License: GPLv2+
URL: http://www.xfce.org/
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
Source2: xfce-mimeapps.list
# Patch startxfce4 to keep it on the same vty for logind
Patch1: xfce-session-4.10-startxfce4.patch
BuildRequires: make
BuildRequires: dbus-devel >= 1.1.0
BuildRequires: dbus-glib-devel >= 0.84
BuildRequires: glib2-devel >= 2.24.0
BuildRequires: libSM-devel
BuildRequires: libwnck3-devel >= 3.14
BuildRequires: libxfce4ui-devel >= %{xfceversion}
BuildRequires: startup-notification-devel
BuildRequires: xfce4-panel-devel >= %{xfceversion}
BuildRequires: xfconf-devel >= %{xfceversion}
BuildRequires: iceauth xrdb xset
# Build tools
BuildRequires: desktop-file-utils
BuildRequires: gettext
BuildRequires: intltool
BuildRequires: libxslt
#BuildRequires: libxml2
BuildRequires: systemd-devel >= 195
BuildRequires: polkit-devel
BuildRequires: libtool
Requires: iceauth xrdb xset
Requires: xfce-polkit >= 0.2-2
Requires: systemd >= 195
# Needed for exo desktop preferred applications
Requires: exo
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
xfce4-session is the session manager for the Xfce desktop environment.
%prep
%autosetup -p1
%build
%configure --disable-static
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build
%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_lang %{name}
# install our xfce-mimeapps.list file to set mime handlers
mkdir -p %{buildroot}%{_datadir}/applications
cp -a %{SOURCE2} %{buildroot}%{_datadir}/applications/xfce-mimeapps.list
%files -f %{name}.lang
%license COPYING
%doc AUTHORS BUGS ChangeLog NEWS TODO
%doc doc/FAQ doc/NEWS.pre-4.3 doc/README.Kiosk
%{_sysconfdir}/xdg/xfce4
%{_bindir}/*
%dir %{_libdir}/xfce4/session/
%{_libdir}/xfce4/session/xfsm-shutdown-helper
%{_datadir}/applications/*.desktop
%{_datadir}/applications/xfce-mimeapps.list
%{_datadir}/xsessions/xfce.desktop
%{_datadir}/icons/hicolor/*/*/*
%{_datadir}/polkit-1/actions/org.xfce.session.policy
%{_mandir}/man1/*
%changelog
* Fri Jun 18 2021 zhanglin <lin.zhang@turbolinux.com.cn> - 4.16.0-1
- Update to 4.16.0
* Sun Jul 12 2021 Dillon Chen <dillon.chen@turbolinux.com.cn> - 4.14.2-1
- Init package