Fix the install to / patch. It didn't put the .so.1 in the right place

previously, which resulted in applications not finding the library.
This commit is contained in:
Jeffrey E. Moyer 2009-01-20 15:16:41 +00:00
parent fad21b2af7
commit eb3f28c203
2 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,6 @@
diff -up libaio-0.3.107/src/Makefile.orig libaio-0.3.107/src/Makefile
--- libaio-0.3.107/src/Makefile.orig 2008-09-03 15:57:48.233332354 -0400
+++ libaio-0.3.107/src/Makefile 2008-09-03 15:58:23.591332705 -0400
--- libaio-0.3.107/src/Makefile.orig 2009-01-20 10:07:31.520105235 -0500
+++ libaio-0.3.107/src/Makefile 2009-01-20 10:08:51.199104930 -0500
@@ -1,6 +1,7 @@
prefix=/usr
-includedir=$(prefix)/include
@ -23,7 +23,7 @@ diff -up libaio-0.3.107/src/Makefile.orig libaio-0.3.107/src/Makefile
+ install -D -m 644 libaio.h $(destdir)$(includedir)/libaio.h
+ install -D -m 644 libaio.a $(destdir)$(usrlibdir)/libaio.a
+ install -D -m 755 $(libname) $(destdir)$(libdir)/$(libname)
+ ln -sf $(libdir)/$(libname) $(destdir)$(usrlibdir)/$(soname)
+ ln -sf $(libdir)/$(libname) $(destdir)$(libdir)/$(soname)
+ ln -sf $(libdir)/$(libname) $(destdir)$(usrlibdir)/libaio.so
$(libaio_objs): libaio.h

View File

@ -1,6 +1,6 @@
Name: libaio
Version: 0.3.107
Release: 6%{?dist}
Release: 7%{?dist}
Summary: Linux-native asynchronous I/O access library
License: LGPLv2+
Group: System Environment/Libraries
@ -73,6 +73,9 @@ make destdir=$RPM_BUILD_ROOT prefix=/ libdir=%{libdir} usrlibdir=%{usrlibdir} \
%attr(0644,root,root) %{_libdir}/libaio.a
%changelog
* Tue Jan 20 2009 Jeff Moyer <jmoyer@redhat.com> - 0.3.107-7
- Fix the install to / patch.
* Wed Oct 01 2008 Dennis Gilmore <dennis@ausil.us> - 0.3.107-6
- add patch with sparc support