Name: sysfsutils URL: http://sourceforge.net/projects/linux-diag/ License: GPLv2 Group: Development/Tools Version: 2.1.0 Release: 25%{?dist} Summary: Utilities for interfacing with sysfs BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 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 Patch2: sysfsutils-2.1.0-get_link.patch Patch3: sysfsutils-2.1.0-manpages.patch Patch4: sysfsutils-aarch64.patch %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: LGPLv2+ %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 License: LGPLv2+ Requires: libsysfs = %{version}-%{release} %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 %patch2 -p1 %patch3 -p1 %patch4 -p1 %build %configure --disable-static --prefix=/usr make %{?_smp_mflags} %install 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 %post -n libsysfs -p /sbin/ldconfig %postun -n libsysfs -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.* %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.so %changelog * Thu Jan 27 2021 Chris White 2.1.0-24 - Rebuilt for 8.6. Resolves: rhbz#2046426 * Mon Oct 22 2018 Neil Horman 2.1.0-24 - Fix annocheck build issues (bz 1630632) * Fri Feb 09 2018 Fedora Release Engineering - 2.1.0-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 2.1.0-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 2.1.0-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 2.1.0-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Feb 05 2016 Fedora Release Engineering - 2.1.0-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Jun 19 2015 Fedora Release Engineering - 2.1.0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Aug 18 2014 Fedora Release Engineering - 2.1.0-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 2.1.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 2.1.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sat May 11 2013 Anton Arapov - 2.1.0-14 - We don't support aarch64, do the appropriate changes (#926600) * Fri Feb 15 2013 Fedora Release Engineering - 2.1.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 2.1.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 2.1.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Mar 22 2011 Anton Arapov - 2.1.0-10 - Better manpages. (#673849) * Wed Feb 09 2011 Fedora Release Engineering - 2.1.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Jun 17 2010 Anton Arapov - 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 - 2.1.0-7 - Don't build and ship statically linked library (#556096) * Sun Jul 26 2009 Fedora Release Engineering - 2.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 2.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Tue May 20 2008 Jarod Wilson - 2.1.0-4 - Fix up get_link on kernel 2.6.25+ (#447220) * Mon Feb 25 2008 Jarod Wilson - 2.1.0-3 - Review cleanups from Todd Zullinger (#226447) * Thu Feb 14 2008 Jarod Wilson - 2.1.0-2 - Bump and rebuild with gcc 4.3 * Mon Sep 29 2007 Jarod Wilson - 2.1.0-1 - Update to upstream release 2.1.0 * Mon Sep 11 2006 Neil Horman - 2.0.0-6 - Integrate patch for bz 205808 * Mon Jul 17 2006 Jesse Keating - 2.0.0-5 - rebuild * Mon Jul 10 2006 Neil Horman - 2.0.0-4 - Obsoleting old sysfsutil-devel package for upgrade path (bz 198054) * Fri Jul 7 2006 Doug Ledford - 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 - 2.0.0-2 - Fixed devel rpm to own sysfs include dir - Fixed a typo in changelog * Wed May 24 2006 Neil 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