next iteration - workaround more new 'make install' bugs

This commit is contained in:
Alasdair Kergon 2010-04-14 21:25:48 +00:00
parent 79b7253678
commit 77fa81c15d

View File

@ -83,6 +83,19 @@ install scripts/cmirrord_init_red_hat $RPM_BUILD_ROOT/etc/rc.d/init.d/cmirrord
install -m 0755 scripts/lvm2_monitoring_init_red_hat $RPM_BUILD_ROOT/etc/rc.d/init.d/lvm2-monitor
install -m 0755 scripts/lvmconf.sh $RPM_BUILD_ROOT/sbin/lvmconf
# Temporary hard-coded fixes for broken 'make install'
rm -f $RPM_BUILD_ROOT/usr%{_libdir}/liblvm2app.so
rm -f $RPM_BUILD_ROOT/usr%{_libdir}/liblvm2cmd.so
rm -f $RPM_BUILD_ROOT/usr%{_libdir}/libdevmapper.so
rm -f $RPM_BUILD_ROOT/usr%{_libdir}/libdevmapper-event.so
rm -f $RPM_BUILD_ROOT/usr%{_libdir}/libdevmapper-event-lvm2.so
ln -s ../..%{_libdir}/liblvm2app.so.2.1 $RPM_BUILD_ROOT/usr%{_libdir}/liblvm2app.so
ln -s ../..%{_libdir}/liblvm2cmd.so.2.02 $RPM_BUILD_ROOT/usr%{_libdir}/liblvm2cmd.so
ln -s ../..%{_libdir}/libdevmapper.so.1.02 $RPM_BUILD_ROOT/usr%{_libdir}/libdevmapper.so
ln -s ../..%{_libdir}/libdevmapper-event.so.1.02 $RPM_BUILD_ROOT/usr%{_libdir}/libdevmapper-event.so
ln -s ../..%{_libdir}/libdevmapper-event-lvm2.so.2.02 $RPM_BUILD_ROOT/usr%{_libdir}/libdevmapper-event-lvm2.so
%clean
rm -rf $RPM_BUILD_ROOT
@ -238,10 +251,10 @@ This package contains shared lvm2 libraries for applications.
%postun libs -p /sbin/ldconfig
%files libs
%attr(755,root,root) /usr%{_libdir}/liblvm2app.so.*
%attr(755,root,root) /usr%{_libdir}/liblvm2cmd.so.*
%attr(755,root,root) %{_libdir}/liblvm2app.so.*
%attr(755,root,root) %{_libdir}/liblvm2cmd.so.*
%attr(755,root,root) %{_libdir}/libdevmapper-event-lvm2.so.*
%{_libdir}/libdevmapper-event-lvm2.so
/usr%{_libdir}/libdevmapper-event-lvm2.so
%{_libdir}/libdevmapper-event-lvm2mirror.so
%{_libdir}/libdevmapper-event-lvm2snapshot.so
@ -366,7 +379,7 @@ the device-mapper libraries.
%files -n device-mapper-devel
%defattr(-,root,root,-)
%{_libdir}/libdevmapper.so
/usr%{_libdir}/libdevmapper.so
%{_includedir}/libdevmapper.h
/usr%{_libdir}/pkgconfig/devmapper.pc
@ -437,7 +450,7 @@ the device-mapper event library.
%files -n device-mapper-event-devel
%defattr(-,root,root,-)
%attr(755,root,root) /%{_lib}/libdevmapper-event.so
%attr(755,root,root) /usr%{_libdir}/libdevmapper-event.so
%{_includedir}/libdevmapper-event.h
/usr%{_libdir}/pkgconfig/devmapper-event.pc