Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > by-pkgid > cf368fed09fd69848dbae420dbb3b61e > files > 3

cppcheck-1.42-1mdv2010.1.src.rpm

Name:		cppcheck
Version:	1.42
Release:	%mkrel 1
License:	GPLv3+
Group:		Development/Other
Url:		http://cppcheck.sourceforge.net/
Source:		http://downloads.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
Patch0:		cppcheck-1.42-cflags.patch
BuildRoot:	%{_tmppath}/%{name}-%{version}-build
BuildRequires:	docbook-style-xsl
BuildRequires:	libxslt-proc
Summary:	Static analysis tool for C/C++

%description
This program tries to detect bugs that your C/C++ compiler don't see. Cppcheck
is versatile. You can check non-standard code that includes various compiler
extensions, inline assembly code, etc. Its goal is no false positives.

%prep
%setup -q
%patch0 -p0

%build
CXXFLAGS="%{optflags}" LDFLAGS="%{ldflags}" %make

# this command line is documented inside cppcheck.1.xml
cd man
xsltproc --nonet --param man.charmap.use.subset "0" \
   --param make.year.ranges "1" --param make.single.year.ranges "1" \
   /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl \
   cppcheck.1.xml

%check
CXXFLAGS="%{optflags}" LDFLAGS="%{ldflags}"  %make test

%install
rm -rf %{buildroot}
%makeinstall DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{_mandir}/man1
install -m 0644 man/cppcheck.1 %{buildroot}/%{_mandir}/man1

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc AUTHORS readme.txt
%{_mandir}/man1/cppcheck.1*
%{_bindir}/cppcheck


%changelog
* Fri Mar 26 2010 Sandro Cazzaniga <kharec@mandriva.org> 1.42-1mdv2010.1
+ Revision: 527587
- rediff patch
- update to 1.42

* Sun Jan 17 2010 Jérôme Brenier <incubusss@mandriva.org> 1.40-1mdv2010.1
+ Revision: 492759
- new version 1.40
- rediff cflags patch
- update to new version 1.38
- rediff cflags patch

* Wed Sep 23 2009 Frederik Himpe <fhimpe@mandriva.org> 1.37-1mdv2010.0
+ Revision: 447966
- Update to new version 1.37

* Mon Aug 17 2009 Frederik Himpe <fhimpe@mandriva.org> 1.35-1mdv2010.0
+ Revision: 417397
- Update to new version 1.35
- Rediff cflags patch

* Tue Jul 14 2009 Frederik Himpe <fhimpe@mandriva.org> 1.34-1mdv2010.0
+ Revision: 395969
- Update to new version 1.34
- Make it use default CXXFLAGS and LDFLAGS

* Tue Jun 23 2009 Wanderlei Cavassin <cavassin@mandriva.com.br> 1.33-1mdv2010.0
+ Revision: 388718
- imported package cppcheck