diff --git a/sysfsutils.spec b/sysfsutils.spec index 0307592..2d17292 100644 --- a/sysfsutils.spec +++ b/sysfsutils.spec @@ -7,6 +7,7 @@ Release: 10%{?dist} Summary: Utilities for interfacing with sysfs BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Conflicts: filesystem < 3 Source0: http://prdownloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz Patch0: sysfsutils-2.0.0-redhatify.patch Patch1: sysfsutils-2.0.0-class-dup.patch @@ -43,7 +44,7 @@ to build programs using the libsysfs API. %patch3 -p1 %build -%configure --disable-static --libdir=/%{_lib} +%configure --disable-static make %{?_smp_mflags} %install @@ -52,7 +53,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/%{_lib}/*.la +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la %post -n libsysfs -p /sbin/ldconfig @@ -70,7 +71,7 @@ rm -rf $RPM_BUILD_ROOT %files -n libsysfs %defattr(-,root,root) -/%{_lib}/libsysfs.so.* +%{_libdir}/libsysfs.so.* %doc COPYING AUTHORS README NEWS CREDITS ChangeLog docs/libsysfs.txt lib/LGPL %files -n libsysfs-devel @@ -78,7 +79,7 @@ rm -rf $RPM_BUILD_ROOT %dir %{_includedir}/sysfs %{_includedir}/sysfs/libsysfs.h %{_includedir}/sysfs/dlist.h -/%{_lib}/libsysfs.so +%{_libdir}/libsysfs.so %changelog