4 Commits

2 changed files with 18 additions and 6 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Sep 11 08:26:41 UTC 2025 - Dr. Werner Fink <werner@suse.de>
- Make it build even with broken imake/xmkmf setup
-------------------------------------------------------------------
Thu Jul 3 08:49:29 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Explicitly set -std=gnu17, since GCC 15 moved to implicit C23.
-------------------------------------------------------------------
Thu Sep 12 12:20:22 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package xsession
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,6 +17,7 @@
Name: xsession
BuildRequires: fdupes
BuildRequires: imake
BuildRequires: pkgconfig
BuildRequires: pkgconfig(x11)
@@ -28,9 +29,9 @@ Release: 0
Summary: A session manager
License: MIT
Group: System/X11/Utilities
# It's not quite the same as https://ftp.gwdg.de/pub/x11/x.org/contrib/applications/xsession-1.1.tar.gz
Source: xsession-1.1.tar.gz
Patch0: xsession-implicit-shutdown.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)}
%if "%_exec_prefix" == "/usr/X11R6"
%global _mandir %{_exec_prefix}/man
@@ -56,14 +57,15 @@ Examples may be found under /usr/share/doc/packages/xsession/examples.
%build
xmkmf -a
make CCOPTIONS="$RPM_OPT_FLAGS"
make CCOPTIONS="%{optflags} -std=gnu17" \
MANPATH=%{_mandir} XAPPLOADDIR=%{_appdefdir}
%install
make DESTDIR=%{buildroot} install
make DESTDIR=%{buildroot} install.man
%make_install all install.man \
MANPATH=%{_mandir} XAPPLOADDIR=%{_appdefdir}
%fdupes -s %{buildroot}%{_datadir}
%files
%defattr(-,root,root)
%doc CHANGES ChangeLog INSTALL README examples
%{_bindir}/xsession
%dir %{_appdefdir}