[glew] fix provides, split packaging

Adam Jackson ajax at fedoraproject.org
Wed Mar 23 23:19:18 UTC 2011


commit 81c128642fb6d72f598a0ccc66e8cc24d3122640
Author: Adam Jackson <ajax at redhat.com>
Date:   Wed Mar 23 19:26:28 2011 -0400

    fix provides, split packaging

 glew-1.5.8-glewmx.patch |    2 +-
 glew.spec               |   33 +++++++++++++++++++++++++++++++--
 2 files changed, 32 insertions(+), 3 deletions(-)
---
diff --git a/glew-1.5.8-glewmx.patch b/glew-1.5.8-glewmx.patch
index 0cbff95..eb4e72e 100644
--- a/glew-1.5.8-glewmx.patch
+++ b/glew-1.5.8-glewmx.patch
@@ -163,7 +163,7 @@ index 2499b8d..ebba21a 100644
 +	$(INSTALL) -m 0644 lib/$(LIB.SHARED.MX) $(BINDIR)/
 +else
 +	$(STRIP) -x lib/$(LIB.SHARED.MX)
-+	$(INSTALL) -m 0644 lib/$(LIB.SHARED.MX) $(LIBDIR)/
++	$(INSTALL) -m 0755 lib/$(LIB.SHARED.MX) $(LIBDIR)/
 +	$(LN) $(LIB.SHARED.MX) $(LIBDIR)/$(LIB.SONAME.MX)
 +endif
 +# development files
diff --git a/glew.spec b/glew.spec
index fd1460a..c917c9b 100644
--- a/glew.spec
+++ b/glew.spec
@@ -1,6 +1,6 @@
 Name:           glew
 Version:        1.5.8
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        The OpenGL Extension Wrangler Library
 Group:          System Environment/Libraries
 License:        BSD and MIT
@@ -26,17 +26,34 @@ OpenGL core and extension functionality is exposed in a single header file.
 GLEW is available for a variety of operating systems, including Windows, Linux,
 Mac OS X, FreeBSD, Irix, and Solaris.
 
+This package contains the demo GLEW utilities.  The libraries themselves
+are in libGLEW and libGLEWmx.
 
 %package devel
 Summary:        Development files for glew
 Group:          Development/Libraries
-Requires:       %{name} = %{version}-%{release}
+Requires:       libGLEW = %{version}-%{release}
+Requires:       libGLEWmx = %{version}-%{release}
 Requires:       libGLU-devel
 
 %description devel
 Development files for glew
 
 
+%package -n libGLEW
+Summary:        libGLEW
+Group:          System Environment/Libraries
+
+%description -n libGLEW
+libGLEW
+
+%package -n libGLEWmx
+Summary:        libGLEWmx
+Group:          System Environment/Libraries
+
+%description -n libGLEWmx
+libGLEWmx
+
 %prep
 %setup -q
 %patch0 -p1 -b .make
@@ -71,7 +88,15 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(-,root,root,-)
 %doc LICENSE.txt
 %{_bindir}/*
+
+%files -n libGLEW
+%defattr(-,root,root,-)
+%doc LICENSE.txt
 %{_libdir}/libGLEW.so.*
+
+%files -n libGLEWmx
+%defattr(-,root,root,-)
+%doc LICENSE.txt
 %{_libdir}/libGLEWmx.so.*
 
 %files devel
@@ -84,6 +109,10 @@ rm -rf $RPM_BUILD_ROOT
 %doc doc/*
 
 %changelog
+* Wed Mar 23 2011 Adam Jackson <ajax at redhat.com> 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 <awilliam at redhat.com> - 1.5.8-1
 - bump to 1.5.8
 - add soname.patch to fix the internal SONAME of the MX library


More information about the scm-commits mailing list