File cccc.spec of Package cccc
#
# spec file for package cccc
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: cccc
Version: 3.2.0
Release: 0
Summary: C and C++ Code Counter
URL: https://github.com/sarnold/cccc
License: GPL-2.0-or-later
Group: Development/Languages/C and C++
Source: cccc-%{version}.tar.gz
BuildRequires: bison
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: glibc-devel
BuildRequires: make
BuildRequires: libstdc++-devel
%description
CCCC is a tool which analyzes C++ and Java files and generates a report on various metrics of the code. Metrics supported include lines of code, McCabe's complexity and metrics proposed by Chidamber&Kemerer and Henry&Kafura.
%prep
%autosetup -p1
%build
export CFLAGS=-std=c11
make DESTDIR=%{buildroot}
%install
install -d %{buildroot}%{_bindir}
install -m 0644 cccc/cccc %{buildroot}%{_bindir}
%files
%{_bindir}/*
%changelog