From 6699ae9ba72c980d3bdf517bb3f8ce904972f8e9 Mon Sep 17 00:00:00 2001 From: zhangpan Date: Thu, 16 Mar 2023 03:35:12 +0000 Subject: [PATCH] enable test (cherry picked from commit 6da0e41f3b68761e64e935459e2d638a86ea3c2f) --- libXt.spec | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/libXt.spec b/libXt.spec index c77bba3..3b4679a 100644 --- a/libXt.spec +++ b/libXt.spec @@ -1,13 +1,13 @@ Name: libXt Version: 1.2.0 -Release: 1 +Release: 2 License: MIT Summary: X.Org X11 libXt runtime library URL: https://www.x.org Source0: https://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.bz2 BuildRequires: xorg-x11-util-macros autoconf automake libtool -BuildRequires: xorg-x11-proto-devel libX11-devel libSM-devel libX11-devel +BuildRequires: xorg-x11-proto-devel libX11-devel libSM-devel libX11-devel glib2-devel Requires: libX11 >= 1.5.99.902 @@ -29,10 +29,13 @@ The %{name}-devel package contains libraries and header files for %{name}. %build autoreconf -ivf export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" -%configure --with-xfile-search-path="%{_sysconfdir}/X11/%%L/%%T/%%N%%C%%S:%{_sysconfdir}/X11/%%l/%%T/\%%N%%C%%S:%{_sysconfdir}/X11/%%T/%%N%%C%%S:%{_sysconfdir}/X11/%%L/%%T/%%N%%S:%{_sysconfdir}/X\11/%%l/%%T/%%N%%S:%{_sysconfdir}/X11/%%T/%%N%%S:%{_datadir}/X11/%%L/%%T/%%N%%C%%S:%{_datadir}/X1\1/%%l/%%T/%%N%%C%%S:%{_datadir}/X11/%%T/%%N%%C%%S:%{_datadir}/X11/%%L/%%T/%%N%%S:%{_datadir}/X11/%%\l/%%T/%%N%%S:%{_datadir}/X11/%%T/%%N%%S" +%configure --enable-unit-tests --with-xfile-search-path="%{_sysconfdir}/X11/%%L/%%T/%%N%%C%%S:%{_sysconfdir}/X11/%%l/%%T/\%%N%%C%%S:%{_sysconfdir}/X11/%%T/%%N%%C%%S:%{_sysconfdir}/X11/%%L/%%T/%%N%%S:%{_sysconfdir}/X\11/%%l/%%T/%%N%%S:%{_sysconfdir}/X11/%%T/%%N%%S:%{_datadir}/X11/%%L/%%T/%%N%%C%%S:%{_datadir}/X1\1/%%l/%%T/%%N%%C%%S:%{_datadir}/X11/%%T/%%N%%C%%S:%{_datadir}/X11/%%L/%%T/%%N%%S:%{_datadir}/X11/%%\l/%%T/%%N%%S:%{_datadir}/X11/%%T/%%N%%S" \ V=1 %make_build +%check +make check + %install %make_install mkdir -p -m 0755 $RPM_BUILD_ROOT%{_datadir}/X11/app-defaults @@ -59,6 +62,9 @@ mkdir -p -m 0755 $RPM_BUILD_ROOT%{_datadir}/X11/app-defaults %{_docdir}/%{name}/*.xml %changelog +* Thu Mar 16 2023 zhangpan - 1.2.0-2 +- enable test + * Mon Aug 17 2020 jinzhimin - 1.2.0-1 - updata package to 1.2.0 -- Gitee