Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > 0ca5ebe6b5a4be6fe20b351a7bd689b5 > files > 2

sloccount-2.26-2mdk.src.rpm

%define name sloccount
%define version 2.26
%define release 2mdk

Name: %name
Summary: Measures source lines of code (SLOC) in programs
Version: %version
Release: %release
License: GPL
Group: Development/Other
Source: http://www.dwheeler.com/sloccount/%name-%version.tar.bz2
URL: http://www.dwheeler.com/sloccount
BuildRoot: %{_tmppath}/%name-buildroot
BuildRequires:	flex

%description
SLOCCount (pronounced "sloc-count") is a suite of programs for counting
physical source lines of code (SLOC) in potentially large software systems
(thus, SLOCCount is a "software metrics tool" or "software measurement tool").
SLOCCount can count physical SLOC for a wide number of languages;
listed alphabetically, they are: Ada, Assembly, awk, Bourne shell, C, C++,
C shell, COBOL, Expect, Fortran, Java, lex/flex, LISP (including Scheme),
Modula-3, Objective-C, Pascal, Perl, PHP, Python, sed, TCL, and Yacc.
SLOCCount can automatically determine if a file
is a source code file or not, and if so, which language it's written in.
As a result, you can analyze large systems completely automatically;
it's been used to examine entire GNU/Linux distributions, for example.
SLOCCount also includes some report-generating tools
to collect the data generated and present it in several different formats.
Normally you can just run "sloccount DIRECTORY" and all the source code
in the directory and its descendants will be counted.

%prep

%setup

%build

%make

%install
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
make install_programs PREFIX=${RPM_BUILD_ROOT}%{_prefix}
make install_man PREFIX=${RPM_BUILD_ROOT}%{_prefix}

%clean
rm -rf ${RPM_BUILD_ROOT}

%files
%defattr(-, root, root)
%doc sloccount.html README ChangeLog COPYING TODO
%{_bindir}/*
%{_mandir}/*/*

%changelog
* Sun Jun 19 2005 Pascal Terjan <pterjan@mandriva.org> 2.26-2mdk
- buildrequires

* Sat Aug 28 2004 Franck Villaume <fvill@freesurf.fr> 2.26-1mdk
- 2.26

* Mon Aug 18 2003 Frederic Lepied <flepied@mandrakesoft.com> 2.22-1mdk
- New release 2.22

* Sat Jan 11 2003 Lenny Cartier <lenny@mandrakesoft.com> 2.20-1mdk
- 2.20

* Thu Mar 21 2002 Frederic Lepied <flepied@mandrakesoft.com> 2.11-1mdk
- initial Mandrake Linux packaging