From 7c0b58aa481da07ac0ec3be7152cad3f16ac80d2 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 19 2015 03:55:00 +0000 Subject: import compat-glew-1.9.0-7.el7 --- diff --git a/.compat-glew.metadata b/.compat-glew.metadata new file mode 100644 index 0000000..2d5e049 --- /dev/null +++ b/.compat-glew.metadata @@ -0,0 +1 @@ +9291f5c5afefd482c7f3e91ffb3cd4716c6c9ffe SOURCES/glew-1.9.0.tgz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f5da752 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/glew-1.9.0.tgz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/glew-1.9.0-makefile.patch b/SOURCES/glew-1.9.0-makefile.patch new file mode 100644 index 0000000..d30c7da --- /dev/null +++ b/SOURCES/glew-1.9.0-makefile.patch @@ -0,0 +1,54 @@ +diff -up glew-1.9.0/config/Makefile.linux.jx glew-1.9.0/config/Makefile.linux +--- glew-1.9.0/config/Makefile.linux.jx 2012-08-06 11:59:08.000000000 -0400 ++++ glew-1.9.0/config/Makefile.linux 2012-12-13 13:03:05.044983152 -0500 +@@ -3,14 +3,8 @@ CC = cc + LD = cc + PICFLAG = -fPIC + M_ARCH ?= $(shell uname -m) +-ifeq (x86_64,${M_ARCH}) +-LDFLAGS.EXTRA = -L/usr/X11R6/lib64 -L/usr/lib64 +-LIBDIR = $(GLEW_DEST)/lib64 +-else +-LDFLAGS.EXTRA = -L/usr/X11R6/lib -L/usr/lib +-LIBDIR = $(GLEW_DEST)/lib +-endif +-LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11 ++LIBDIR = $(GLEW_DEST)$(libdir) ++LDFLAGS.GL = -lGLU -lGL -lX11 + LDFLAGS.STATIC = -Wl,-Bstatic + LDFLAGS.DYNAMIC = -Wl,-Bdynamic + NAME = GLEW +diff -up glew-1.9.0/Makefile.jx glew-1.9.0/Makefile +--- glew-1.9.0/Makefile.jx 2012-12-13 13:00:59.000000000 -0500 ++++ glew-1.9.0/Makefile 2012-12-13 13:04:58.027629027 -0500 +@@ -41,9 +41,9 @@ $(error "Platform '$(SYSTEM)' not suppor + endif + + GLEW_DEST ?= /usr +-BINDIR ?= $(GLEW_DEST)/bin +-LIBDIR ?= $(GLEW_DEST)/lib +-INCDIR ?= $(GLEW_DEST)/include/GL ++BINDIR ?= $(GLEW_DEST)$(bindir) ++LIBDIR ?= $(GLEW_DEST)$(libdir) ++INCDIR ?= $(GLEW_DEST)$(includedir)/GL + + TARDIR = ../glew-$(GLEW_VERSION) + TARBALL = ../glew-$(GLEW_VERSION).tar.gz +@@ -224,7 +224,7 @@ ifeq ($(filter-out mingw% cygwin,$(SYSTE + $(INSTALL) -d -m 0755 $(BINDIR) + $(INSTALL) -m 0755 lib/$(LIB.SHARED) $(BINDIR)/ + else +- $(INSTALL) -m 0644 lib/$(LIB.SHARED) $(LIBDIR)/ ++ $(INSTALL) -m 0755 lib/$(LIB.SHARED) $(LIBDIR)/ + endif + ifneq ($(LN),) + $(LN) $(LIB.SHARED) $(LIBDIR)/$(LIB.SONAME) +@@ -246,7 +246,7 @@ ifeq ($(filter-out mingw% cygwin,$(SYSTE + $(INSTALL) -d -m 0755 $(BINDIR) + $(INSTALL) -m 0755 lib/$(LIB.SHARED.MX) $(BINDIR)/ + else +- $(INSTALL) -m 0644 lib/$(LIB.SHARED.MX) $(LIBDIR)/ ++ $(INSTALL) -m 0755 lib/$(LIB.SHARED.MX) $(LIBDIR)/ + endif + ifneq ($(LN),) + $(LN) $(LIB.SHARED.MX) $(LIBDIR)/$(LIB.SONAME.MX) diff --git a/SPECS/compat-glew.spec b/SPECS/compat-glew.spec new file mode 100644 index 0000000..2fbfc79 --- /dev/null +++ b/SPECS/compat-glew.spec @@ -0,0 +1,193 @@ +Name: compat-glew +Version: 1.9.0 +Release: 7%{?dist} +Summary: The OpenGL Extension Wrangler Library +Group: System Environment/Libraries +License: BSD and MIT +URL: http://glew.sourceforge.net + +Source0: http://downloads.sourceforge.net/project/glew/glew/%{version}/glew-%{version}.tgz +Patch0: glew-1.9.0-makefile.patch +BuildRequires: libGLU-devel + +%description +Compatibility package for old versions of glew. + +%prep +%setup -q -n glew-%{version} +%patch0 -p1 -b .make + +# get updated version which recognizes aarch64 +cp /usr/lib/rpm/redhat/config.guess config + +sed -i -e 's/\r//g' config/config.guess + +%build + +make %{?_smp_mflags} CFLAGS.EXTRA="$RPM_OPT_FLAGS" includedir=%{_includedir} GLEW_DEST= STRIP= libdir=%{_libdir} bindir=%{_bindir} + +%install +rm -rf $RPM_BUILD_ROOT +make install.all GLEW_DEST="$RPM_BUILD_ROOT" libdir=%{_libdir} bindir=%{_bindir} includedir=%{_includedir} +rm -f $RPM_BUILD_ROOT%{_libdir}/libGLEW.a $RPM_BUILD_ROOT%{_libdir}/libGLEWmx.a +# sigh +chmod 0755 $RPM_BUILD_ROOT%{_libdir}/*.so* + +# compat package cleanup. probably could do this with a different make install +# target instead; meh. +rm -rf $RPM_BUILD_ROOT%{_bindir} +rm -rf $RPM_BUILD_ROOT%{_includedir} +rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig +rm -rf $RPM_BUILD_ROOT%{_libdir}/*.so + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc LICENSE.txt +%{_libdir}/libGLEW*.so.* + +%changelog +* Tue May 05 2015 Adam Jackson 1.9.0-7 +- Rename as compat-glew, strip binaries/headers/pkgconfig goo + +* Fri Jan 24 2014 Daniel Mach - 1.9.0-6 +- Mass rebuild 2014-01-24 + +* Fri Dec 27 2013 Daniel Mach - 1.9.0-5 +- Mass rebuild 2013-12-27 + +* Wed Nov 06 2013 Dave Airlie 1.9.0-4 +- fix build for non-x86 arch + +* Wed Feb 13 2013 Fedora Release Engineering - 1.9.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Dec 18 2012 Ville Skyttä - 1.9.0-2 +- Prevent stripping binaries before rpmbuild does it. + +* Thu Dec 13 2012 Adam Jackson 1.9.0-1 +- glew 1.9.0 + +* Sun Jul 22 2012 Ville Skyttä - 1.7.0-3 +- Move/add ldconfig post(un)install scriptlets to appropriate subpackages. + +* Thu Jul 19 2012 Fedora Release Engineering - 1.7.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Feb 13 2012 Adam Jackson 1.7.0-1 +- glew 1.7.0 + +* Fri Jan 13 2012 Fedora Release Engineering - 1.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Jun 20 2011 Adam Jackson 1.6.0-1 +- glew 1.6.0 (#714763) + +* Wed Mar 23 2011 Adam Williamson - 1.5.8-3 +- instead of taking flags out in makefile.patch and adding them back + in add-needed.patch, let's just not take them out... + +* Wed Mar 23 2011 Adam Jackson 1.5.8-2 +- glew-1.5.8-glewmx.patch: Install libGLEWmx 0755 so autoprovs work +- Split runtime libraries to their own packages + +* Wed Mar 23 2011 Adam Williamson - 1.5.8-1 +- bump to 1.5.8 +- add soname.patch to fix the internal SONAME of the MX library + +* Wed Mar 23 2011 Adam Williamson - 1.5.7-3 +- add glewmx.patch (upstream commit 302c224016, always build the + MX-enabled version of the library as well as non-MX version, under + a different name) +- revise add-needed.patch to change the LDFLAGS in a better place + and add -lGLU as well as -lX11 + +* Tue Feb 08 2011 Fedora Release Engineering - 1.5.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sat Jan 15 2011 Dave Airlie 1.5.7-1 +- glew 1.5.7 + +* Wed Aug 25 2010 Adam Jackson 1.5.5-1 +- glew 1.5.5 + +* Fri Jul 30 2010 Dave Airlie 1.5.4-2 +- fix glew.pc file as pointed out by David Aguilar + +* Sat May 29 2010 Dave Airlie 1.5.4-1 +- glew 1.5.4 - add glew.pc + +* Tue Feb 09 2010 Adam Jackson 1.5.2-2 +- glew-1.5.2-add-needed.patch: Fix FTBFS from --no-add-needed + +* Tue Feb 02 2010 Adam Jackson 1.5.2-1 +- glew 1.5.2 + +* Fri Jul 24 2009 Fedora Release Engineering - 1.5.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Feb 24 2009 Fedora Release Engineering - 1.5.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Thu Nov 13 2008 Jochen Schmitt - 1.5.1-1 +- New upstream release (#469639) +- Fix licenseing issue with developer documentation + +* Tue Feb 19 2008 Fedora Release Engineering - 1.5.0-2 +- Autorebuild for GCC 4.3 + +* Mon Jan 21 2008 Hans de Goede 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 1.4.0-4 +- Add missing GL_FLOAT_MATXxX defines + +* Sat Aug 18 2007 Hans de Goede 1.4.0-3 +- Fix multiple unused direct shlib dependencies in libGLEW.so +- Remove the "SGI Free Software License B" and "GLX Public License" tekst from + the doc dir in the tarbal +- Patch credits.html to no longer refer to the 2 non free licenses, instead it + now points to LICENSE-README.fedora +- Put API docs in -devel instead of main package + +* Mon Aug 6 2007 Hans de Goede 1.4.0-2 +- Remove SGI encumbered files to make this ok to go into Fedora +- Replace some removed files with (modified) mesa files +- Regenerate some of the removed files using the mesa replacemenmt files + and the scripts in the auto directory +- Readd wglew.h, some programs may need this to compile +- Update License tag for new Licensing Guidelines compliance + +* Sun May 06 2007 Ian Chapman 1.4.0-1%{?dist} +- Updated to 1.4.0 + +* Sun Mar 04 2007 Ian Chapman 1.3.6-1%{?dist} +- Updated to 1.3.6 +- Updated pathandstrip patch +- Dropped xlib patch - fixed upstream +- Dropped sed EOL replacements - fixed upstream +- Changed license to GPL + +* Fri Dec 01 2006 Ian Chapman 1.3.5-1%{?dist} +- Updated to 1.3.5 +- Fixed stripping of the binaries +- Reinstate parallel building, no longer appears broken +- Removed FC4 specifics from spec (no longer supported) + +* Tue Jun 20 2006 Ian Chapman 1.3.4-3%{?dist} +- Added buildrequire macros to determine fc4, fc5, fc6 due to X modularisation + +* Sun Jun 04 2006 Ian Chapman 1.3.4-2%{?dist} +- Replaced %%{_sed} macro with sed +- Replaced xorg-x11-devel (build)requires with libGLU-devel for compatibility + with modular / non-modular X +- Replaced source URL to use primary sf site rather than a mirror +- Removed superfluous docs from devel package +- Removed wglew.h, seems to be only useful for windows platforms + +* Thu May 11 2006 Ian Chapman 1.3.4-1.iss +- Initial Release