From 2eb42f96d34a86ef037393f3fef7cf6dfb069e021fe8b240d027de298ec7f29d Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Mon, 30 May 2011 07:55:22 +0000 Subject: [PATCH 1/2] Updating link to change in openSUSE:Factory/glew revision 16.0 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/glew?expand=0&rev=6a3666b814ac54ba949b062f555d10f6 --- glew.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/glew.spec b/glew.spec index 668b346..84ea22a 100644 --- a/glew.spec +++ b/glew.spec @@ -19,7 +19,7 @@ Name: glew Version: 1.5.8 -Release: 1 +Release: 14 License: BSD3c and GPLv2 and MIT Summary: OpenGL Extension Wrangler Library Url: http://glew.sourceforge.net/ @@ -39,6 +39,7 @@ supported on the target platform. OpenGL core and extension functionality is exposed in a single header file. %package -n libGLEW1_5 + Summary: OpenGL Extension Wrangler Library Group: System/Libraries @@ -50,6 +51,7 @@ supported on the target platform. OpenGL core and extension functionality is exposed in a single header file. %package devel + Summary: OpenGL Extension Wrangler Library Group: Development/Libraries/C and C++ Requires: %{name} = %{version} From 1d4461341b4b4d0cffbb4f30b63a7309895243151fe30d10c8b97ffbf790f821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= Date: Tue, 16 Aug 2011 17:19:45 +0000 Subject: [PATCH 2/2] Accepting request 78747 from home:jobermayr Update to 1.6.0 + 2 further commits. Don't strip libraries. Created glew.c glewinfo.c and includes/ as of today. OBS-URL: https://build.opensuse.org/request/show/78747 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/glew?expand=0&rev=12 --- ...d-glew.c-glewinfo.c-and-includes.patch.bz2 | 3 ++ dont-strip.diff | 42 +++++++++++++++++++ glew-1.5.8.tar.bz2 | 3 -- glew.changes | 6 +++ glew.spec | 35 ++++++++-------- glew.tar.bz2 | 3 ++ 6 files changed, 72 insertions(+), 20 deletions(-) create mode 100644 0001-Add-glew.c-glewinfo.c-and-includes.patch.bz2 create mode 100644 dont-strip.diff delete mode 100644 glew-1.5.8.tar.bz2 create mode 100644 glew.tar.bz2 diff --git a/0001-Add-glew.c-glewinfo.c-and-includes.patch.bz2 b/0001-Add-glew.c-glewinfo.c-and-includes.patch.bz2 new file mode 100644 index 0000000..74b4456 --- /dev/null +++ b/0001-Add-glew.c-glewinfo.c-and-includes.patch.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c567405005b68c29e88c539c53089c9604e10edc79b4f386f05fe09017f25f6e +size 178618 diff --git a/dont-strip.diff b/dont-strip.diff new file mode 100644 index 0000000..51de129 --- /dev/null +++ b/dont-strip.diff @@ -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 diff --git a/glew-1.5.8.tar.bz2 b/glew-1.5.8.tar.bz2 deleted file mode 100644 index fb70d84..0000000 --- a/glew-1.5.8.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1d5ad54707c40b6a53a1043aff5f5a15790fb3e93e76709392afb33a9a7c356b -size 342934 diff --git a/glew.changes b/glew.changes index 4f879f0..aaca61a 100644 --- a/glew.changes +++ b/glew.changes @@ -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 diff --git a/glew.spec b/glew.spec index 84ea22a..cd9f4e2 100644 --- a/glew.spec +++ b/glew.spec @@ -18,17 +18,19 @@ Name: glew -Version: 1.5.8 -Release: 14 +Version: 1.6.0 +Release: 1 License: BSD3c and GPLv2 and MIT Summary: OpenGL Extension Wrangler Library Url: http://glew.sourceforge.net/ Group: System/Libraries -Source0: %{name}-%{version}.tar.bz2 +Source0: %name.tar.bz2 Source1: baselibs.conf +Patch: 0001-Add-glew.c-glewinfo.c-and-includes.patch.bz2 +Patch1: dont-strip.diff BuildRequires: Mesa-devel BuildRequires: pkg-config -Requires: libGLEW1_5 >= %{version} +Requires: libGLEW1_6 >= %version BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -38,12 +40,12 @@ run-time mechanisms for determining which OpenGL extensions are supported on the target platform. OpenGL core and extension functionality is exposed in a single header file. -%package -n libGLEW1_5 - +%package -n libGLEW1_6 Summary: OpenGL Extension Wrangler Library Group: System/Libraries +Obsoletes: libGLEW1_5 -%description -n libGLEW1_5 +%description -n libGLEW1_6 The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library. GLEW provides efficient 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. %package devel - -Summary: OpenGL Extension Wrangler Library +Summary: Development files for glew Group: Development/Libraries/C and C++ Requires: %{name} = %{version} Requires: Mesa-devel @@ -65,32 +66,32 @@ supported on the target platform. OpenGL core and extension functionality is exposed in a single header file. %prep -chmod 0644 %{S:0} -%setup -q +%setup -q -n %name +%patch -p1 +%patch1 -p1 %build make %{?_smp_mflags} POPT="%{optflags}" LIBDIR=%{_libdir} LDFLAGS.EXTRA= STRIP=/bin/true %install -ln -s /bin/true strip 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.* %{__rm} -f %{buildroot}%{_libdir}/*.*a %clean 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 %defattr(-,root,root) %doc doc/* %{_bindir}/*info -%files -n libGLEW1_5 +%files -n libGLEW1_6 %defattr(-,root,root) %{_libdir}/*.so.* @@ -98,6 +99,6 @@ rm -rf %{buildroot} %defattr(-,root,root) %{_includedir}/GL/*.h %{_libdir}/*.so -%{_libdir}/pkgconfig/glew.pc +%{_libdir}/pkgconfig/glew*.pc %changelog diff --git a/glew.tar.bz2 b/glew.tar.bz2 new file mode 100644 index 0000000..93b94e2 --- /dev/null +++ b/glew.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:02491713be4b64fb1eb083d995b2305eaf206c7e8cff1e5ec445215f790c0e35 +size 117854