Compare commits
9 Commits
Author | SHA1 | Date |
---|---|---|
Jussi Lehtola | b6e4619788 | |
Fedora Release Engineering | 80880ffff1 | |
Jussi Lehtola | cdf80b6292 | |
Jussi Lehtola | 8d99f0574c | |
Jussi Lehtola | aefe0051e5 | |
Jussi Lehtola | 0da437d613 | |
Bill Nottingham | 95740fdd6c | |
Jussi Lehtola | 2fd08a756d | |
Jesse Keating | 7b9d61c0d6 |
21
Makefile
21
Makefile
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: cppcheck
|
||||
# $Id$
|
||||
NAME := cppcheck
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
|
@ -1,5 +1,5 @@
|
|||
Name: cppcheck
|
||||
Version: 1.36
|
||||
Version: 1.45
|
||||
Release: 1%{?dist}
|
||||
Summary: A tool for static C/C++ code analysis
|
||||
Group: Development/Languages
|
||||
|
@ -22,19 +22,23 @@ various compiler extensions, inline assembly code, etc.
|
|||
%prep
|
||||
%setup -q
|
||||
# Convert text files to UTF-8
|
||||
for file in COPYING readme.txt; do
|
||||
iconv -f ASCII -t utf-8 $file > $file.new && \
|
||||
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; do
|
||||
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 {} \;
|
||||
|
||||
%build
|
||||
make CXXFLAGS="%{optflags}" %{?_smp_mflags}
|
||||
|
||||
|
@ -51,6 +55,27 @@ rm -rf %{buildroot}
|
|||
%{_bindir}/cppcheck
|
||||
|
||||
%changelog
|
||||
* 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.
|
||||
|
||||
* Sun May 9 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.43-1
|
||||
- Update to 1.43.
|
||||
|
||||
* Wed Mar 10 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.42-1
|
||||
- Update to 1.42.
|
||||
|
||||
* Mon Jan 18 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.40-1
|
||||
- Update to 1.40.
|
||||
|
||||
* Sun Dec 27 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.39-1
|
||||
- Update to 1.39.
|
||||
|
||||
* Sat Nov 07 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.38-1
|
||||
- Update to 1.38.
|
||||
|
||||
* Tue Sep 22 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.36-1
|
||||
- Update to 1.36.
|
||||
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
cppcheck-1_31-1_fc10:HEAD:cppcheck-1.31-1.fc10.src.rpm:1241070717
|
||||
cppcheck-1_34-1_fc11:HEAD:cppcheck-1.34-1.fc11.src.rpm:1247752109
|
Loading…
Reference in New Issue