2012-02-16 01:57:52 +01:00
|
|
|
#
|
|
|
|
# spec file for package c_count
|
|
|
|
#
|
2014-06-17 14:07:27 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-01-24 01:22:10 +01:00
|
|
|
# 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/
|
2012-02-16 01:57:52 +01:00
|
|
|
#
|
|
|
|
|
2010-07-18 09:24:57 +02:00
|
|
|
|
2012-02-16 01:57:52 +01:00
|
|
|
Name: c_count
|
2014-12-25 14:40:45 +01:00
|
|
|
Version: 7.15
|
2012-02-16 01:57:52 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Source Code Measure Counter for C/C++/Java
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Tools/Other
|
|
|
|
Url: http://invisible-island.net/c_count/
|
2014-12-25 14:40:45 +01:00
|
|
|
Source: ftp://invisible-island.net/c_count/%{name}-%{version}.tgz
|
2012-02-16 01:57:52 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: make
|
2014-06-17 14:07:27 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-07-18 09:24:57 +02:00
|
|
|
|
|
|
|
%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
|
2014-06-17 14:07:27 +02:00
|
|
|
of systems.
|
2010-07-18 09:24:57 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--enable-warnings
|
|
|
|
|
2014-06-17 14:07:27 +02:00
|
|
|
make %{?_smp_mflags}
|
2010-07-18 09:24:57 +02:00
|
|
|
|
|
|
|
%install
|
2014-06-17 14:07:27 +02:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
2010-07-18 09:24:57 +02:00
|
|
|
|
|
|
|
%check
|
|
|
|
pushd testing
|
|
|
|
./run_test.sh
|
|
|
|
popd #testing
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING CHANGES README
|
|
|
|
%{_bindir}/c_count
|
|
|
|
%doc %{_mandir}/man1/c_count.1%{ext_man}
|
|
|
|
|
|
|
|
%changelog
|