ggcov/ggcov.spec

Name: ggcov
Summary: Graphical front-end for gcov
Version: 0.2.2
Release: 1.2
License: GPL
Group: Development/Tools
URL: http://www.alphalink.com.au/~gnb/ggcov/
Description: Ggcov is a simple GUI program for browsing test coverage data from C programs, and is intended to be a graphical replacement for the gcov program.

Test coverage data is produced by programs which have been built with "gcc -fprofile-arcs -ftest-coverage", and indicate how many times each line and branch has been executed, cumulatively over multiple test runs.

CentOS 7 x86_64

The build could not start because the following file is missing: ggcov-0.2.2.tar.gz

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: ggcov-0.2.2.tar.gz

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: Greg Banks <gnb$alphalink,com,au>


%{?rh7:%define _without_freedesktop 1}
%{?el2:%define _without_freedesktop 1}
%{?rh6:%define _without_freedesktop 1}

%define desktop_vendor rpmforge

Summary: Graphical front-end for gcov
Name: ggcov
Version: 0.2.2
Release: 1.2%{?dist}
License: GPL
Group: Development/Tools
URL: http://www.alphalink.com.au/~gnb/ggcov/

Source: http://www.alphalink.com.au/~gnb/ggcov/ggcov-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: gcc-c++, pkgconfig, gtk2-devel, libglade2-devel
BuildRequires: libgnomeui-devel
Requires: gcc, gcc-c++

%description
Ggcov is a simple GUI program for browsing test coverage data
from C programs, and is intended to be a graphical replacement
for the gcov program.

Test coverage data is produced by programs which have been built
with "gcc -fprofile-arcs -ftest-coverage", and indicate how
many times each line and branch has been executed, cumulatively
over multiple test runs.

%prep
%setup

### FIXME: -liberty is needed in conjunction with -lbdf to build.
#%{__perl} -pi.orig -e 's|^GGCOV_LIBS = |GGCOV_LIBS = -liberty |' Makefile.in

%{__cat} <<EOF >ggcov.desktop
[Desktop Entry]
Name=Ggcov
Comment=Browse C test coverage data
Icon=ggcov.xpm
Exec=ggcov
Terminal=false
Type=Application
Category=Application;Development;
EOF

%build
%configure
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%makeinstall

%{__install} -Dp -m0644 %{buildroot}%{_datadir}/ggcov/logo.xpm %{buildroot}%{_datadir}/pixmaps/ggcov.xpm

%if %{?_without_freedesktop:1}0
        %{__install} -Dp -m0644 ggcov.desktop %{buildroot}%{_datadir}/gnome/apps/Development/ggcov.desktop
%else
	%{__rm} -f %{buildroot}%{_datadir}/gnome/apps/Development/ggcov.desktop
	%{__install} -d -m0755 %{buildroot}%{_datadir}/applications/
	desktop-file-install --vendor %{desktop_vendor}    \
		--add-category X-Red-Hat-Base              \
		--dir %{buildroot}%{_datadir}/applications \
		ggcov.desktop
%endif

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%doc %{_mandir}/man1/ggcov.1
%{_bindir}/ggcov
%{_datadir}/ggcov/
%{_datadir}/pixmaps/ggcov.xpm
%{?_without_freedesktop:%{_datadir}/gnome/apps/Development/ggcov.desktop}
%{!?_without_freedesktop:%{_datadir}/applications/%{desktop_vendor}-ggcov.desktop}

%changelog
* Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 0.2.2-1.2
- Rebuild for Fedora Core 5.

* Mon Apr 05 2004 Dag Wieers <dag@wieers.com> - 0.2.2-1
- Updated to release 0.2.2.

* Mon Jun 09 2003 Dag Wieers <dag@wieers.com> - 0.1.4-0
- Initial package. (using DAR)