1 Summary: CLOC - Count Lines of Code
7 Source0: https://github.com/AlDanial/cloc/releases/download/%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5: a52f3843825377cfa4e4b3b30a567ab4
9 URL: https://github.com/AlDanial/cloc
10 BuildRequires: perl-Regexp-Common
11 BuildRequires: rpm-perlprov >= 4.1-13
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 cloc counts blank lines, comment lines, and physical lines of source
17 code in many programming languages. Given two versions of a code base,
18 cloc can also compute differences in blank, comment, and source lines.
23 # fix #!env perl -w -> #!%{__perl}:
24 %{__sed} -e '1s,^#!.*perl,#!%{__perl},' Unix/cloc
30 rm -rf $RPM_BUILD_ROOT
31 %{__make} -C Unix install \
32 DESTDIR=$RPM_BUILD_ROOT
35 rm -rf $RPM_BUILD_ROOT
38 %defattr(644,root,root,755)
39 %doc LICENSE README.md sqlite_formatter
40 %doc Unix/{AUTHORS,COPYING,INSTALL,NEWS,README}
41 %attr(755,root,root) %{_bindir}/cloc
42 %{_mandir}/man1/cloc.1*