%define name pmccabe %define version 2.3 %define release %mkrel 1 %define debrelease 1 Summary: McCabe-style function complexity and line counting for C and C++ Name: %name Version: %version Release: %release License: GPL Group: Development/C URL: http://parisc-linux.org/~bame/pmccabe/ Source: http://ftp.debian.org/debian/pool/main/p/pmccabe/%{name}_%{version}-%{debrelease}.tar.bz2 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description Pmccabe calculates McCabe-style cyclomatic complexity for C and C++ source code. Per-function complexity may be used for spotting likely trouble spots and for estimating testing effort. Pmccabe also includes a non-commented line counter compatible with anac, 'decomment' which only removes comments from source code; 'codechanges', a program to calculate the amount of change which has occurred between two source trees or files; and 'vifn', to invoke 'vi' given a function name rather than a file name. %prep %setup -q -n pmccabe %build %make %check %{__make} test %install %makeinstall_std %files %{_mandir}/man1/* %{_bindir}/* %doc COPYING TODO ChangeLog %clean rm -rf $RPM_BUILD_ROOT %changelog * Tue Apr 18 2006 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 2.3-1mdk - New version * Mon Oct 24 2005 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 2.2-1mdk - First Mandriva package