packages: cpplint/cpplint.spec (NEW) - initial

glen glen at pld-linux.org
Sat Jan 30 08:43:47 CET 2010


Author: glen                         Date: Sat Jan 30 07:43:47 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial

---- Files affected:
packages/cpplint:
   cpplint.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/cpplint/cpplint.spec
diff -u /dev/null packages/cpplint/cpplint.spec:1.1
--- /dev/null	Sat Jan 30 08:43:47 2010
+++ packages/cpplint/cpplint.spec	Sat Jan 30 08:43:42 2010
@@ -0,0 +1,54 @@
+# $Revision$, $Date$
+%define		svnrev	43
+%define		rel		1
+Summary:	C++ lint your files
+Name:		cpplint
+Version:	0.1
+Release:	0.1
+License:	Artistic License/GPL
+Group:		Development/Tools
+# svn co http://google-styleguide.googlecode.com/svn/trunk/cpplint
+# tar -cjf cpplint-$(svnversion cpplint).tar.bz2 --exclude=.svn --remove-files cpplint
+Source0:	%{name}-%{svnrev}.tar.bz2
+# Source0-md5:	b34ddbdddab368aa071731cee3470fc2
+URL:		http://google-styleguide.googlecode.com/svn/trunk/cpplint/
+BuildRequires:	rpm-pythonprov
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is automated checker to make sure a C++ file follows Google's C++
+style guide
+<http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml>.
+
+As it heavily relies on regular expressions, cpplint.py won't catch
+all violations of the style guide and will very occasionally report a
+false positive. There is a list of things we currently don't handle
+very well at the top of cpplint.py, and we welcome patches to improve
+it.
+
+%prep
+%setup -q -n %{name}
+%{__sed} -i -e '1s,#!.*python\(2\..\)\?,#!%{__python},' *.py
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+install -p %{name}.py $RPM_BUILD_ROOT%{_bindir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_bindir}/cpplint
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/01/30 07:43:42  glen
+- initial
================================================================


More information about the pld-cvs-commit mailing list