|
|
|
@ -1,21 +1,18 @@
|
|
|
|
|
%global so_major_version 2
|
|
|
|
|
%global so_minor_version 0
|
|
|
|
|
%global so_patch_version 1
|
|
|
|
|
|
|
|
|
|
Name: sysfsutils
|
|
|
|
|
Version: 2.1.1
|
|
|
|
|
Release: 10%{?dist}
|
|
|
|
|
Summary: Utilities for interfacing with sysfs
|
|
|
|
|
URL: https://github.com/linux-ras/sysfsutils
|
|
|
|
|
URL: http://sourceforge.net/projects/linux-diag/
|
|
|
|
|
License: GPLv2
|
|
|
|
|
Group: Development/Tools
|
|
|
|
|
Version: 2.1.0
|
|
|
|
|
Release: 25%{?dist}
|
|
|
|
|
|
|
|
|
|
Source0: https://github.com/linux-ras/sysfsutils/archive/v%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
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
|
|
|
|
@ -23,6 +20,7 @@ with sysfs.
|
|
|
|
|
|
|
|
|
|
%package -n libsysfs
|
|
|
|
|
Summary: Shared library for interfacing with sysfs
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
|
|
|
|
|
%description -n libsysfs
|
|
|
|
@ -30,6 +28,7 @@ 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}
|
|
|
|
|
|
|
|
|
@ -38,106 +37,61 @@ libsysfs-devel provides the header files and static libraries required
|
|
|
|
|
to build programs using the libsysfs API.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1
|
|
|
|
|
%setup -q
|
|
|
|
|
%patch0 -p1 -b .redhatify
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
%patch3 -p1
|
|
|
|
|
%patch4 -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
./autogen
|
|
|
|
|
%configure --disable-static
|
|
|
|
|
%{make_build}
|
|
|
|
|
%configure --disable-static --prefix=/usr
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%{make_install}
|
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets -n libsysfs
|
|
|
|
|
%postun -n libsysfs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license COPYING cmd/GPL
|
|
|
|
|
%doc AUTHORS README CREDITS docs/libsysfs.txt
|
|
|
|
|
%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
|
|
|
|
|
%license COPYING lib/LGPL
|
|
|
|
|
/%{_libdir}/libsysfs.so.%{so_major_version}
|
|
|
|
|
/%{_libdir}/libsysfs.so.%{so_major_version}.%{so_minor_version}.%{so_patch_version}
|
|
|
|
|
%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
|
|
|
|
|
/%{_libdir}/pkgconfig/libsysfs.pc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Jan 26 2022 Chris White <chwhite@redhat.com> - 2.1.1-10
|
|
|
|
|
- Rebuilding for RHEL9. Resolves rhbz#2043148
|
|
|
|
|
|
|
|
|
|
* Mon Aug 23 2021 Chris White <chwhite@redhat.com> - 2.1.1-
|
|
|
|
|
- Fixed tier0 test build process to work with 2.1.1. Resolves: rhbz#1975886
|
|
|
|
|
|
|
|
|
|
* Mon Aug 16 2021 Chris White <chwhite@redhat.com> - 2.1.1-8
|
|
|
|
|
- Renamed tests/tests.yaml to tests/test.yml. Resolves: rhbz#1975886
|
|
|
|
|
|
|
|
|
|
* Mon Aug 16 2021 Chris White <chwhite@redhat.com> - 2.1.1-7
|
|
|
|
|
- Rebuilt with tier0 test cases. Resolves: rhbz#1975886
|
|
|
|
|
|
|
|
|
|
* Thu Aug 12 2021 Chris White <chwhite@redhat.com> - 2.1.1-6
|
|
|
|
|
- Rebuilt off of current upstream. Resolves: rhbz#1938880
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Chris White <chwhite@redhat.com> - 2.1.1-5
|
|
|
|
|
- Renamed the gating.yml to gating.yaml Related: rhbz#1975886
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.1.1-4
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Aug 6 2021 Chris White <chwhite@redhat.com> - 2.1.1-3
|
|
|
|
|
- Rebuilt for c9s and gating test. Related: rhbz#1953419
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.1.1-2
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Sat Feb 20 2021 Christopher Engelhard <ce@lcts.de> - 2.1.1-1
|
|
|
|
|
- Update to 2.1.1
|
|
|
|
|
- Remove all patches merged upstream
|
|
|
|
|
- Switched build to autotools
|
|
|
|
|
- Include upstream pkgconfig module
|
|
|
|
|
- Sysfsutils no longer includes /usr/bin/get_module
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-33
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Sep 21 2020 Christopher Engelhard <ce@lcts.de> - 2.1.0-32
|
|
|
|
|
- fix GCC-11 build failure due to buffer overread, h/t Jeff Law
|
|
|
|
|
|
|
|
|
|
* Mon Aug 17 2020 Christopher Engelhard <ce@lcts.de> - 2.1.0-31
|
|
|
|
|
- use tarball hosted at new upstream site
|
|
|
|
|
- Fedora's patches have been merged upstream, so use those instead
|
|
|
|
|
- apply various unreleased upstream fixes that deal with compiler warnings
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Christopher Engelhard <ce@lcts.de> - 2.1.0-30
|
|
|
|
|
- specify .so and release versions via global vars
|
|
|
|
|
- update URL to reflect new upstream
|
|
|
|
|
|
|
|
|
|
* Tue Jun 23 2020 Christopher Engelhard <ce@lcts.de> - 2.1.0-29
|
|
|
|
|
- list .so files explicitly in %%files instead of via glob, cleanup spec
|
|
|
|
|
|
|
|
|
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-28
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-27
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-26
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 2.1.0-25
|
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
|
|
|
|
|
* Sun Jul 22 2018 Peter Robinson <pbrobinson@fedoraproject.org> 2.1.0-25
|
|
|
|
|
- Fix build deps, use %%License, cleanup spec
|
|
|
|
|
* Thu Jan 27 2021 Chris White <chwhite@redhat.com> 2.1.0-24
|
|
|
|
|
- Rebuilt for 8.6. Resolves: rhbz#2046426
|
|
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-24
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
* Mon Oct 22 2018 Neil Horman <nhorman@redhat.com> 2.1.0-24
|
|
|
|
|
- Fix annocheck build issues (bz 1630632)
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-23
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|