- new master
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 3 Nov 2011 05:09:11 +0000 (05:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cloc.spec -> 1.1

cloc.spec [new file with mode: 0644]

diff --git a/cloc.spec b/cloc.spec
new file mode 100644 (file)
index 0000000..666f88c
--- /dev/null
+++ b/cloc.spec
@@ -0,0 +1,41 @@
+%include       /usr/lib/rpm/macros.perl
+Summary:       CLOC - Count Lines of Code
+Name:          cloc
+Version:       1.55
+Release:       1
+License:       GPL v2
+Group:         Applications
+Source0:       http://downloads.sourceforge.net/cloc/%{name}-%{version}.pl
+# Source0-md5: 19ab5852617e89d853793a693eb5e510
+Source1:       http://downloads.sourceforge.net/cloc/release-%{version}.txt
+# Source1-md5: cb2e63726afc46faa68e1b144273dc0b
+URL:           http://cloc.sourceforge.net/
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+cloc counts blank lines, comment lines, and physical lines of source
+code in many programming languages. Given two versions of a code base,
+cloc can also compute differences in blank, comment, and source lines.
+
+%prep
+%setup -qcT
+cp -p %{SOURCE1} release.txt
+
+# fix #!env perl -w -> #!%{__perl}:
+%{__sed} -e '1s,^#!.*perl,#!%{__perl},' %{SOURCE0} > %{name}.pl
+touch -r %{SOURCE0} %{name}.pl
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+install -p %{name}.pl $RPM_BUILD_ROOT%{_bindir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc release.txt
+%attr(755,root,root) %{_bindir}/cloc
This page took 0.058329 seconds and 4 git commands to generate.