[packages/libtracefs] don't try to build and install apidocs when building without them

atler atler at pld-linux.org
Sun Aug 16 17:11:34 CEST 2026


commit 7b2eec9e14c53aeb8fd78defb08fdeb1d02a3391
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Aug 16 17:07:13 2026 +0200

    don't try to build and install apidocs when building without them

 libtracefs.spec | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libtracefs.spec b/libtracefs.spec
index ddd30ad..cc5c0c2 100644
--- a/libtracefs.spec
+++ b/libtracefs.spec
@@ -76,8 +76,10 @@ LDFLAGS="%{rpmldflags}" \
 	prefix=%{_prefix} \
 	libdir_relative=%{_lib}
 
+%if %{with apidocs}
 %{__make} doc \
 	V=1
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -88,16 +90,16 @@ rm -rf $RPM_BUILD_ROOT
 	DESTDIR=$RPM_BUILD_ROOT \
 	VERBOSE=1
 
+%if %{with apidocs}
 %{__make} install_doc \
 	prefix=%{_prefix} \
 	DESTDIR=$RPM_BUILD_ROOT
 
-%if %{with apidocs}
 # not installed sample
 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/sqlhist.1
+%endif
 # some completion functions, but not registered for any command
 %{__rm} $RPM_BUILD_ROOT%{bash_compdir}/tracefs_sql.bash
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libtracefs.git/commitdiff/7b2eec9e14c53aeb8fd78defb08fdeb1d02a3391



More information about the pld-cvs-commit mailing list