]> git.pld-linux.org Git - packages/cloc.git/blame - cloc.spec
- updated to 1.84, switch to github
[packages/cloc.git] / cloc.spec
CommitLineData
cae3343f
ER
1%include /usr/lib/rpm/macros.perl
2Summary: CLOC - Count Lines of Code
3Name: cloc
4d0fd20d 4Version: 1.84
cae3343f
ER
5Release: 1
6License: GPL v2
7Group: Applications
4d0fd20d
AG
8Source0: https://github.com/AlDanial/cloc/releases/download/%{version}/%{name}-%{version}.tar.gz
9# Source0-md5: a52f3843825377cfa4e4b3b30a567ab4
10URL: https://github.com/AlDanial/cloc
11BuildRequires: perl-Regexp-Common
cae3343f
ER
12BuildRequires: rpm-perlprov >= 4.1-13
13BuildArch: noarch
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%description
17cloc counts blank lines, comment lines, and physical lines of source
18code in many programming languages. Given two versions of a code base,
19cloc 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
31rm -rf $RPM_BUILD_ROOT
4d0fd20d
AG
32%{__make} -C Unix install \
33 DESTDIR=$RPM_BUILD_ROOT
cae3343f
ER
34
35%clean
36rm -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*
This page took 0.096095 seconds and 4 git commands to generate.