fix provides, split packaging

This commit is contained in:
Adam Jackson 2011-03-23 19:26:28 -04:00
parent 9f46f0a294
commit 81c128642f
2 changed files with 32 additions and 3 deletions

View File

@ -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

View File

@ -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@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@redhat.com> - 1.5.8-1
- bump to 1.5.8
- add soname.patch to fix the internal SONAME of the MX library