enable test

This commit is contained in:
kerongw 2022-06-06 08:10:43 +00:00 committed by Gitee
parent 555a094662
commit 528a0bfa70
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,12 +1,12 @@
Name: libXt
Version: 1.2.1
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 make
BuildRequires: xorg-x11-util-macros autoconf automake libtool make glib2-devel
BuildRequires: pkgconfig(xproto) pkgconfig(x11) pkgconfig(sm)
Requires: libX11 >= 1.6
@ -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
* Mon Jun 06 2022 wangkerong <wangkerong@h-partners.com> - 1.2.1-2
- enable test
* Thu Nov 25 2021 xingxing <xingxing9@huawei.com> - 1.2.1-1
- updata to 1.2.1