Accepting request 79061 from multimedia:libs

Update to 1.6.0 + 2 further commits.
Don't strip libraries.
Created glew.c glewinfo.c and includes/ as of today. (forwarded request 78747 from jobermayr)

OBS-URL: https://build.opensuse.org/request/show/79061
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/glew?expand=0&rev=17
This commit is contained in:
Sascha Peilicke 2011-08-17 07:58:50 +00:00 committed by Git OBS Bridge
commit 5b1d8b012a
6 changed files with 72 additions and 20 deletions

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c567405005b68c29e88c539c53089c9604e10edc79b4f386f05fe09017f25f6e
size 178618

42
dont-strip.diff Normal file
View File

@ -0,0 +1,42 @@
diff --git a/Makefile b/Makefile
index 568ae59..1462eab 100644
--- a/Makefile
+++ b/Makefile
@@ -182,10 +182,8 @@ install.lib: glew.lib
# runtime
ifeq ($(filter-out mingw% cygwin,$(SYSTEM)),)
$(INSTALL) -d -m 0755 $(BINDIR)
- $(STRIP) -x lib/$(LIB.SHARED)
$(INSTALL) -m 0755 lib/$(LIB.SHARED) $(BINDIR)/
else
- $(STRIP) -x lib/$(LIB.SHARED)
$(INSTALL) -m 0644 lib/$(LIB.SHARED) $(LIBDIR)/
$(LN) $(LIB.SHARED) $(LIBDIR)/$(LIB.SONAME)
endif
@@ -195,7 +193,6 @@ ifeq ($(filter-out mingw% cygwin,$(SYSTEM)),)
else
$(LN) $(LIB.SHARED) $(LIBDIR)/$(LIB.DEVLNK)
endif
- $(STRIP) -x lib/$(LIB.STATIC)
$(INSTALL) -m 0644 lib/$(LIB.STATIC) $(LIBDIR)/
install.lib.mx: glew.lib.mx
@@ -203,10 +200,8 @@ install.lib.mx: glew.lib.mx
# runtime
ifeq ($(filter-out mingw% cygwin,$(SYSTEM)),)
$(INSTALL) -d -m 0755 $(BINDIR)
- $(STRIP) -x lib/$(LIB.SHARED.MX)
$(INSTALL) -m 0755 lib/$(LIB.SHARED.MX) $(BINDIR)/
else
- $(STRIP) -x lib/$(LIB.SHARED.MX)
$(INSTALL) -m 0644 lib/$(LIB.SHARED.MX) $(LIBDIR)/
$(LN) $(LIB.SHARED.MX) $(LIBDIR)/$(LIB.SONAME.MX)
endif
@@ -216,7 +211,6 @@ ifeq ($(filter-out mingw% cygwin,$(SYSTEM)),)
else
$(LN) $(LIB.SHARED.MX) $(LIBDIR)/$(LIB.DEVLNK.MX)
endif
- $(STRIP) -x lib/$(LIB.STATIC.MX)
$(INSTALL) -m 0644 lib/$(LIB.STATIC.MX) $(LIBDIR)/
install.bin: glew.bin

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1d5ad54707c40b6a53a1043aff5f5a15790fb3e93e76709392afb33a9a7c356b
size 342934

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Aug 13 15:19:54 UTC 2011 - johannesobermayr@gmx.de
- Update to 1.6.0 with two further commits
- Don't strip libraries
------------------------------------------------------------------- -------------------------------------------------------------------
Fri May 27 13:30:13 UTC 2011 - coolo@novell.com Fri May 27 13:30:13 UTC 2011 - coolo@novell.com

View File

