2012-01-24 01:05:30 +01:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
2010-07-18 09:24:57 +02:00
|
|
|
|
|
|
|
Name: c_count
|
|
|
|
Version: 7.12
|
|
|
|
Release: 0
|
|
|
|
Summary: Source Code Measure Counter for C/C++/Java
|
|
|
|
Source: ftp://invisible-island.net/c_count/c_count-%{version}.tgz
|
|
|
|
URL: http://invisible-island.net/c_count/
|
|
|
|
Group: Development/Tools/Other
|
|
|
|
License: MIT
|
|
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
|
|
BuildRequires: gcc make glibc-devel
|
|
|
|
BuildRequires: autoconf automake libtool
|
|
|
|
|
|
|
|
%description
|
|
|
|
c_count counts lines, statements, and other simple measures of C/C++/Java
|
|
|
|
source programs. It is not lex/yacc based, and is easily portable to a variety
|
|
|
|
of systems.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--enable-warnings
|
|
|
|
|
2012-01-24 01:05:30 +01:00
|
|
|
%__make %{?_smp_mflags}
|
2010-07-18 09:24:57 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
%check
|
|
|
|
pushd testing
|
|
|
|
./run_test.sh
|
|
|
|
popd #testing
|
|
|
|
|
|
|
|
%clean
|
2012-01-24 01:05:30 +01:00
|
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
2010-07-18 09:24:57 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING CHANGES README
|
|
|
|
%{_bindir}/c_count
|
|
|
|
%doc %{_mandir}/man1/c_count.1%{ext_man}
|
|
|
|
|
|
|
|
%changelog
|