File project.diff of Package xsel
--- xsel.changes.orig
+++ xsel.changes
@@ -1,9 +1,4 @@
-------------------------------------------------------------------
-Wed Apr 26 09:59:58 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
-
-- Remove pre-SUSE-15 build logic
-
--------------------------------------------------------------------
Tue May 14 09:39:22 UTC 2019 - Martin Liška <mliska@suse.cz>
- Add disable-werror.patch in order to handle with a new GCC 9 warning.
--- xsel.spec.orig
+++ xsel.spec
@@ -23,11 +23,15 @@ Release: 0
Summary: Command-line Program for Getting and Setting the Contents of the X Selection
License: MIT
Group: System/X11/Utilities
+URL: http://www.kfish.org/software/xsel/
Source: http://www.kfish.org/software/xsel/download/xsel-%{version}.tar.gz
Patch0: disable-werror.patch
-URL: http://www.kfish.org/software/xsel/
+%if 0%{?suse_version} < 1220
+BuildRequires: xorg-x11-devel
+%else
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xt)
+%endif
%description
XSel is a command-line program for getting and setting the contents of the X
@@ -35,10 +39,18 @@ selection. Normally this is only accessi
information and pasting it with the middle mouse button.
%prep
-%autosetup -p1
+%setup -q
+%patch0 -p1
%build
-%configure
+%if 0%{?suse_version} > 0 && 0%{?suse_version} < 1100
+export CFLAGS="%{optflags} -L%{_usr}/X11R6/%{_lib} -lX11"
+%endif
+%configure \
+%if 0%{?suse_version} > 0 && 0%{?suse_version} < 1100
+ --x-includes="%{_usr}/X11R6/include"
+%endif
+
%make_build
%install
@@ -46,7 +58,7 @@ information and pasting it with the midd
%files
%doc AUTHORS ChangeLog README
-%doc %{_mandir}/man1/xsel.1x*
+%{_mandir}/man1/xsel.1x*
%{_bindir}/xsel
%changelog