rpms/lcov/devel .cvsignore, 1.3, 1.4 Makefile, 1.2, 1.3 lcov-1.4-gcda-suffix.patch, 1.2, 1.3 lcov-1.4-lcovrc.patch, 1.2, 1.3 lcov.spec, 1.2, 1.3 sources, 1.3, 1.4 dead.package, 1.1, NONE

Roland McGrath (roland) fedora-extras-commits at redhat.com
Thu Oct 12 08:23:17 UTC 2006


Author: roland

Update of /cvs/extras/rpms/lcov/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv32056

Added Files:
	.cvsignore Makefile lcov-1.4-gcda-suffix.patch 
	lcov-1.4-lcovrc.patch lcov.spec sources 
Removed Files:
	dead.package 
Log Message:
Resurrect wrongly removed package.


Index: .cvsignore
===================================================================
RCS file: .cvsignore
diff -N .cvsignore
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ .cvsignore	12 Oct 2006 08:23:17 -0000	1.4
@@ -0,0 +1 @@
+lcov-1.4.tar.gz


Index: Makefile
===================================================================
RCS file: Makefile
diff -N Makefile
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Makefile	12 Oct 2006 08:23:17 -0000	1.3
@@ -0,0 +1,21 @@
+# Makefile for source rpm: lcov
+# $Id$
+NAME := lcov
+SPECFILE = $(firstword $(wildcard *.spec))
+
+define find-makefile-common
+for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
+endef
+
+MAKEFILE_COMMON := $(shell $(find-makefile-common))
+
+ifeq ($(MAKEFILE_COMMON),)
+# attept a checkout
+define checkout-makefile-common
+test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
+endef
+
+MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
+endif
+
+include $(MAKEFILE_COMMON)

lcov-1.4-gcda-suffix.patch:

Index: lcov-1.4-gcda-suffix.patch
===================================================================
RCS file: lcov-1.4-gcda-suffix.patch
diff -N lcov-1.4-gcda-suffix.patch
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ lcov-1.4-gcda-suffix.patch	12 Oct 2006 08:23:17 -0000	1.3
@@ -0,0 +1,34 @@
+--- 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:

Index: lcov-1.4-lcovrc.patch
===================================================================
RCS file: lcov-1.4-lcovrc.patch
diff -N lcov-1.4-lcovrc.patch
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ lcov-1.4-lcovrc.patch	12 Oct 2006 08:23:17 -0000	1.3
@@ -0,0 +1,18 @@
+--- 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)


Index: lcov.spec
===================================================================
RCS file: lcov.spec
diff -N lcov.spec
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ lcov.spec	12 Oct 2006 08:23:17 -0000	1.3
@@ -0,0 +1,54 @@
+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: sources
===================================================================
RCS file: sources
diff -N sources
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ sources	12 Oct 2006 08:23:17 -0000	1.4
@@ -0,0 +1 @@
+9ae93c6619ee60a9e89bd2da0e49ae4a  lcov-1.4.tar.gz


--- dead.package DELETED ---




More information about the scm-commits mailing list