rpms/sdljava/devel sdljava.spec,1.3,1.4
Hans de Goede (jwrdegoede)
fedora-extras-commits at redhat.com
Sun Dec 9 23:23:24 UTC 2007
- Previous message (by thread): rpms/itpp/F-8 .cvsignore,1.7,1.8 itpp.spec,1.6,1.7 sources,1.7,1.8
- Next message (by thread): rpms/pcapdiff/F-7 pcapdiff, NONE, 1.1 pcapdiff-pcapdiff-noshebang.patch, NONE, 1.1 pcapdiff-pcapdiff_helper-noshebang.patch, NONE, 1.1 pcapdiff-printpackets-noshebang.patch, NONE, 1.1 pcapdiff.spec, NONE, 1.1 printpackets, NONE, 1.1 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: jwrdegoede
Update of /cvs/extras/rpms/sdljava/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8078
Modified Files:
sdljava.spec
Log Message:
* Sun Dec 9 2007 Hans de Goede <j.w.r.degoede at hhs.nl> 0.9.1-7
- And the dejavu-fonts fontfile names changed back again (what fun)
- The gcj bug causing us to not compile has been fixed, use gcj again
and drop ExclusiveArch
- There is no reason for us to run ldconfig!
- Sigh we must now define __arch__ ourself as the newer swig doesn't
Index: sdljava.spec
===================================================================
RCS file: /cvs/extras/rpms/sdljava/devel/sdljava.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- sdljava.spec 9 Dec 2007 22:44:30 -0000 1.3
+++ sdljava.spec 9 Dec 2007 23:22:46 -0000 1.4
@@ -19,16 +19,9 @@
Patch0: sdljava-0.9.1-regen.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ftgl-devel glew-devel SDL-devel SDL_gfx-devel SDL_image-devel
-BuildRequires: SDL_mixer-devel SDL_ttf-devel java-devel java-gcj-compat-devel
-BuildRequires: ant xml-commons-apis swig bsh jdom
-# Build fails on fedora 8 test 2 when not using icedtea :( Note it runs fine
-# with gcj (bug 297961).
-BuildRequires: java-1.7.0-icedtea-devel
-# icedtea is i386 and x86_64
-ExclusiveArch: %{ix86} x86_64
+BuildRequires: SDL_mixer-devel SDL_ttf-devel java-gcj-compat-devel
+BuildRequires: java-javadoc ant xml-commons-apis swig bsh jdom
Requires: bsh jdom
-Requires(post): /sbin/ldconfig
-Requires(postun): /sbin/ldconfig
%description
sdljava is a Java binding to the SDL API being developed by Ivan Ganza.
@@ -96,17 +89,37 @@
%build
+
+# special case ppc as the define is powerpc not ppc and both ppc and ppc64
+# must be set for ppc64
+%ifarch ppc
+CFLAGS="$RPM_OPT_FLAGS -D__powerpc__ -fno-strict-aliasing -fPIC"
+%endif
+%ifarch ppc64
+CFLAGS="$RPM_OPT_FLAGS -D__powerpc__ -D__powerpc64__ -fno-strict-aliasing -fPIC"
+%endif
+
+# special case ix86 as all of ix86 should define __i386__
+%ifarch %{ix86}
+CFLAGS="$RPM_OPT_FLAGS -D__i386__ -fno-strict-aliasing -fPIC"
+%endif
+
+# All other archs
+if [ -z "$CFLAGS" ]; then
+ CFLAGS="$RPM_OPT_FLAGS -D__%{_arch}__ -fno-strict-aliasing -fPIC"
+fi
+
pushd src/sdljava/native
-make CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fPIC"
-make libsdljava_gfx.so CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fPIC"
+make CFLAGS="$CFLAGS"
+make libsdljava_gfx.so CFLAGS="$CFLAGS"
popd
pushd src/org/gljava/opengl/native
-make CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fPIC"
+make CFLAGS="$CFLAGS"
popd
pushd src/org/gljava/opengl/native/ftgl
-make CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fPIC"
+make CFLAGS="$CFLAGS"
popd
ant jar javadoc
@@ -164,13 +177,11 @@
%post
-/sbin/ldconfig
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%postun
-/sbin/ldconfig
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
@@ -201,6 +212,10 @@
%changelog
* Sun Dec 9 2007 Hans de Goede <j.w.r.degoede at hhs.nl> 0.9.1-7
- And the dejavu-fonts fontfile names changed back again (what fun)
+- The gcj bug causing us to not compile has been fixed, use gcj again
+ and drop ExclusiveArch
+- There is no reason for us to run ldconfig!
+- Sigh we must now define __arch__ ourself as the newer swig doesn't
* Tue Nov 20 2007 Hans de Goede <j.w.r.degoede at hhs.nl> 0.9.1-6
- Adjust font symlinks in sdljava-demo package for fontfile name changes in
- Previous message (by thread): rpms/itpp/F-8 .cvsignore,1.7,1.8 itpp.spec,1.6,1.7 sources,1.7,1.8
- Next message (by thread): rpms/pcapdiff/F-7 pcapdiff, NONE, 1.1 pcapdiff-pcapdiff-noshebang.patch, NONE, 1.1 pcapdiff-pcapdiff_helper-noshebang.patch, NONE, 1.1 pcapdiff-printpackets-noshebang.patch, NONE, 1.1 pcapdiff.spec, NONE, 1.1 printpackets, NONE, 1.1 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list