Summary: Program To Count Physical Lines Of Source Code Name: cloc Version: 1.54 Release: 1 Source: http://prdownloads.sourceforge.net/cloc/%{name}-%{version}.pl URL: http://cloc.sourceforge.net/ Group: Development/Tools/Other License: GNU General Public License v2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildArch: noarch BuildRequires: sed BuildRequires: perl >= 5.8.8, perl-Regexp-Common >= 2011041701 Requires: perl >= 5.8.8, perl-Regexp-Common >= 2011041701 %description Cloc counts blank lines, comment lines, and physical lines of source code in many programming languages. It is written entirely in Perl, using only modules from the standard distribution of Perl 5.6 and higher, and so is quite portable. %prep %setup -q -c "%{name}-%{version}" -T %__cp "%{SOURCE0}" . /opt/freeware/bin/sed -i.orig '1,1 s,^#!.*,#!%{_bindir}/perl,' "%{name}-%{version}.pl" %build # nothing to do here %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%{_bindir} cp %{name}-%{version}.pl ${RPM_BUILD_ROOT}%{_bindir}/%{name} chmod 0755 ${RPM_BUILD_ROOT}%{_bindir}/%{name} cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %{_bindir}/%{name} /usr/bin/%{name} %changelog * Tue Oct 04 2011 Michael Perzl - 1.54-1 - first version for AIX V5.1 and higher