Summary: sysfsutils, library interface to sysfs. Name: sysfsutils Version: 2.0.0 Release: 1 Source0: http://prdownloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz Patch0: %{name}-%{version}-redhatify.patch License: GPL/LGPL Group: Development/Tools Buildroot: %{_tmppath}/%{name}-root %description This package's purpose is to provide a set of utilities for interfacing with sysfs. The library is distributed under LGPL and utilities that come with it are under GPL. %package devel Summary: Static library and headers for sysfsutils Group: Development/Libraries Requires: sysfsutils = %{version} %description devel sysfsutils-devel provides the header files and static libraries required to build programs using the libsysfs API. %prep %setup -q %patch0 -p1 -b .redhatify %build %configure make %install rm -fr %{buildroot} 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 %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %{_bindir}/systool %{_bindir}/get_module %{_libdir}/libsysfs.so.2 %{_libdir}/libsysfs.so.2.0.0 %{_mandir}/man1/systool.1.gz %doc COPYING AUTHORS README NEWS CREDITS ChangeLog docs/libsysfs.txt cmd/GPL lib/LGPL %files devel %defattr(-,root,root) %{_includedir}/sysfs/libsysfs.h %{_includedir}/sysfs/dlist.h %{_libdir}/libsysfs.a %{_libdir}/libsysfs.so %changelog * Wed May 24 2006 Neiul Horman - 2.0.0-1 - Rebase to sysfsutils-2.0.0 for RHEL5 * Thu Apr 27 2006 Jeremy Katz - 1.3.0-2 - move .so to devel subpackage * Fri Feb 10 2006 Jesse Keating - 1.3.0-1.2.1 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 1.3.0-1.2 - rebuilt for new gcc4.1 snapshot and glibc changes * Fri Dec 09 2005 Jesse Keating - rebuilt * Fri Jul 08 2005 Bill Nottingham 1.3.0-1 - update to 1.3.0 * Wed Mar 02 2005 AJ Lewis 1.2.0-4 - Rebuild * Wed Feb 09 2005 AJ Lewis 1.2.0-3 - start using %configure instead of calling configure directly * Wed Feb 09 2005 AJ Lewis 1.2.0-2 - rebuild * Mon Oct 11 2004 AJ Lewis 1.2.0-1 - Update to upstream version 1.2.0 * Wed Sep 22 2004 Florian La Roche - added /sbin/ldconfig calls to post/postun * Thu Sep 01 2004 AJ Lewis 1.1.0-2 - Fix permissions on -devel files * Fri Aug 13 2004 AJ Lewis 1.1.0-1.1 - Rebuild * Fri Aug 13 2004 AJ Lewis 1.1.0-1 - Initial package for FC3