|
|
@ -1,27 +1,20 @@
|
|
|
|
Name: glew
|
|
|
|
Name: glew
|
|
|
|
Version: 1.4.0
|
|
|
|
Version: 1.5.0
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: The OpenGL Extension Wrangler Library
|
|
|
|
Summary: The OpenGL Extension Wrangler Library
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: BSD
|
|
|
|
License: BSD and MIT
|
|
|
|
URL: http://glew.sourceforge.net
|
|
|
|
URL: http://glew.sourceforge.net
|
|
|
|
# This is http://downloads.sourceforge.net/glew/glew-%{version}-src.tgz
|
|
|
|
# This is http://downloads.sourceforge.net/glew/glew-%{version}-src.tgz
|
|
|
|
# With the following files removed because they are subject to the
|
|
|
|
# The files under the doc dir in this archive are under this non free license:
|
|
|
|
# "SGI Free Software License B" resp "GLX Public License" :
|
|
|
|
# Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
|
|
|
# include/GL/glew.h include/GL/glxew.h auto/src/glew_head.h
|
|
|
|
# Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
|
|
|
# auto/src/glxew_head.h auto/src/sgi_license.h auto/src/glx_license.h
|
|
|
|
# This documentation may not be modified or redistributed in any
|
|
|
|
# doc/sgi.txt doc/glx.txt
|
|
|
|
# form, except by the copyright holder.
|
|
|
|
|
|
|
|
# and therefor these files have been removed.
|
|
|
|
Source0: glew-%{version}-src-clean.tgz
|
|
|
|
Source0: glew-%{version}-src-clean.tgz
|
|
|
|
# These are modified headers from Mesa, with all post GL[x] 1.1 defines and
|
|
|
|
|
|
|
|
# prototypes removed, these replace the removed encumbered auto/src/glew_head.h
|
|
|
|
|
|
|
|
# and auto/src/glxew_head.h files
|
|
|
|
|
|
|
|
Source1: glew-mesa-replacement-headers.tgz
|
|
|
|
|
|
|
|
Source2: LICENSE-README.fedora
|
|
|
|
|
|
|
|
Patch0: glew-1.3.6-pathandstrip.patch
|
|
|
|
Patch0: glew-1.3.6-pathandstrip.patch
|
|
|
|
Patch1: glew-1.4.0-auto-make.patch
|
|
|
|
Patch1: glew-1.4.0-unused-direct-shlib-dependency.patch
|
|
|
|
Patch2: glew-1.4.0-unused-direct-shlib-dependency.patch
|
|
|
|
|
|
|
|
Patch3: glew-1.4.0-license-doc.patch
|
|
|
|
|
|
|
|
Patch4: glew-1.4.0-GL_FLOAT_MATXxX.patch
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: libGLU-devel
|
|
|
|
BuildRequires: libGLU-devel
|
|
|
|
|
|
|
|
|
|
|
@ -45,20 +38,9 @@ Development files for glew
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -a 1 -n %{name}
|
|
|
|
%setup -q -n %{name}
|
|
|
|
%patch0 -p1
|
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
|
|
|
|
%patch3 -p1
|
|
|
|
|
|
|
|
cp %{SOURCE2} .
|
|
|
|
|
|
|
|
mkdir auto/registry
|
|
|
|
|
|
|
|
touch auto/registry/.dummy auto/extensions/.dummy
|
|
|
|
|
|
|
|
make -C auto ../include/GL/glew.h
|
|
|
|
|
|
|
|
make -C auto ../include/GL/glxew.h
|
|
|
|
|
|
|
|
# This is a patch to the autogenerated include/GL/glew.h file, so don't apply
|
|
|
|
|
|
|
|
# before that file is generated. I have no clue why these defines do not get
|
|
|
|
|
|
|
|
# properly added by the generation process, but they don't.
|
|
|
|
|
|
|
|
%patch4 -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
@ -83,18 +65,22 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE-README.fedora
|
|
|
|
%doc LICENSE.txt
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_libdir}/libGLEW.so.*
|
|
|
|
%{_libdir}/libGLEW.so.*
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc doc/*
|
|
|
|
|
|
|
|
%{_libdir}/libGLEW.so
|
|
|
|
%{_libdir}/libGLEW.so
|
|
|
|
%{_includedir}/GL/*.h
|
|
|
|
%{_includedir}/GL/*.h
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Mon Jan 21 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.5.0-1
|
|
|
|
|
|
|
|
- New upstream version, now SGI licensed stuff free out of the box!
|
|
|
|
|
|
|
|
- Unfortunately some of the included docs are under a non free license,
|
|
|
|
|
|
|
|
therefor this package is based on a modified tarbal with these files removed
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 12 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.4.0-4
|
|
|
|
* Sat Jan 12 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.4.0-4
|
|
|
|
- Add missing GL_FLOAT_MATXxX defines
|
|
|
|
- Add missing GL_FLOAT_MATXxX defines
|
|
|
|
|
|
|
|
|
|
|
|