[packages/lcov] Up to 2.6

arekm arekm at pld-linux.org
Sat Nov 28 17:47:32 CET 2026


commit 657cc2c3637ae48d5e0bd257878eb1401af187c2
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Nov 27 16:17:23 2026 +0100

    Up to 2.6

 lcov.spec | 52 +++++++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 45 insertions(+), 7 deletions(-)
---
diff --git a/lcov.spec b/lcov.spec
index baab3bf..1b6e784 100644
--- a/lcov.spec
+++ b/lcov.spec
@@ -1,20 +1,28 @@
 Summary:	LTP GCOV extension code coverage tool
 Summary(pl.UTF-8):	Frontend LTP rozszerzający narzędzie GCOV do badania pokrycia kodu
 Name:		lcov
-Version:	1.10
-Release:	2
+Version:	2.6
+Release:	1
 License:	GPL v2+
 Group:		Development/Tools
-Source0:	http://downloads.sourceforge.net/ltp/%{name}-%{version}.tar.gz
-# Source0-md5:	b9fe33b921016fc68852c8a6beb3a3b5
-URL:		http://ltp.sourceforge.net/coverage/lcov.php
+Source0:	https://github.com/linux-test-project/lcov/releases/download/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	fc17c8e53aee62d5518bf9960a85dbb3
+URL:		https://github.com/linux-test-project/lcov
+BuildRequires:	python3-sphinx_rtd_theme
 BuildRequires:	rpm-perlprov >= 4.1-13
+BuildRequires:	sphinx-pdg
 # /usr/bin/gcov is provided by gcc package
 Requires:	gcc
 Requires:	perl-GD
+Requires:	perl-JSON-XS
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# private modules shipped in %{_datadir}/lcov
+%define		_private_perl	AnnotateBase ReadCurrentSource P4version annotateutil batchGitVersion context criteria gitblame gitversion history lcovutil p4annotate select simplify threshold unreach
+%define		_noautoprov_perl	%{_private_perl}
+%define		_noautoreq_perl	%{_private_perl}
+
 %description
 LCOV is an extension of GCOV, a GNU tool which provides information
 about what parts of a program are actually executed (i.e. "covered")
@@ -35,24 +43,54 @@ postaci stron HTML.
 %install
 rm -rf $RPM_BUILD_ROOT
 
+# XS extension needs C++20 and would make the package arch-specific;
+# lcovutil.pm falls back to pure Perl without it
 %{__make} install \
-	PREFIX=$RPM_BUILD_ROOT
+	LCOV_NO_XS=1 \
+	DESTDIR=$RPM_BUILD_ROOT \
+	PREFIX=%{_prefix} \
+	CFG_DIR=%{_sysconfdir} \
+	LIB_DIR=%{_datadir}/lcov
+
+# upstream selftests, need a source tree
+%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/lcov/tests
+
+grep -rlE '^#!/usr/bin/env (perl|python3|bash)' $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_datadir}/lcov | xargs %{__sed} -i -e '1{
+	s,^#!/usr/bin/env perl,#!%{__perl},
+	s,^#!/usr/bin/env python3,#!%{__python3},
+	s,^#!/usr/bin/env bash,#!/bin/bash,
+}'
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc CHANGES README example
+%doc CHANGES README.rst
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lcovrc
 %attr(755,root,root) %{_bindir}/gendesc
 %attr(755,root,root) %{_bindir}/genhtml
 %attr(755,root,root) %{_bindir}/geninfo
 %attr(755,root,root) %{_bindir}/genpng
+%attr(755,root,root) %{_bindir}/html2lcov
+%attr(755,root,root) %{_bindir}/jacoco2lcov
 %attr(755,root,root) %{_bindir}/lcov
+%attr(755,root,root) %{_bindir}/llvm2lcov
+%attr(755,root,root) %{_bindir}/perl2lcov
+%attr(755,root,root) %{_bindir}/py2lcov
+%attr(755,root,root) %{_bindir}/xml2lcov
+%attr(755,root,root) %{_bindir}/xml2lcovutil.py
 %{_mandir}/man1/gendesc.1*
 %{_mandir}/man1/genhtml.1*
 %{_mandir}/man1/geninfo.1*
 %{_mandir}/man1/genpng.1*
+%{_mandir}/man1/html2lcov.1*
+%{_mandir}/man1/jacoco2lcov.1*
 %{_mandir}/man1/lcov.1*
+%{_mandir}/man1/llvm2lcov.1*
+%{_mandir}/man1/perl2lcov.1*
+%{_mandir}/man1/py2lcov.1*
+%{_mandir}/man1/spreadsheet.py.1*
+%{_mandir}/man1/xml2lcov.1*
 %{_mandir}/man5/lcovrc.5*
+%{_datadir}/lcov
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lcov.git/commitdiff/657cc2c3637ae48d5e0bd257878eb1401af187c2



More information about the pld-cvs-commit mailing list