sysfsutils/sysfsutils.spec
2006-09-11 20:13:06 +00:00

139 lines
3.9 KiB
RPMSpec

Summary: sysfsutils, library interface to sysfs.
Name: sysfsutils
Version: 2.0.0
Release: 6
Source0: http://prdownloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
Patch0: %{name}-%{version}-redhatify.patch
Patch1: sysfsutils-2.0.0-class-dup.patch
License: GPL
Group: Development/Tools
Buildroot: %{_tmppath}/%{name}-root
%description
This package's purpose is to provide a set of utilities for interfacing
with sysfs.
%package -n libsysfs
Summary: Shared library for interfacing with sysfs
Group: System Environment/Libraries
License: LGPL
%description -n libsysfs
Library used in handling linux kernel sysfs mounts and their various files.
%package -n libsysfs-devel
Summary: Static library and headers for libsysfs
Group: Development/Libraries
Requires: libsysfs = %{version}
Obsoletes: sysfsutils-devel
%description -n libsysfs-devel
libsysfs-devel provides the header files and static libraries required
to build programs using the libsysfs API.
%prep
%setup -q
%patch0 -p1 -b .redhatify
%patch1 -p1
%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
%{_mandir}/man1/systool.1.gz
%doc COPYING AUTHORS README NEWS CREDITS ChangeLog docs/libsysfs.txt cmd/GPL
%files -n libsysfs
%defattr(-,root,root)
%{_libdir}/libsysfs.so.2
%{_libdir}/libsysfs.so.2.0.0
%doc COPYING AUTHORS README NEWS CREDITS ChangeLog docs/libsysfs.txt lib/LGPL
%files -n libsysfs-devel
%defattr(-,root,root)
%dir %{_includedir}/sysfs
%{_includedir}/sysfs/libsysfs.h
%{_includedir}/sysfs/dlist.h
%{_libdir}/libsysfs.a
%{_libdir}/libsysfs.so
%changelog
* Mon Sep 11 2006 Neil Horman <nhorman@redhat.com> - 2.0.0-6
- Integrate patch for bz 205808
* Mon Jul 17 2006 Jesse Keating <jkeating@redhat.com> - 2.0.0-5
- rebuild
* Mon Jul 10 2006 Neil Horman <nhorman@redhat.com> - 2.0.0-4
- Obsoleting old sysfsutil-devel package for upgrade path (bz 198054)
* Fri Jul 7 2006 Doug Ledford <dledford@redhat.com> - 2.0.0-3
- Split the library and devel files out to libsysfs and leave the utils
in sysfsutils. This is for multilib arch requirements.
* Thu May 25 2006 Neil Horman <nhorman@redhat.com> - 2.0.0-2
- Fixed devel rpm to own sysfs include dir
- Fixed a typo in changelog
* Wed May 24 2006 Neil Horman <nhorman@redhat.com> - 2.0.0-1
- Rebase to sysfsutils-2.0.0 for RHEL5
* Thu Apr 27 2006 Jeremy Katz <katzj@redhat.com> - 1.3.0-2
- move .so to devel subpackage
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.3.0-1.2.1
- bump again for double-long bug on ppc(64)
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.3.0-1.2
- rebuilt for new gcc4.1 snapshot and glibc changes
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
- rebuilt
* Fri Jul 08 2005 Bill Nottingham <notting@redhat.com> 1.3.0-1
- update to 1.3.0
* Wed Mar 02 2005 AJ Lewis <alewis@redhat.com> 1.2.0-4
- Rebuild
* Wed Feb 09 2005 AJ Lewis <alewis@redhat.com> 1.2.0-3
- start using %configure instead of calling configure directly
* Wed Feb 09 2005 AJ Lewis <alewis@redhat.com> 1.2.0-2
- rebuild
* Mon Oct 11 2004 AJ Lewis <alewis@redhat.com> 1.2.0-1
- Update to upstream version 1.2.0
* Wed Sep 22 2004 Florian La Roche <Florian.LaRoche@redhat.de>
- added /sbin/ldconfig calls to post/postun
* Thu Sep 01 2004 AJ Lewis <alewis@redhat.com> 1.1.0-2
- Fix permissions on -devel files
* Fri Aug 13 2004 AJ Lewis <alewis@redhat.com> 1.1.0-1.1
- Rebuild
* Fri Aug 13 2004 AJ Lewis <alewis@redhat.com> 1.1.0-1
- Initial package for FC3