- Move libraries from /usr/lib to /lib since we need them during the system

boot. (#605546)
This commit is contained in:
Anton Arapov 2010-06-18 08:56:32 +00:00
parent db903b477a
commit 284491ccd7

View File

@ -3,7 +3,7 @@ URL: http://sourceforge.net/projects/linux-diag/
License: GPLv2
Group: Development/Tools
Version: 2.1.0
Release: 7%{?dist}
Release: 8%{?dist}
Summary: Utilities for interfacing with sysfs
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -41,7 +41,7 @@ to build programs using the libsysfs API.
%patch2 -p1
%build
%configure --disable-static
%configure --disable-static --libdir=/%{_lib}
make %{?_smp_mflags}
%install
@ -50,7 +50,7 @@ rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT%{_bindir}/dlist_test $RPM_BUILD_ROOT%{_bindir}/get_bus_devices_list $RPM_BUILD_ROOT%{_bindir}/get_class_dev $RPM_BUILD_ROOT%{_bindir}/get_classdev_parent $RPM_BUILD_ROOT%{_bindir}/get_device $RPM_BUILD_ROOT%{_bindir}/get_driver $RPM_BUILD_ROOT%{_bindir}/testlibsysfs $RPM_BUILD_ROOT%{_bindir}/write_attr
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
rm -f $RPM_BUILD_ROOT/%{_lib}/*.la
%post -n libsysfs -p /sbin/ldconfig
@ -68,7 +68,7 @@ rm -rf $RPM_BUILD_ROOT
%files -n libsysfs
%defattr(-,root,root)
%{_libdir}/libsysfs.so.*
/%{_lib}/libsysfs.so.*
%doc COPYING AUTHORS README NEWS CREDITS ChangeLog docs/libsysfs.txt lib/LGPL
%files -n libsysfs-devel
@ -76,10 +76,14 @@ rm -rf $RPM_BUILD_ROOT
%dir %{_includedir}/sysfs
%{_includedir}/sysfs/libsysfs.h
%{_includedir}/sysfs/dlist.h
%{_libdir}/libsysfs.so
/%{_lib}/libsysfs.so
%changelog
* Thu Jun 17 2010 Anton Arapov <anton@redhat.com> - 2.1.0-8
- Move libraries from /usr/lib to /lib since we need them
during the system boot. (#605546)
* Mon Jan 18 2010 Anton Arapov <anton@redhat.com> - 2.1.0-7
- Don't build and ship statically linked library (#556096)