%define url_ver %(echo %{version} | cut -d. -f1,2) # to get pkg build with copr %{!?_real_vendor:%global _real_vendor mageia} Summary: Xfce Session Manager Name: xfce4-session Version: 4.14.0 Release: %mkrel 1 License: GPLv2+ Group: Graphical desktop/Xfce URL: https://www.xfce.org Source0: https://archive.xfce.org/src/xfce/%{name}/%{url_ver}/%{name}-%{version}.tar.bz2 Source2: xfce4.pam # to pre-select xfce4 session in lightdm greeter when booting mageia first time after install Source3: xfce4-lightdm.conf # Upstream patches from GIT: # # Mageia patches Patch0100: xfce4-session-4.13.2-xinitrc.patch Patch0101: xfce4-session-4.13.2-add-more-screen-lockers-to-xflock4.patch BuildRequires: intltool BuildRequires: iceauth BuildRequires: xfce4-dev-tools BuildRequires: pkgconfig(dbus-glib-1) BuildRequires: pkgconfig(libxfce4util-1.0) BuildRequires: pkgconfig(libxfce4ui-2) BuildRequires: pkgconfig(libxfce4panel-2.0) BuildRequires: pkgconfig(libwnck-3.0) BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(polkit-gobject-1) Requires: usermode-consoleonly Requires: mate-polkit Requires: %{_real_vendor}-xfce-config >= 4.100.5.5 #added 8/2015 (wally) Obsoletes: %{name}-engines < 4.12.1-5 # no more splash engines Obsoletes: %{_lib}xfsm4.6_0 < 4.13.4 Obsoletes: %{_lib}xfsm-devel < 4.13.4 Conflicts: desktop-common-data < 1:3.10-2 %description Xfce4-session is a session manager for Xfce. Its task is to save the state of your desktop (opened applications and their location) and restore it during a next startup. You can create several different sessions and choose one of them on startup. %prep %setup -q %autopatch -p1 %build %xdt_autogen %configure2_5x \ --disable-static %make_build %install %make_install # (wally) these files are in %{_real_vendor}-xfce-config package rm -rf %{buildroot}%{_sysconfdir}/xdg/autostart/xfce4-tips-autostart.desktop rm -rf %{buildroot}%{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml rm -rf %{buildroot}%{_sysconfdir}/xdg/xfce4/Xft.xrdb # pam install -Dm 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pam.d/xfce4 # to pre-select xfce4 session in lightdm greeter when booting mageia first time after install install -Dm 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/lightdm/lightdm.conf.d/55-%{_real_vendor}-xfce.conf # don't ship .la find %{buildroot} -name "*.la" -delete %find_lang %{name} %posttrans if [ "$1" -eq 1 ]; then if [ -e %{_datadir}/xsessions/06Xfce4.desktop ]; then rm -rf %{_datadir}/xsessions/06Xfce4.desktop fi if [ -e %{_sysconfdir}/X11/dm/Sessions/06Xfce4.desktop ]; then rm -rf %{_sysconfdir}/X11/dm/Sessions/06Xfce4.desktop fi fi %files -f %{name}.lang %doc AUTHORS BUGS ChangeLog NEWS README TODO %doc doc/FAQ doc/README.Kiosk %{_bindir}/startxfce4 %{_bindir}/xfce4-session %{_bindir}/xfce4-session-logout %{_bindir}/xfce4-session-settings %{_bindir}/xflock4 %{_datadir}/applications/*.desktop %{_iconsdir}/hicolor/*/*/*.{png,svg} %dir %{_libdir}/xfce4/session/ %{_libdir}/xfce4/session/xfsm-shutdown-helper %{_mandir}/man1/* %{_datadir}/polkit-1/actions/org.xfce.session.policy %{_datadir}/xsessions/xfce.desktop %{_sysconfdir}/lightdm/lightdm.conf.d/55-%{_real_vendor}-xfce.conf %{_sysconfdir}/xdg/autostart/xscreensaver.desktop %{_sysconfdir}/xdg/xfce4/xinitrc %{_sysconfdir}/pam.d/xfce4