rpms/mingw32-freeglut/EL-5 freeglut-2.6.0-disable-X.patch, NONE, 1.1 freeglut-2.6.0-header-case.patch, NONE, 1.1 import.log, NONE, 1.1 mingw32-freeglut.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Richard W.M. Jones rjones at fedoraproject.org
Thu Oct 22 08:14:10 UTC 2009


Author: rjones

Update of /cvs/pkgs/rpms/mingw32-freeglut/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9126/EL-5

Modified Files:
	.cvsignore sources 
Added Files:
	freeglut-2.6.0-disable-X.patch 
	freeglut-2.6.0-header-case.patch import.log 
	mingw32-freeglut.spec 
Log Message:
Initial import.


freeglut-2.6.0-disable-X.patch:
 configure.ac |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- NEW FILE freeglut-2.6.0-disable-X.patch ---
--- freeglut-2.6.0.orig/configure.ac	2009-04-21 04:52:10.000000000 +0100
+++ freeglut-2.6.0/configure.ac	2009-10-14 09:29:38.829541752 +0100
@@ -19,7 +19,8 @@
 AC_SUBST([LIBTOOL_DEPS])
 
 # Checks for libraries.
-AC_PATH_XTRA
+#AC_PATH_XTRA
+no_x=yes
 
 if test x"$no_x" = xyes; then
   GL_LIBS="-lopengl32 -lgdi32 -lwinmm"

freeglut-2.6.0-header-case.patch:
 include/GL/freeglut_std.h |    2 +-
 src/freeglut_internal.h   |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

--- NEW FILE freeglut-2.6.0-header-case.patch ---
diff -ur freeglut-2.6.0/include/GL/freeglut_std.h freeglut-2.6.0.headers/include/GL/freeglut_std.h
--- freeglut-2.6.0/include/GL/freeglut_std.h	2009-04-21 04:52:10.000000000 +0100
+++ freeglut-2.6.0.headers/include/GL/freeglut_std.h	2009-10-14 08:59:26.767291372 +0100
@@ -58,7 +58,7 @@
 #    define WIN32_LEAN_AND_MEAN 1
 #  endif
 #   define NOMINMAX
-#   include <Windows.h>
+#   include <windows.h>
 
 /* Windows static library */
 #   ifdef FREEGLUT_STATIC
diff -ur freeglut-2.6.0/src/freeglut_internal.h freeglut-2.6.0.headers/src/freeglut_internal.h
--- freeglut-2.6.0/src/freeglut_internal.h	2009-04-21 04:52:09.000000000 +0100
+++ freeglut-2.6.0.headers/src/freeglut_internal.h	2009-10-14 09:00:11.450404138 +0100
@@ -90,9 +90,9 @@
  * because the cross-platform includes are case sensitive.
  */
 #if TARGET_HOST_MS_WINDOWS && !defined(_WIN32_WCE)
-#    include <Windows.h>
-#    include <WindowsX.h>
-#    include <MMSystem.h>
+#    include <windows.h>
+#    include <windowsx.h>
+#    include <mmsystem.h>
 /* CYGWIN does not have tchar.h, but has TEXT(x), defined in winnt.h. */
 #    ifndef __CYGWIN__
 #      include <tchar.h>


--- NEW FILE import.log ---
mingw32-freeglut-2_6_0-0_1_rc1_fc11:EL-5:mingw32-freeglut-2.6.0-0.1.rc1.fc11.src.rpm:1256199228


--- NEW FILE mingw32-freeglut.spec ---
%global __strip %{_mingw32_strip}
%global __objdump %{_mingw32_objdump}
%global _use_internal_dependency_generator 0
%global __find_requires %{_mingw32_findrequires}
%global __find_provides %{_mingw32_findprovides}

Name:           mingw32-freeglut
Version:        2.6.0
Release:        0.1.rc1%{?dist}
Summary:        Fedora MinGW alternative to the OpenGL Utility Toolkit (GLUT)

License:        MIT
Group:          Development/Libraries

URL:            http://freeglut.sourceforge.net
Source0:        http://downloads.sourceforge.net/freeglut/freeglut-%{version}-rc1.tar.gz

# Patches from native Fedora package:
# (none)

# Case sensitivity of the header includes.
Patch1000:      freeglut-2.6.0-header-case.patch

# Hack to disable X / enable Windows in the configure.ac file.
Patch1001:      freeglut-2.6.0-disable-X.patch

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch

BuildRequires:  mingw32-filesystem >= 35
BuildRequires:  mingw32-gcc
BuildRequires:  mingw32-binutils

BuildRequires:  dos2unix

# Because we patch configure.ac.
BuildRequires:  autoconf, automake, libtool


%description
freeglut is a completely open source alternative to the OpenGL Utility
Toolkit (GLUT) library with an OSI approved free software
license. GLUT was originally written by Mark Kilgard to support the
sample programs in the second edition OpenGL 'RedBook'. Since then,
GLUT has been used in a wide variety of practical applications because
it is simple, universally available and highly portable.

freeglut allows the user to create and manage windows containing
OpenGL contexts on a wide range of platforms and also read the mouse,
keyboard and joystick functions.

%{_mingw32_description}


%prep
%setup -q -n freeglut-2.6.0

%patch1000 -p1
%patch1001 -p1

autoreconf
libtoolize

dos2unix -k FrequentlyAskedQuestions


%build
%{_mingw32_configure} --disable-static --enable-shared
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install

rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libglut.la


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING FrequentlyAskedQuestions NEWS README README.win32 TODO
%{_mingw32_bindir}/libglut-0.dll
%{_mingw32_libdir}/libglut.dll.a
%{_mingw32_includedir}/GL/freeglut.h
%{_mingw32_includedir}/GL/freeglut_ext.h
%{_mingw32_includedir}/GL/freeglut_std.h
%{_mingw32_includedir}/GL/glut.h


%changelog
* Wed Oct 14 2009 Richard W.M. Jones <rjones at redhat.com> - 2.6.0-0.1.rc1
- Initial RPM release.


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-freeglut/EL-5/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	22 Oct 2009 04:35:30 -0000	1.1
+++ .cvsignore	22 Oct 2009 08:14:10 -0000	1.2
@@ -0,0 +1 @@
+freeglut-2.6.0-rc1.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-freeglut/EL-5/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	22 Oct 2009 04:35:31 -0000	1.1
+++ sources	22 Oct 2009 08:14:10 -0000	1.2
@@ -0,0 +1 @@
+b1a8107f99b5d953e8418a5409462294  freeglut-2.6.0-rc1.tar.gz




More information about the fedora-extras-commits mailing list