5dca56
Name:           sysfsutils
5dca56
URL:            http://sourceforge.net/projects/linux-diag/
5dca56
License:        GPLv2
5dca56
Group:          Development/Tools
5dca56
Version:        2.1.0
f29ab2
Release:        16%{?dist}
5dca56
5dca56
Summary:        Utilities for interfacing with sysfs
5dca56
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
5dca56
Source0:        http://prdownloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
5dca56
Patch0:         sysfsutils-2.0.0-redhatify.patch
5dca56
Patch1:         sysfsutils-2.0.0-class-dup.patch
5dca56
Patch2:         sysfsutils-2.1.0-get_link.patch
5dca56
Patch3:         sysfsutils-2.1.0-manpages.patch
5dca56
Patch4:         sysfsutils-aarch64.patch
5dca56
5dca56
%description
5dca56
This package's purpose is to provide a set of utilities for interfacing
5dca56
with sysfs.
5dca56
5dca56
%package -n libsysfs
5dca56
Summary: Shared library for interfacing with sysfs
5dca56
Group: System Environment/Libraries
5dca56
License: LGPLv2+
5dca56
5dca56
%description -n libsysfs
5dca56
Library used in handling linux kernel sysfs mounts and their various files.
5dca56
5dca56
%package -n libsysfs-devel
5dca56
Summary: Static library and headers for libsysfs
5dca56
Group: Development/Libraries
5dca56
License: LGPLv2+
5dca56
Requires: libsysfs = %{version}-%{release}
5dca56
5dca56
%description -n libsysfs-devel
5dca56
libsysfs-devel provides the header files and static libraries required
5dca56
to build programs using the libsysfs API.
5dca56
5dca56
%prep
5dca56
%setup -q
5dca56
%patch0 -p1 -b .redhatify
5dca56
%patch1 -p1
5dca56
%patch2 -p1
5dca56
%patch3 -p1
5dca56
%patch4 -p1
5dca56
5dca56
%build
5dca56
%configure --disable-static --libdir=/%{_lib}
5dca56
make %{?_smp_mflags}
5dca56
5dca56
%install
5dca56
rm -rf $RPM_BUILD_ROOT
5dca56
5dca56
make DESTDIR=$RPM_BUILD_ROOT install
5dca56
5dca56
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
5dca56
rm -f $RPM_BUILD_ROOT/%{_lib}/*.la
5dca56
5dca56
%post -n libsysfs -p /sbin/ldconfig
5dca56
5dca56
%postun -n libsysfs -p /sbin/ldconfig
5dca56
5dca56
%clean
5dca56
rm -rf $RPM_BUILD_ROOT
5dca56
5dca56
%files
5dca56
%defattr(-,root,root)
5dca56
%{_bindir}/systool
5dca56
%{_bindir}/get_module
5dca56
%{_mandir}/man1/systool.1.gz
5dca56
%doc COPYING AUTHORS README NEWS CREDITS ChangeLog docs/libsysfs.txt cmd/GPL
5dca56
5dca56
%files -n libsysfs
5dca56
%defattr(-,root,root)
5dca56
/%{_lib}/libsysfs.so.*
5dca56
%doc COPYING AUTHORS README NEWS CREDITS ChangeLog docs/libsysfs.txt lib/LGPL
5dca56
5dca56
%files -n libsysfs-devel
5dca56
%defattr(-,root,root)
5dca56
%dir %{_includedir}/sysfs
5dca56
%{_includedir}/sysfs/libsysfs.h
5dca56
%{_includedir}/sysfs/dlist.h
5dca56
/%{_lib}/libsysfs.so
5dca56
5dca56
5dca56
%changelog
f29ab2
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.1.0-16
f29ab2
- Mass rebuild 2014-01-24
f29ab2
f29ab2
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.1.0-15
f29ab2
- Mass rebuild 2013-12-27
f29ab2
5dca56
* Sat May 11 2013 Anton Arapov <anton@redhat.com> - 2.1.0-14
5dca56
- We don't support aarch64, do the appropriate changes (#926600)
5dca56
5dca56
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-13
5dca56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5dca56
5dca56
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-12
5dca56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5dca56
5dca56
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-11
5dca56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5dca56
5dca56
* Tue Mar 22 2011 Anton Arapov <anton@redhat.com> - 2.1.0-10
5dca56
- Better manpages. (#673849)
5dca56
5dca56
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-9
5dca56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5dca56
5dca56
* Thu Jun 17 2010 Anton Arapov <anton@redhat.com> - 2.1.0-8
5dca56
- Move libraries from /usr/lib to /lib since we need them 
5dca56
  during the system boot. (#605546)
5dca56
5dca56
* Mon Jan 18 2010 Anton Arapov <anton@redhat.com> - 2.1.0-7
5dca56
- Don't build and ship statically linked library (#556096)
5dca56
5dca56
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-6
5dca56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5dca56
5dca56
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-5
5dca56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
5dca56
5dca56
* Tue May 20 2008 Jarod Wilson <jwilson@redhat.com> - 2.1.0-4
5dca56
- Fix up get_link on kernel 2.6.25+ (#447220)
5dca56
5dca56
* Mon Feb 25 2008 Jarod Wilson <jwilson@redhat.com> - 2.1.0-3
5dca56
- Review cleanups from Todd Zullinger (#226447)
5dca56
5dca56
* Thu Feb 14 2008 Jarod Wilson <jwilson@redhat.com> - 2.1.0-2
5dca56
- Bump and rebuild with gcc 4.3
5dca56
5dca56
* Mon Sep 29 2007 Jarod Wilson <jwilson@redhat.com> - 2.1.0-1
5dca56
- Update to upstream release 2.1.0
5dca56
5dca56
* Mon Sep 11 2006 Neil Horman <nhorman@redhat.com> - 2.0.0-6
5dca56
- Integrate patch for bz 205808
5dca56
5dca56
* Mon Jul 17 2006 Jesse Keating <jkeating@redhat.com> - 2.0.0-5
5dca56
- rebuild
5dca56
5dca56
* Mon Jul 10 2006 Neil Horman  <nhorman@redhat.com> - 2.0.0-4
5dca56
- Obsoleting old sysfsutil-devel package for upgrade path (bz 198054)
5dca56
5dca56
* Fri Jul  7 2006 Doug Ledford <dledford@redhat.com> - 2.0.0-3
5dca56
- Split the library and devel files out to libsysfs and leave the utils
5dca56
  in sysfsutils.  This is for multilib arch requirements.
5dca56
5dca56
* Thu May 25 2006 Neil Horman <nhorman@redhat.com> - 2.0.0-2
5dca56
- Fixed devel rpm to own sysfs include dir
5dca56
- Fixed a typo in changelog
5dca56
5dca56
* Wed May 24 2006 Neil Horman <nhorman@redhat.com> - 2.0.0-1
5dca56
- Rebase to sysfsutils-2.0.0 for RHEL5
5dca56
5dca56
* Thu Apr 27 2006 Jeremy Katz <katzj@redhat.com> - 1.3.0-2
5dca56
- move .so to devel subpackage
5dca56
5dca56
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.3.0-1.2.1
5dca56
- bump again for double-long bug on ppc(64)
5dca56
5dca56
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.3.0-1.2
5dca56
- rebuilt for new gcc4.1 snapshot and glibc changes
5dca56
5dca56
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
5dca56
- rebuilt
5dca56
5dca56
* Fri Jul 08 2005 Bill Nottingham  <notting@redhat.com> 1.3.0-1
5dca56
- update to 1.3.0
5dca56
5dca56
* Wed Mar 02 2005 AJ Lewis <alewis@redhat.com> 1.2.0-4
5dca56
- Rebuild
5dca56
5dca56
* Wed Feb 09 2005 AJ Lewis <alewis@redhat.com> 1.2.0-3
5dca56
- start using %%configure instead of calling configure directly
5dca56
5dca56
* Wed Feb 09 2005 AJ Lewis <alewis@redhat.com> 1.2.0-2
5dca56
- rebuild
5dca56
5dca56
* Mon Oct 11 2004 AJ Lewis <alewis@redhat.com> 1.2.0-1
5dca56
- Update to upstream version 1.2.0
5dca56
5dca56
* Wed Sep 22 2004 Florian La Roche <Florian.LaRoche@redhat.de>
5dca56
- added /sbin/ldconfig calls to post/postun
5dca56
5dca56
* Thu Sep 01 2004 AJ Lewis <alewis@redhat.com> 1.1.0-2
5dca56
- Fix permissions on -devel files
5dca56
5dca56
* Fri Aug 13 2004 AJ Lewis <alewis@redhat.com> 1.1.0-1.1
5dca56
- Rebuild
5dca56
5dca56
* Fri Aug 13 2004 AJ Lewis <alewis@redhat.com> 1.1.0-1
5dca56
- Initial package for FC3