[packages/glew] - updated to 2.1.0 (new sonames, GLEWmx dropped; glew 1.x preserved in glew1.spec) - added eglew pat

qboosh qboosh at pld-linux.org
Wed Dec 26 16:27:41 CET 2018


commit ae9adee9b6f8a3fdd31684e598fc207539f34060
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Dec 26 16:32:23 2018 +0100

    - updated to 2.1.0 (new sonames, GLEWmx dropped; glew 1.x preserved in glew1.spec)
    - added eglew patch to install eglew.h header file

 glew-eglew.patch | 10 ++++++++++
 glew.spec        | 37 ++++++++++++++++++++++---------------
 2 files changed, 32 insertions(+), 15 deletions(-)
---
diff --git a/glew.spec b/glew.spec
index 7445505..e01850a 100644
--- a/glew.spec
+++ b/glew.spec
@@ -1,12 +1,13 @@
 Summary:	The OpenGL Extension Wrangler Library
 Summary(pl.UTF-8):	Bibliteka OpenGL Extension Wrangler
 Name:		glew
-Version:	1.13.0
-Release:	2
+Version:	2.1.0
+Release:	1
 License:	BSD
 Group:		Libraries
 Source0:	http://downloads.sourceforge.net/glew/%{name}-%{version}.tgz
-# Source0-md5:	7cbada3166d2aadfc4169c4283701066
+# Source0-md5:	b2ab12331033ddfaa50dc39345343980
+Patch0:		%{name}-eglew.patch
 URL:		http://glew.sourceforge.net/
 BuildRequires:	OpenGL-GLU-devel
 BuildRequires:	xorg-lib-libX11-devel
@@ -54,22 +55,32 @@ Biblioteka statyczna glew.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__make} \
 	CC="%{__cc}" \
 	OPT="%{rpmcflags}" \
 	LDFLAGS="%{rpmldflags}" \
+	INCDIR=%{_includedir}/GL \
 	LIBDIR=%{_libdir}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_libdir},%{_bindir},%{_includedir}/GL,%{_pkgconfigdir}}
+#install -d $RPM_BUILD_ROOT{%{_libdir},%{_bindir},%{_includedir}/GL,%{_pkgconfigdir}}
 
-install bin/* $RPM_BUILD_ROOT%{_bindir}
-cp -d lib/* $RPM_BUILD_ROOT%{_libdir}
-install include/GL/{glew,glxew}.h $RPM_BUILD_ROOT%{_includedir}/GL
-install glew.pc glewmx.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
+%{__make} install.all \
+	DESTDIR=$RPM_BUILD_ROOT \
+	INCDIR=%{_includedir}/GL \
+	LIBDIR=%{_libdir}
+
+# Win32-specific
+%{__rm} $RPM_BUILD_ROOT%{_includedir}/GL/wglew.h
+
+#install bin/* $RPM_BUILD_ROOT%{_bindir}
+#cp -d lib/* $RPM_BUILD_ROOT%{_libdir}
+#install include/GL/{glew,glxew}.h $RPM_BUILD_ROOT%{_includedir}/GL
+#install glew.pc glewmx.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -79,24 +90,20 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc LICENSE.txt README.txt TODO.txt doc/*.{html,css,png,jpg}
+%doc LICENSE.txt README.md doc/*.{html,css,png,jpg}
 %attr(755,root,root) %{_bindir}/glewinfo
 %attr(755,root,root) %{_bindir}/visualinfo
 %attr(755,root,root) %{_libdir}/libGLEW.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libGLEW.so.1.13
-%attr(755,root,root) %{_libdir}/libGLEWmx.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libGLEWmx.so.1.13
+%attr(755,root,root) %ghost %{_libdir}/libGLEW.so.2.1
 
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libGLEW.so
-%attr(755,root,root) %{_libdir}/libGLEWmx.so
+%{_includedir}/GL/eglew.h
 %{_includedir}/GL/glew.h
 %{_includedir}/GL/glxew.h
 %{_pkgconfigdir}/glew.pc
-%{_pkgconfigdir}/glewmx.pc
 
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libGLEW.a
-%{_libdir}/libGLEWmx.a
diff --git a/glew-eglew.patch b/glew-eglew.patch
new file mode 100644
index 0000000..bf744d3
--- /dev/null
+++ b/glew-eglew.patch
@@ -0,0 +1,10 @@
+--- glew-2.1.0/Makefile.orig	2017-07-31 13:25:39.000000000 +0200
++++ glew-2.1.0/Makefile	2018-12-22 22:11:56.756841925 +0100
+@@ -234,6 +234,7 @@
+ 	$(INSTALL) -m 0644 include/GL/wglew.h "$(DESTDIR)$(INCDIR)/"
+ 	$(INSTALL) -m 0644 include/GL/glew.h "$(DESTDIR)$(INCDIR)/"
+ 	$(INSTALL) -m 0644 include/GL/glxew.h "$(DESTDIR)$(INCDIR)/"
++	$(INSTALL) -m 0644 include/GL/eglew.h "$(DESTDIR)$(INCDIR)/"
+ 
+ install.pkgconfig: glew.pc
+ 	$(INSTALL) -d -m 0755 "$(DESTDIR)$(PKGDIR)"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/glew.git/commitdiff/ae9adee9b6f8a3fdd31684e598fc207539f34060



More information about the pld-cvs-commit mailing list