]>
Commit | Line | Data |
---|---|---|
cae3343f ER |
1 | %include /usr/lib/rpm/macros.perl |
2 | Summary: CLOC - Count Lines of Code | |
3 | Name: cloc | |
4d0fd20d | 4 | Version: 1.84 |
cae3343f ER |
5 | Release: 1 |
6 | License: GPL v2 | |
7 | Group: Applications | |
4d0fd20d AG |
8 | Source0: https://github.com/AlDanial/cloc/releases/download/%{version}/%{name}-%{version}.tar.gz |
9 | # Source0-md5: a52f3843825377cfa4e4b3b30a567ab4 | |
10 | URL: https://github.com/AlDanial/cloc | |
11 | BuildRequires: perl-Regexp-Common | |
cae3343f ER |
12 | BuildRequires: rpm-perlprov >= 4.1-13 |
13 | BuildArch: noarch | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | cloc counts blank lines, comment lines, and physical lines of source | |
18 | code in many programming languages. Given two versions of a code base, | |
19 | cloc can also compute differences in blank, comment, and source lines. | |
20 | ||
21 | %prep | |
4d0fd20d | 22 | %setup -q |
cae3343f ER |
23 | |
24 | # fix #!env perl -w -> #!%{__perl}: | |
4d0fd20d AG |
25 | %{__sed} -e '1s,^#!.*perl,#!%{__perl},' Unix/cloc |
26 | ||
27 | %build | |
28 | %{__make} -C Unix | |
cae3343f ER |
29 | |
30 | %install | |
31 | rm -rf $RPM_BUILD_ROOT | |
4d0fd20d AG |
32 | %{__make} -C Unix install \ |
33 | DESTDIR=$RPM_BUILD_ROOT | |
cae3343f ER |
34 | |
35 | %clean | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
38 | %files | |
39 | %defattr(644,root,root,755) | |
4d0fd20d AG |
40 | %doc LICENSE README.md sqlite_formatter |
41 | %doc Unix/{AUTHORS,COPYING,INSTALL,NEWS,README} | |
cae3343f | 42 | %attr(755,root,root) %{_bindir}/cloc |
4d0fd20d | 43 | %{_mandir}/man1/cloc.1* |