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)/ + $(INSTALL) -m 0644 lib/$(LIB.SHARED.MX) $(BINDIR)/
+else +else
+ $(STRIP) -x lib/$(LIB.SHARED.MX) + $(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) + $(LN) $(LIB.SHARED.MX) $(LIBDIR)/$(LIB.SONAME.MX)
+endif +endif
+# development files +# development files

View File

@ -1,6 +1,6 @@
Name: glew Name: glew
Version: 1.5.8 Version: 1.5.8
Release: 1%{?dist} Release: 2%{?dist}
Summary: The OpenGL Extension Wrangler Library Summary: The OpenGL Extension Wrangler Library
Group: System Environment/Libraries Group: System Environment/Libraries
License: BSD and MIT 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, GLEW is available for a variety of operating systems, including Windows, Linux,
Mac OS X, FreeBSD, Irix, and Solaris. Mac OS X, FreeBSD, Irix, and Solaris.
This package contains the demo GLEW utilities. The libraries themselves
are in libGLEW and libGLEWmx.
%package devel %package devel
Summary: Development files for glew Summary: Development files for glew
Group: Development/Libraries Group: Development/Libraries
Requires: %{name} = %{version}-%{release} Requires: libGLEW = %{version}-%{release}
Requires: libGLEWmx = %{version}-%{release}
Requires: libGLU-devel Requires: libGLU-devel
%description devel %description devel
Development files for glew 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 %prep
%setup -q %setup -q
%patch0 -p1 -b .make %patch0 -p1 -b .make
@ -71,7 +88,15 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc LICENSE.txt %doc LICENSE.txt
%{_bindir}/* %{_bindir}/*
%files -n libGLEW
%defattr(-,root,root,-)
%doc LICENSE.txt
%{_libdir}/libGLEW.so.* %{_libdir}/libGLEW.so.*
%files -n libGLEWmx
%defattr(-,root,root,-)
%doc LICENSE.txt
%{_libdir}/libGLEWmx.so.* %{_libdir}/libGLEWmx.so.*
%files devel %files devel
@ -84,6 +109,10 @@ rm -rf $RPM_BUILD_ROOT
%doc doc/* %doc doc/*
%changelog %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 * Wed Mar 23 2011 Adam Williamson <awilliam@redhat.com> - 1.5.8-1
- bump to 1.5.8 - bump to 1.5.8
- add soname.patch to fix the internal SONAME of the MX library - add soname.patch to fix the internal SONAME of the MX library