]> git.pld-linux.org Git - packages/cloc.git/blame - cloc.spec
- new
[packages/cloc.git] / cloc.spec
CommitLineData
cae3343f
ER
1%include /usr/lib/rpm/macros.perl
2Summary: CLOC - Count Lines of Code
3Name: cloc
4Version: 1.55
5Release: 1
6License: GPL v2
7Group: Applications
8Source0: http://downloads.sourceforge.net/cloc/%{name}-%{version}.pl
9# Source0-md5: 19ab5852617e89d853793a693eb5e510
10Source1: http://downloads.sourceforge.net/cloc/release-%{version}.txt
11# Source1-md5: cb2e63726afc46faa68e1b144273dc0b
12URL: http://cloc.sourceforge.net/
13BuildRequires: rpm-perlprov >= 4.1-13
14BuildArch: noarch
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
18cloc counts blank lines, comment lines, and physical lines of source
19code in many programming languages. Given two versions of a code base,
20cloc can also compute differences in blank, comment, and source lines.
21
22%prep
23%setup -qcT
24cp -p %{SOURCE1} release.txt
25
26# fix #!env perl -w -> #!%{__perl}:
27%{__sed} -e '1s,^#!.*perl,#!%{__perl},' %{SOURCE0} > %{name}.pl
28touch -r %{SOURCE0} %{name}.pl
29
30%install
31rm -rf $RPM_BUILD_ROOT
32install -d $RPM_BUILD_ROOT%{_bindir}
33install -p %{name}.pl $RPM_BUILD_ROOT%{_bindir}/%{name}
34
35%clean
36rm -rf $RPM_BUILD_ROOT
37
38%files
39%defattr(644,root,root,755)
40%doc release.txt
41%attr(755,root,root) %{_bindir}/cloc
This page took 0.076764 seconds and 4 git commands to generate.