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