[packages/xorg-lib-libXtst] - drop .la file, added static_libs bcond; release 2
qboosh
qboosh at pld-linux.org
Sat Nov 11 20:24:48 CET 2023
commit da56d0edbcc512887ed05adad284d86d85e1a0cc
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Nov 11 20:07:16 2023 +0100
- drop .la file, added static_libs bcond; release 2
xorg-lib-libXtst.spec | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/xorg-lib-libXtst.spec b/xorg-lib-libXtst.spec
index bf30da4..a9f4cff 100644
--- a/xorg-lib-libXtst.spec
+++ b/xorg-lib-libXtst.spec
@@ -1,8 +1,12 @@
+#
+# Conditional build:
+%bcond_without static_libs # static library
+
Summary: Xtst library
Summary(pl.UTF-8): Biblioteka Xtst
Name: xorg-lib-libXtst
Version: 1.2.4
-Release: 1
+Release: 2
License: MIT
Group: X11/Libraries
Source0: https://xorg.freedesktop.org/archive/individual/lib/libXtst-%{version}.tar.xz
@@ -85,6 +89,7 @@ Pakiet zawiera statyczną bibliotekę libXtst.
%{__autoheader}
%{__automake}
%configure \
+ %{!?with_static_libs:--disable-static} \
--without-fop
%{__make}
@@ -95,6 +100,9 @@ rm -rf $RPM_BUILD_ROOT
DESTDIR=$RPM_BUILD_ROOT \
pkgconfigdir=%{_pkgconfigdir}
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libXtst.la
+
# packaged as %doc
%{__rm} $RPM_BUILD_ROOT%{_docdir}/libXtst/{recordlib,xtestlib}.*
@@ -116,10 +124,11 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_libdir}/libXtst.so
%{_includedir}/X11/extensions/XTest.h
%{_includedir}/X11/extensions/record.h
-%{_libdir}/libXtst.la
%{_pkgconfigdir}/xtst.pc
%{_mandir}/man3/XTest*.3*
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libXtst.a
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xorg-lib-libXtst.git/commitdiff/da56d0edbcc512887ed05adad284d86d85e1a0cc
More information about the pld-cvs-commit
mailing list