e0219dc
Name:           glew
f016e88
Version:        1.7.0
f016e88
Release:        1%{?dist}
e0219dc
Summary:        The OpenGL Extension Wrangler Library
e0219dc
Group:          System Environment/Libraries
1cd6f80
License:        BSD and MIT
e0219dc
URL:            http://glew.sourceforge.net
ce17b6d
b007a0b
Source0:	http://downloads.sourceforge.net/project/glew/glew/%{version}/glew-%{version}.tgz
fca1ffa
Patch0:         glew-1.6.0-makefile.patch
e0219dc
BuildRequires:  libGLU-devel
e0219dc
e0219dc
%description
e0219dc
The OpenGL Extension Wrangler Library (GLEW) is a cross-platform C/C++
e0219dc
extension loading library. GLEW provides efficient run-time mechanisms for
e0219dc
determining which OpenGL extensions are supported on the target platform.
e0219dc
OpenGL core and extension functionality is exposed in a single header file.
e0219dc
GLEW is available for a variety of operating systems, including Windows, Linux,
e0219dc
Mac OS X, FreeBSD, Irix, and Solaris.
e0219dc
81c1286
This package contains the demo GLEW utilities.  The libraries themselves
81c1286
are in libGLEW and libGLEWmx.
e0219dc
e0219dc
%package devel
e0219dc
Summary:        Development files for glew
e0219dc
Group:          Development/Libraries
81c1286
Requires:       libGLEW = %{version}-%{release}
81c1286
Requires:       libGLEWmx = %{version}-%{release}
e0219dc
Requires:       libGLU-devel
e0219dc
e0219dc
%description devel
e0219dc
Development files for glew
e0219dc
e0219dc
81c1286
%package -n libGLEW
81c1286
Summary:        libGLEW
81c1286
Group:          System Environment/Libraries
81c1286
81c1286
%description -n libGLEW
81c1286
libGLEW
81c1286
81c1286
%package -n libGLEWmx
81c1286
Summary:        libGLEWmx
81c1286
Group:          System Environment/Libraries
81c1286
81c1286
%description -n libGLEWmx
81c1286
libGLEWmx
81c1286
e0219dc
%prep
b007a0b
%setup -q
ef02c61
%patch0 -p1 -b .make
e0219dc
ce17b6d
sed -i -e 's/\r//g' config/config.guess
e0219dc
e0219dc
%build
ce17b6d
7d270f5
make %{?_smp_mflags} CFLAGS.EXTRA="$RPM_OPT_FLAGS" includedir=%{_includedir} GLEW_DEST= libdir=%{_libdir} bindir=%{_bindir}
e0219dc
e0219dc
%install
e0219dc
rm -rf $RPM_BUILD_ROOT
fca1ffa
make install.all GLEW_DEST="$RPM_BUILD_ROOT" libdir=%{_libdir} bindir=%{_bindir} includedir=%{_includedir}
fca1ffa
rm -f $RPM_BUILD_ROOT%{_libdir}/libGLEW.a $RPM_BUILD_ROOT%{_libdir}/libGLEWmx.a
fca1ffa
# sigh
fca1ffa
chmod 0755 $RPM_BUILD_ROOT%{_libdir}/*.so*
e0219dc
e0219dc
%clean
e0219dc
rm -rf $RPM_BUILD_ROOT
e0219dc
e0219dc
%post -p /sbin/ldconfig
e0219dc
e0219dc
%postun -p /sbin/ldconfig
e0219dc
e0219dc
%files
e0219dc
%defattr(-,root,root,-)
1cd6f80
%doc LICENSE.txt
e0219dc
%{_bindir}/*
81c1286
81c1286
%files -n libGLEW
81c1286
%defattr(-,root,root,-)
81c1286
%doc LICENSE.txt
e0219dc
%{_libdir}/libGLEW.so.*
81c1286
81c1286
%files -n libGLEWmx
81c1286
%defattr(-,root,root,-)
81c1286
%doc LICENSE.txt
7069dc0
%{_libdir}/libGLEWmx.so.*
e0219dc
e0219dc
%files devel
e0219dc
%defattr(-,root,root,-)
e0219dc
%{_libdir}/libGLEW.so
7069dc0
%{_libdir}/libGLEWmx.so
ef02c61
%{_libdir}/pkgconfig/glew.pc
7069dc0
%{_libdir}/pkgconfig/glewmx.pc
e0219dc
%{_includedir}/GL/*.h
ce17b6d
%doc doc/*
e0219dc
e0219dc
%changelog
f016e88
* Mon Feb 13 2012 Adam Jackson <ajax@redhat.com> 1.7.0-1
f016e88
- glew 1.7.0
f016e88
02f4c13
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-2
02f4c13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
02f4c13
fca1ffa
* Mon Jun 20 2011 Adam Jackson <ajax@redhat.com> 1.6.0-1
fca1ffa
- glew 1.6.0 (#714763)
fca1ffa
aff785b
* Wed Mar 23 2011 Adam Williamson <awilliam@redhat.com> - 1.5.8-3
aff785b
- instead of taking flags out in makefile.patch and adding them back
aff785b
  in add-needed.patch, let's just not take them out...
aff785b
81c1286
* Wed Mar 23 2011 Adam Jackson <ajax@redhat.com> 1.5.8-2
81c1286
- glew-1.5.8-glewmx.patch: Install libGLEWmx 0755 so autoprovs work
81c1286
- Split runtime libraries to their own packages
81c1286
53c3e73
* Wed Mar 23 2011 Adam Williamson <awilliam@redhat.com> - 1.5.8-1
53c3e73
- bump to 1.5.8
53c3e73
- add soname.patch to fix the internal SONAME of the MX library
53c3e73
7069dc0
* Wed Mar 23 2011 Adam Williamson <awilliam@redhat.com> - 1.5.7-3
7069dc0
- add glewmx.patch (upstream commit 302c224016, always build the
7069dc0
  MX-enabled version of the library as well as non-MX version, under
7069dc0
  a different name)
7069dc0
- revise add-needed.patch to change the LDFLAGS in a better place
7069dc0
  and add -lGLU as well as -lX11
7069dc0
033c19d
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.7-2
033c19d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
033c19d
7ba2223
* Sat Jan 15 2011 Dave Airlie <airlied@redhat.com> 1.5.7-1
7ba2223
- glew 1.5.7
7ba2223
a34623c
* Wed Aug 25 2010 Adam Jackson <ajax@redhat.com> 1.5.5-1
a34623c
- glew 1.5.5
a34623c
7d270f5
* Fri Jul 30 2010 Dave Airlie <airlied@redhat.com> 1.5.4-2
7d270f5
- fix glew.pc file as pointed out by David Aguilar
7d270f5
ef02c61
* Sat May 29 2010 Dave Airlie <airlied@redhat.com> 1.5.4-1
ef02c61
- glew 1.5.4 - add glew.pc
ef02c61
0849125
* Tue Feb 09 2010 Adam Jackson <ajax@redhat.com> 1.5.2-2
0849125
- glew-1.5.2-add-needed.patch: Fix FTBFS from --no-add-needed
0849125
b007a0b
* Tue Feb 02 2010 Adam Jackson <ajax@redhat.com> 1.5.2-1
b007a0b
- glew 1.5.2
b007a0b
f6eace1
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-3
f6eace1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f6eace1
074c5ae
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-2
074c5ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
074c5ae
ce17b6d
* Thu Nov 13 2008 Jochen Schmitt <Jochen herr-schmitt de> - 1.5.1-1
ce17b6d
- New upstream release (#469639)
ce17b6d
- Fix licenseing issue with developer documentation
ce17b6d
8dba423
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.5.0-2
8dba423
- Autorebuild for GCC 4.3
8dba423
1cd6f80
* Mon Jan 21 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.5.0-1
1cd6f80
- New upstream version, now SGI licensed stuff free out of the box!
1cd6f80
- Unfortunately some of the included docs are under a non free license,
1cd6f80
  therefor this package is based on a modified tarbal with these files removed
1cd6f80
9ce121d
* Sat Jan 12 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.4.0-4
9ce121d
- Add missing GL_FLOAT_MATXxX defines
9ce121d
e0219dc
* Sat Aug 18 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.4.0-3
e0219dc
- Fix multiple unused direct shlib dependencies in libGLEW.so
e0219dc
- Remove the "SGI Free Software License B" and "GLX Public License" tekst from
e0219dc
  the doc dir in the tarbal
e0219dc
- Patch credits.html to no longer refer to the 2 non free licenses, instead it
e0219dc
  now points to LICENSE-README.fedora
e0219dc
- Put API docs in -devel instead of main package
e0219dc
e0219dc
* Mon Aug  6 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.4.0-2
e0219dc
- Remove SGI encumbered files to make this ok to go into Fedora
e0219dc
- Replace some removed files with (modified) mesa files
e0219dc
- Regenerate some of the removed files using the mesa replacemenmt files
e0219dc
  and the scripts in the auto directory
e0219dc
- Readd wglew.h, some programs may need this to compile
e0219dc
- Update License tag for new Licensing Guidelines compliance
e0219dc
e0219dc
* Sun May 06 2007 Ian Chapman <packages@amiga-hardware.com> 1.4.0-1%{?dist}
e0219dc
- Updated to 1.4.0
e0219dc
e0219dc
* Sun Mar 04 2007 Ian Chapman <packages@amiga-hardware.com> 1.3.6-1%{?dist}
e0219dc
- Updated to 1.3.6
e0219dc
- Updated pathandstrip patch
e0219dc
- Dropped xlib patch - fixed upstream
e0219dc
- Dropped sed EOL replacements - fixed upstream
e0219dc
- Changed license to GPL
e0219dc
e0219dc
* Fri Dec 01 2006 Ian Chapman <packages@amiga-hardware.com> 1.3.5-1%{?dist}
e0219dc
- Updated to 1.3.5
e0219dc
- Fixed stripping of the binaries
e0219dc
- Reinstate parallel building, no longer appears broken
e0219dc
- Removed FC4 specifics from spec (no longer supported)
e0219dc
e0219dc
* Tue Jun 20 2006 Ian Chapman <packages@amiga-hardware.com> 1.3.4-3%{?dist}
e0219dc
- Added buildrequire macros to determine fc4, fc5, fc6 due to X modularisation
e0219dc
e0219dc
* Sun Jun 04 2006 Ian Chapman <packages@amiga-hardware.com> 1.3.4-2%{?dist}
e0219dc
- Replaced %%{_sed} macro with sed
e0219dc
- Replaced xorg-x11-devel (build)requires with libGLU-devel for compatibility
e0219dc
  with modular / non-modular X
e0219dc
- Replaced source URL to use primary sf site rather than a mirror
e0219dc
- Removed superfluous docs from devel package
e0219dc
- Removed wglew.h, seems to be only useful for windows platforms
e0219dc
e0219dc
* Thu May 11 2006 Ian Chapman <packages@amiga-hardware.com> 1.3.4-1.iss
e0219dc
- Initial Release