Compare commits

...

8 Commits
rawhide ... f14

Author SHA1 Message Date
Jussi Lehtola 62ed767735 Update to 1.51. 2011-10-09 14:40:40 +03:00
Jussi Lehtola 7ac0fbff00 Update to 1.50. 2011-08-19 11:11:14 +03:00
Jussi Lehtola 55245c7116 Update to 1.49. 2011-06-14 09:37:02 +03:00
Jussi Lehtola 68adb4b788 Update to 1.48. 2011-04-15 20:39:13 +03:00
Jussi Lehtola 7d6801b57d Update to 1.47. 2011-02-07 14:51:42 +02:00
Jussi Lehtola d8e9337b62 Update to 1.46.1. 2010-12-30 14:45:54 +02:00
Jussi Lehtola 333a74c326 Update to 1.46. 2010-12-15 13:00:00 +02:00
Jussi Lehtola 88fcd503eb Update to 1.45. 2010-10-04 14:22:59 +03:00
2 changed files with 56 additions and 20 deletions

View File

@ -1,5 +1,5 @@
Name: cppcheck
Version: 1.44
Version: 1.51
Release: 1%{?dist}
Summary: A tool for static C/C++ code analysis
Group: Development/Languages
@ -8,6 +8,9 @@ URL: http://cppcheck.wiki.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: pcre-devel
BuildRequires: tinyxml-devel
%description
This program tries to detect bugs that your C/C++ compiler don't see.
The goal is no false positives.
@ -21,40 +24,73 @@ various compiler extensions, inline assembly code, etc.
%prep
%setup -q
# Convert text files to UTF-8
for file in COPYING readme.txt test/tinyxml/tinystr.cpp test/tinyxml/changes.txt; do
iconv -f ISO-8859-15 -t utf-8 $file > $file.new && \
touch -r $file $file.new && \
mv $file.new $file
done
# Fix end of line encodings
for file in readme.txt test/test.vcproj test/test.vcxproj{,.filters}; do
sed -e 's|\r||g' $file > $file.new && \
touch -r $file $file.new && \
mv $file.new $file
done
# Fix permissions
find -name "*.cpp" -exec chmod 644 {} \;
find -name "*.vcproj" -exec chmod 644 {} \;
# Make sure bundled tinyxml is not used
rm -r externals/tinyxml
%build
make CXXFLAGS="%{optflags}" %{?_smp_mflags}
# TINYXML= prevents use of bundled tinyxml
%if 0%{?rhel} == 4
make CXXFLAGS="%{optflags} -I%{_includedir}/pcre -DNDEBUG -DHAVE_RULES" TINYXML= LDFLAGS="-ltinyxml -lpcre" %{?_smp_mflags}
%else
make CXXFLAGS="%{optflags} -DNDEBUG -DHAVE_RULES" TINYXML= LDFLAGS="-ltinyxml -lpcre" %{?_smp_mflags}
%endif
%install
rm -rf %{buildroot}
install -D -p -m 755 cppcheck %{buildroot}%{_bindir}/cppcheck
%check
%if 0%{?rhel} == 4
make CXXFLAGS="%{optflags} -I%{_includedir}/pcre -DNDEBUG -DHAVE_RULES" TINYXML= LDFLAGS="-ltinyxml -lpcre" %{?_smp_mflags} check
%else
make CXXFLAGS="%{optflags} -DNDEBUG -DHAVE_RULES" TINYXML= LDFLAGS="-ltinyxml -lpcre" %{?_smp_mflags} check
%endif
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc COPYING readme.txt test/
%doc COPYING
%{_bindir}/cppcheck
%changelog
* Sun Oct 09 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.51-1
- Update to 1.51.
* Fri Aug 19 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.50-2
- Fix build on EPEL-4.
* Sun Aug 14 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.50-1
- Update to 1.50.
* Mon Jun 13 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.49-1
- Update to 1.49.
* Sat Apr 30 2011 Ville Skyttä <ville.skytta@iki.fi> - 1.48-2
- Build with system tinyxml and support for rules.
- Run test suite during build, don't include its sources in docs.
- Drop readme.txt from docs, it doesn't contain useful info after installed.
* Fri Apr 15 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.48-1
- Update to 1.48.
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.47-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Mon Feb 07 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.47-1
- Update to 1.47.
* Thu Dec 30 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.46.1-1
- Update to 1.46.1.
* Wed Dec 15 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.46-1
- Update to 1.46.
* Mon Oct 4 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.45-1
- Update to 1.45.
* Sat Jul 24 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.44-1
- Update to 1.44.

View File

@ -1 +1 @@
c8d24c0e7a3db99660f81b8a0568e050 cppcheck-1.44.tar.bz2
8349ab90472801b9d377cfabf846ca28 cppcheck-1.51.tar.bz2