disable static library by default
Signed-off-by: kerongw <wangkerong@h-partners.com>
This commit is contained in:
parent
78f32fe318
commit
f69b1f7628
14
libXt.spec
14
libXt.spec
@ -1,6 +1,8 @@
|
||||
%bcond_without static
|
||||
|
||||
Name: libXt
|
||||
Version: 1.2.1
|
||||
Release: 2
|
||||
Release: 3
|
||||
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 --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"
|
||||
%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" \
|
||||
%if %{with static}
|
||||
--disable-static
|
||||
%endif
|
||||
|
||||
V=1 %make_build
|
||||
|
||||
@ -53,7 +58,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
|
||||
@ -62,6 +69,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-3
|
||||
- disable static library by default
|
||||
|
||||
* Mon Jun 06 2022 wangkerong <wangkerong@h-partners.com> - 1.2.1-2
|
||||
- enable test
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user