rpms/doctorj/devel doctorj.spec,1.5,1.6
Ville Skytta (scop)
fedora-extras-commits at redhat.com
Sun Feb 13 09:59:46 UTC 2005
Author: scop
Update of /cvs/extras/rpms/doctorj/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4882
Modified Files:
doctorj.spec
Log Message:
Use compat-gcc-c++ to "fix" build on FC3+.
Index: doctorj.spec
===================================================================
RCS file: /cvs/extras/rpms/doctorj/devel/doctorj.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- doctorj.spec 10 Dec 2004 22:03:02 -0000 1.5
+++ doctorj.spec 13 Feb 2005 09:59:44 -0000 1.6
@@ -1,6 +1,6 @@
Name: doctorj
Version: 4.0.2
-Release: 2
+Release: 3
Epoch: 0
Summary: Java source code analyzer
@@ -11,7 +11,7 @@
Patch: %{name}-improperseq.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: flex
+BuildRequires: flex compat-gcc-c++
%description
DoctorJ analyzes Java code, in the following functional areas:
@@ -24,6 +24,10 @@
%build
+# gcc 3.3 doesn't grok -mtune
+%{expand: %%define optflags %(echo %{optflags} | sed s/mtune/mcpu/)}
+export CXX=$(rpm -ql compat-gcc-c++ | grep '^%{_bindir}/g\+\+' | \
+ head -n 1 | xargs basename)
%configure
make %{?_smp_mflags}
@@ -49,6 +53,9 @@
%changelog
+* Sun Feb 13 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:4.0.2-3
+- Use compat-gcc-c++ to fix build on FC3+.
+
* Sun May 30 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:4.0.2-0.fdr.2
- Fix build on FC2, thanks to Michael Schwendt (bug 1025).
More information about the fedora-extras-commits
mailing list