c_count/c_count.spec

59 lines
1.7 KiB
RPMSpec
Raw Normal View History

# vim: set sw=4 ts=4 et nu:
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
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
%__make %{?_smp_mflags}
%install
%makeinstall
%check
pushd testing
./run_test.sh
popd #testing
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc COPYING CHANGES README
%{_bindir}/c_count
%doc %{_mandir}/man1/c_count.1%{ext_man}
%changelog