@ -18,17 +18,19 @@
Name: glew Name: glew
Version: 1.5.8 Version: 1.6.0
Release: 14 Release: 1
License: BSD3c and GPLv2 and MIT License: BSD3c and GPLv2 and MIT
Summary: OpenGL Extension Wrangler Library Summary: OpenGL Extension Wrangler Library
Url: http://glew.sourceforge.net/ Url: http://glew.sourceforge.net/
Group: System/Libraries Group: System/Libraries
Source0: %{name}-%{version}.tar.bz2 Source0: %name.tar.bz2
Source1: baselibs.conf Source1: baselibs.conf
Patch: 0001-Add-glew.c-glewinfo.c-and-includes.patch.bz2
Patch1: dont-strip.diff
BuildRequires: Mesa-devel BuildRequires: Mesa-devel
BuildRequires: pkg-config BuildRequires: pkg-config
Requires: libGLEW1_5 >= %{version} Requires: libGLEW1_6 >= %version
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
@ -38,12 +40,12 @@ run-time mechanisms for determining which OpenGL extensions are
supported on the target platform. OpenGL core and extension supported on the target platform. OpenGL core and extension
functionality is exposed in a single header file. functionality is exposed in a single header file.
%package -n libGLEW1_5 %package -n libGLEW1_6
Summary: OpenGL Extension Wrangler Library Summary: OpenGL Extension Wrangler Library
Group: System/Libraries Group: System/Libraries
Obsoletes: libGLEW1_5
%description -n libGLEW1_5 %description -n libGLEW1_6
The OpenGL Extension Wrangler Library (GLEW) is a cross-platform The OpenGL Extension Wrangler Library (GLEW) is a cross-platform
open-source C/C++ extension loading library. GLEW provides efficient open-source C/C++ extension loading library. GLEW provides efficient
run-time mechanisms for determining which OpenGL extensions are run-time mechanisms for determining which OpenGL extensions are
@ -51,8 +53,7 @@ supported on the target platform. OpenGL core and extension
functionality is exposed in a single header file. functionality is exposed in a single header file.
%package devel %package devel
Summary: Development files for glew
Summary: OpenGL Extension Wrangler Library
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %{name} = %{version} Requires: %{name} = %{version}
Requires: Mesa-devel Requires: Mesa-devel
@ -65,32 +66,32 @@ supported on the target platform. OpenGL core and extension
functionality is exposed in a single header file. functionality is exposed in a single header file.
%prep %prep
chmod 0644 %{S:0} %setup -q -n %name
%setup -q %patch -p1
%patch1 -p1
%build %build
make %{?_smp_mflags} POPT="%{optflags}" LIBDIR=%{_libdir} LDFLAGS.EXTRA= STRIP=/bin/true make %{?_smp_mflags} POPT="%{optflags}" LIBDIR=%{_libdir} LDFLAGS.EXTRA= STRIP=/bin/true
%install %install
ln -s /bin/true strip
export PATH=$PWD:$PATH export PATH=$PWD:$PATH
make GLEW_DEST=%{buildroot}%{_prefix} LIBDIR=%{buildroot}%{_libdir} LDFLAGS.EXTRA= STRIP=/bin/true install make GLEW_DEST=%{buildroot}%{_prefix} LIBDIR=%{buildroot}%{_libdir} install.all
chmod +x %{buildroot}%{_libdir}/*.so.* chmod +x %{buildroot}%{_libdir}/*.so.*
%{__rm} -f %{buildroot}%{_libdir}/*.*a %{__rm} -f %{buildroot}%{_libdir}/*.*a
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
%post -n libGLEW1_5 -p /sbin/ldconfig %post -n libGLEW1_6 -p /sbin/ldconfig
%postun -n libGLEW1_5 -p /sbin/ldconfig %postun -n libGLEW1_6 -p /sbin/ldconfig
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc doc/* %doc doc/*
%{_bindir}/*info %{_bindir}/*info
%files -n libGLEW1_5 %files -n libGLEW1_6
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/*.so.* %{_libdir}/*.so.*
@ -98,6 +99,6 @@ rm -rf %{buildroot}
%defattr(-,root,root) %defattr(-,root,root)
%{_includedir}/GL/*.h %{_includedir}/GL/*.h
%{_libdir}/*.so %{_libdir}/*.so
%{_libdir}/pkgconfig/glew.pc %{_libdir}/pkgconfig/glew*.pc
%changelog %changelog

3
glew.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:02491713be4b64fb1eb083d995b2305eaf206c7e8cff1e5ec445215f790c0e35
size 117854