rpms/lcov/devel lcov-1.4-gcda-suffix.patch, NONE, 1.1 lcov-1.4-lcovrc.patch, NONE, 1.1 lcov.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Roland McGrath (roland)
fedora-extras-commits at redhat.com
Sat Mar 4 11:09:49 UTC 2006
Author: roland
Update of /cvs/extras/rpms/lcov/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv27321/devel
Modified Files:
.cvsignore sources
Added Files:
lcov-1.4-gcda-suffix.patch lcov-1.4-lcovrc.patch lcov.spec
Log Message:
auto-import lcov-1.4-2.fc5 on branch devel from lcov-1.4-2.fc5.src.rpm
lcov-1.4-gcda-suffix.patch:
--- NEW FILE lcov-1.4-gcda-suffix.patch ---
--- lcov-1.4/bin/lcov.~1~ 2005-03-02 08:24:50.000000000 -0800
+++ lcov-1.4/bin/lcov 2006-02-15 10:24:41.000000000 -0800
@@ -331,8 +331,8 @@ get coverage data for a user space progr
-c, --capture Capture coverage data
-t, --test-name NAME Specify test name to be stored with data
-o, --output-file FILENAME Write data to FILENAME instead of stdout
- -d, --directory DIR Use .da files in DIR instead of kernel
- -f, --follow Follow links when searching .da files
+ -d, --directory DIR Use .da/.gcda files in DIR instead of kernel
+ -f, --follow Follow links when searching .da/.gcda files
-k, --kernel-directory KDIR Capture kernel coverage data only from KDIR
-a, --add-tracefile FILE Add contents of tracefiles
-e, --extract FILE PATTERN Extract files matching PATTERN from FILE
@@ -399,17 +399,17 @@ sub userspace_reset()
foreach $current_dir (@directory)
{
- info("Deleting all .da files in $current_dir and ".
+ info("Deleting all .da and .gcda files in $current_dir and ".
"subdirectories\n");
if ($follow)
{
@file_list =
- `find $current_dir -follow -name \\*.da -type f 2>/dev/null`;
+ `find $current_dir -follow \\( -name \\*.gcda -o -name \\*.da \\) -type f 2>/dev/null`;
}
else
{
@file_list =
- `find $current_dir -name \\*.da -type f 2>/dev/null`;
+ `find $current_dir \\( -name \\*.gcda -o -name \\*.da \\) -type f 2>/dev/null`;
}
chomp(@file_list);
foreach (@file_list)
lcov-1.4-lcovrc.patch:
--- NEW FILE lcov-1.4-lcovrc.patch ---
--- lcov-1.4/lcovrc.~1~ 2005-03-02 08:24:47.000000000 -0800
+++ lcov-1.4/lcovrc 2006-02-13 19:09:02.000000000 -0800
@@ -22,13 +22,13 @@ genhtml_overview_width = 80
# difference in lines between the position a user selected from the overview
# and the position the source code window is scrolled to (used by --frames
# option of genhtml)
-genhtml_nav_resolution = 4;
+genhtml_nav_resolution = 4
# Clicking a line in the overview image should show the source code view at
# a position a bit further up so that the requested line is not the first
# line in the window. This number specifies that offset in lines (used by
# --frames option of genhtml)
-genhtml_nav_offset = 10;
+genhtml_nav_offset = 10
# Do not remove unused test descriptions if non-zero (same as
# --keep-descriptions option of genhtml)
--- NEW FILE lcov.spec ---
Name: lcov
Version: 1.4
Release: 2%{?dist}
Summary: LTP GCOV extension code coverage tool
Group: Development/Tools
License: GPL
URL: http://ltp.sourceforge.net/coverage/lcov.php
Source0: http://dl.sourceforge.net/ltp/lcov-%{version}.tar.gz
Patch1: lcov-1.4-lcovrc.patch
Patch2: lcov-1.4-gcda-suffix.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: /usr/bin/gcov
Requires: perl(GD::Image)
%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")
while running a particular test case. The extension consists of a set
of PERL scripts which build on the textual GCOV output to implement
HTML output and support for large projects.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%install
rm -rf $RPM_BUILD_ROOT
make install PREFIX=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man5/*
%config(noreplace) %attr(0644,root,root) /etc/lcovrc
%changelog
* Mon Feb 20 2006 Roland McGrath <roland at redhat.com> - 1.4-2
- Fix lcov -z to look for .gcda (GCC >= 3.4) suffix as well as .da (old GCC).
- Remove empty %%build from spec.
- Fix URL for source tarball.
* Mon Feb 13 2006 Roland McGrath <roland at redhat.com> - 1.4-1
- Initial build, some spec bits snarfed from upstream.
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/lcov/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 4 Mar 2006 11:08:17 -0000 1.1
+++ .cvsignore 4 Mar 2006 11:09:48 -0000 1.2
@@ -0,0 +1 @@
+lcov-1.4.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/lcov/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 4 Mar 2006 11:08:17 -0000 1.1
+++ sources 4 Mar 2006 11:09:48 -0000 1.2
@@ -0,0 +1 @@
+9ae93c6619ee60a9e89bd2da0e49ae4a lcov-1.4.tar.gz
More information about the fedora-extras-commits
mailing list