Blame SPECS/glew.spec

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