!15 【轻量级 PR】:disable static library by default

From: @kerongw 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
This commit is contained in:
openeuler-ci-bot 2022-10-25 01:57:32 +00:00 committed by Gitee
commit 17b66fb19a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,8 @@
%bcond_without static
Name: libXt
Version: 1.2.1
Release: 1
Release: 2
License: MIT
Summary: X.Org X11 libXt runtime library
URL: https://www.x.org
@ -29,7 +31,10 @@ 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 --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" \
%if %{with static}
--disable-static
%endif
V=1 %make_build
@ -50,7 +55,9 @@ mkdir -p -m 0755 $RPM_BUILD_ROOT%{_datadir}/X11/app-defaults
%defattr(-,root,root)
%{_includedir}/X11/*.h
%{_libdir}/*.so
%if %{without static}
%{_libdir}/*.a
%endif
%{_libdir}/pkgconfig/*.pc
%files help
@ -59,6 +66,9 @@ mkdir -p -m 0755 $RPM_BUILD_ROOT%{_datadir}/X11/app-defaults
%{_docdir}/%{name}/*.xml
%changelog
* Sat Oct 22 2022 wangkerong <wangkerong@h-partners.com> - 1.2.1-2
- disable static library by default
* Thu Nov 25 2021 xingxing <xingxing9@huawei.com> - 1.2.1-1
- updata to 1.2.1