File xts.spec of Package xts

#
# spec file for package xts
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           xts
Version:        0.99.1~20221211.6be266b8765574
Release:        0
Summary:        The X Test Suite
License:        Artistic-1.0
Group:          System/Benchmark
URL:            https://cgit.freedesktop.org/xorg/test/xts/
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  asciidoc
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  bdftopcf
BuildRequires:  fdupes
BuildRequires:  libtool
BuildRequires:  mkfontdir
BuildRequires:  perl
BuildRequires:  pkgconfig
BuildRequires:  xdpyinfo
BuildRequires:  xmlto
BuildRequires:  xset
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xau)
BuildRequires:  pkgconfig(xaw7)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xi)
BuildRequires:  pkgconfig(xmu)
BuildRequires:  pkgconfig(xorg-macros)
BuildRequires:  pkgconfig(xt)
BuildRequires:  pkgconfig(xtrans)
BuildRequires:  pkgconfig(xtst)
Requires:       perl
Requires:       xdpyinfo
Requires:       xset

%description
The X Test Suite is the test suite for core rendering in the X Server.

%prep
%setup -q

%build
# xts contains several functions without specified type that default to int, but are treated as void. Avoid failures caused by that.
export CFLAGS="$CFLAGS -Wno-return-type -fcommon"
autoreconf -fiv
%configure
%make_build

%install
%make_install
%fdupes -s %{buildroot}

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%{_bindir}/tcc
%{_bindir}/xts-*
%{_datadir}/xts5
%{_libexecdir}/xts5
%{_mandir}/man7/XTS.7%{?ext_man}

%changelog
openSUSE Build Service is sponsored by