e0219dc
Name:           glew
4146842
Version:        2.1.0
80dddd3
Release:        8%{?dist}
e0219dc
Summary:        The OpenGL Extension Wrangler Library
1cd6f80
License:        BSD and MIT
e0219dc
URL:            http://glew.sourceforge.net
ce17b6d
faec8f1
Source0:        https://sourceforge.net/projects/glew/files/glew/%{version}/glew-%{version}.tgz
4146842
Patch0:         glew-2.1.0-install.patch
045e950
BuildRequires:  gcc
e0219dc
BuildRequires:  libGLU-devel
9c77c56
BuildRequires: make
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
faec8f1
are in libGLEW.
e0219dc
e0219dc
%package devel
e0219dc
Summary:        Development files for glew
4146842
Requires:       libGLEW%{?_isa} = %{version}-%{release}
a7d0fd2
Requires:       mesa-libGLU-devel%{?_isa}
e0219dc
e0219dc
%description devel
e0219dc
Development files for glew
e0219dc
e0219dc
81c1286
%package -n libGLEW
81c1286
Summary:        libGLEW
81c1286
81c1286
%description -n libGLEW
81c1286
libGLEW
81c1286
e0219dc
%prep
4146842
%autosetup -p1
e0219dc
3e02a88
# update config.guess for new arch support
3e02a88
cp /usr/lib/rpm/redhat/config.guess config/
e0219dc
e0219dc
%build
Owen W. Taylor 7efa2c5
%make_build CFLAGS.EXTRA="$RPM_OPT_FLAGS -fPIC"\
Owen W. Taylor 7efa2c5
     STRIP= \
Owen W. Taylor 7efa2c5
     GLEW_PREFIX=%{_prefix} GLEW_DEST=%{_prefix} \
Owen W. Taylor 7efa2c5
     includedir=%{_includedir} \
Owen W. Taylor 7efa2c5
     BINDIR=%{_bindir} LIBDIR=%{_libdir} PKGDIR=%{_libdir}/pkgconfig
e0219dc
e0219dc
%install
Owen W. Taylor 7efa2c5
make install.all DESTDIR="$RPM_BUILD_ROOT" \
Owen W. Taylor 7efa2c5
     GLEW_PREFIX=%{_prefix} GLEW_DEST=%{_prefix} \
Owen W. Taylor 7efa2c5
     includedir=%{_includedir} \
Owen W. Taylor 7efa2c5
     BINDIR=%{_bindir} LIBDIR=%{_libdir} PKGDIR=%{_libdir}/pkgconfig
3e02a88
find $RPM_BUILD_ROOT -type f -name "*.a" -delete
fca1ffa
# sigh
fca1ffa
chmod 0755 $RPM_BUILD_ROOT%{_libdir}/*.so*
e0219dc
8b9db05
%ldconfig_scriptlets -n libGLEW
3a3b0b7
e0219dc
%files
4146842
%license LICENSE.txt
e0219dc
%{_bindir}/*
81c1286
81c1286
%files -n libGLEW
4146842
%license LICENSE.txt
e0219dc
%{_libdir}/libGLEW.so.*
81c1286
e0219dc
%files devel
e0219dc
%{_libdir}/libGLEW.so
faec8f1
%{_libdir}/pkgconfig//glew.pc
e0219dc
%{_includedir}/GL/*.h
ce17b6d
%doc doc/*
e0219dc
e0219dc
%changelog
80dddd3
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-8
80dddd3
- Second attempt - Rebuilt for
80dddd3
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
80dddd3
d5d61a4
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-7
d5d61a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d5d61a4
eb1c166
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-6
eb1c166
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
eb1c166
fe40fff
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-5
fe40fff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
fe40fff
ec47a92
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-4
ec47a92
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
ec47a92
Owen W. Taylor 7efa2c5
* Thu Sep  6 2018 Owen Taylor <otaylor@redhat.com> - 2.1.0-3
Owen W. Taylor 7efa2c5
- Fix installation with prefix=/app
Owen W. Taylor 7efa2c5
a7d0fd2
* Thu Aug 23 2018 Nicolas Chauvet <kwizart@gmail.com> - 2.1.0-2
a7d0fd2
- Fix mesa-libGLU-devel isnt't arched
a7d0fd2
4146842
* Wed Aug 15 2018 Nicolas Chauvet <kwizart@gmail.com> - 2.1.0-1
4146842
- Update to 2.1.0
4146842
128f716
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-7
128f716
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
128f716
7298e52
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-6
7298e52
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7298e52
8b9db05
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.0-5
8b9db05
- Switch to %%ldconfig_scriptlets
8b9db05
f86f253
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-4
f86f253
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f86f253
2406bfd
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-3
2406bfd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2406bfd
837739b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
837739b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
837739b
faec8f1
* Sun Jan 8 2017 Oded Gabbay <oded.gabbay@gmail.com> 2.0.0-1
faec8f1
- glew 2.0.0
faec8f1
c9aeaca
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.0-2
c9aeaca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c9aeaca
a1874cd
* Wed Jan 13 2016 Adam Jackson <ajax@redhat.com> 1.13.0-1
a1874cd
- glew 1.13.0
a1874cd
d70163d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.0-6
d70163d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d70163d
794e8ac
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.0-5
794e8ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
794e8ac
5a44085
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.0-4
5a44085
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5a44085
3e02a88
* Sat May  3 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.10.0-3
3e02a88
- Update config.guess for newer arch support
3e02a88
- Modernise spec file
3e02a88
13f5f1b
* Mon Nov 18 2013 Dave Airlie <airlied@redhat.com> - 1.10.0-2
13f5f1b
- rebuilt for GLEW 1.10
13f5f1b
Dave Airlie d2044a5
* Sun Nov 17 2013 Dave Airlie <airlied@redhat.com> 1.10.0-1
Dave Airlie d2044a5
- glew 1.10.0 + build fix + makefile hacks
Dave Airlie d2044a5
70089b8
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-4
70089b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
70089b8
2af115e
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-3
2af115e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2af115e
1a125c5
* Tue Dec 18 2012 Ville Skyttä <ville.skytta@iki.fi> - 1.9.0-2
1a125c5
- Prevent stripping binaries before rpmbuild does it.
1a125c5
9857236
* Thu Dec 13 2012 Adam Jackson <ajax@redhat.com> 1.9.0-1
9857236
- glew 1.9.0
9857236
3a3b0b7
* Sun Jul 22 2012 Ville Skyttä <ville.skytta@iki.fi> - 1.7.0-3
3a3b0b7
- Move/add ldconfig post(un)install scriptlets to appropriate subpackages.
3a3b0b7
616f10f
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-2
616f10f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
616f10f
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