From 4abb9e07c6f656ffe5544f819a74dac03e320397 Mon Sep 17 00:00:00 2001 From: Richard W.M. Jones Date: Oct 22 2009 08:12:53 +0000 Subject: Initial import. --- diff --git a/.cvsignore b/.cvsignore index e69de29..8aaabe2 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +freeglut-2.6.0-rc1.tar.gz diff --git a/freeglut-2.6.0-disable-X.patch b/freeglut-2.6.0-disable-X.patch new file mode 100644 index 0000000..b596195 --- /dev/null +++ b/freeglut-2.6.0-disable-X.patch @@ -0,0 +1,12 @@ +--- 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" diff --git a/freeglut-2.6.0-header-case.patch b/freeglut-2.6.0-header-case.patch new file mode 100644 index 0000000..0d22394 --- /dev/null +++ b/freeglut-2.6.0-header-case.patch @@ -0,0 +1,28 @@ +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 ++# include + + /* 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 +-# include +-# include ++# include ++# include ++# include + /* CYGWIN does not have tchar.h, but has TEXT(x), defined in winnt.h. */ + # ifndef __CYGWIN__ + # include diff --git a/import.log b/import.log new file mode 100644 index 0000000..1c31b36 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +mingw32-freeglut-2_6_0-0_1_rc1_fc11:F-12:mingw32-freeglut-2.6.0-0.1.rc1.fc11.src.rpm:1256199129 diff --git a/mingw32-freeglut.spec b/mingw32-freeglut.spec new file mode 100644 index 0000000..707dd3d --- /dev/null +++ b/mingw32-freeglut.spec @@ -0,0 +1,96 @@ +%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 - 2.6.0-0.1.rc1 +- Initial RPM release. diff --git a/sources b/sources index e69de29..3463fd2 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b1a8107f99b5d953e8418a5409462294 freeglut-2.6.0-rc1.tar.gz