代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/sysfsutils 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Name: sysfsutils
Version: 2.1.1
Release: 3
Summary: A set of utilities for interfacing with sysfs
License: GPLv2 and LGPLv2+
URL: https://github.com/linux-ras/sysfsutils
Source0: https://github.com/linux-ras/sysfsutils/archive/v%{version}.tar.gz
Patch1: 0001-lib-Fixed-a-memory-leak-in-lib-sysfs_driver.patch
Patch2: 0002-lib-Fixed-memory-leaks-in-lib-sysfs_device.c.patch
Patch3: 0003-lib-Fixed-memory-leaks-in-lib-sysfs_attr.c.patch
BuildRequires: gcc chrpath autoconf automake make libtool
Provides: libsysfs libsysfs%{?_isa}
Obsoletes: libsysfs
%description
This package's purpose is to provide a set of utilities for interfacing
with sysfs, a virtual filesystem in Linux kernel versions 2.5+ that
provides a tree of system devices.
%package devel
Summary: Including header files and library for the developing of sysfsutils
License: LGPLv2+
Requires: sysfsutils = %{version}-%{release}
Provides: libsysfs-devel
Obsoletes: libsysfs-devel
%description devel
This contains dynamic libraries and header files for the developing of sysfsutils.
%package help
Summary: Including man files for sysfsutils
Requires: man
BuildArch: noarch
%description help
This contains man files for the using of sysfsutils.
%prep
%autosetup -n %{name}-%{version} -p1
%build
./autogen
%configure --disable-static --libdir=/%{_lib}
%make_build
%check
make check
%install
%make_install
rm -f %{buildroot}/%{_bindir}/dlist_test
rm -f %{buildroot}/%{_bindir}/get_device
rm -f %{buildroot}/%{_bindir}/get_driver
rm -f %{buildroot}/%{_lib}/libsysfs.la
chrpath -d $(find $RPM_BUILD_ROOT -name get_module)
chrpath -d $(find $RPM_BUILD_ROOT -name systool)
%ldconfig_scriptlets
%files
%license COPYING cmd/GPL lib/LGPL
%doc README
%{_bindir}/systool
/%{_lib}/libsysfs.so.*
%files devel
%dir %{_includedir}/sysfs
%{_includedir}/sysfs/libsysfs.h
%{_includedir}/sysfs/dlist.h
/%{_lib}/libsysfs.so
/%{_lib}/pkgconfig/libsysfs.pc
%files help
%{_mandir}/man1/systool.1.gz
%changelog
* Sat May 6 2023 Jiangtian Feng <[email protected]> - 2.1.1-3
- backport community patches to fix mem leak in lib/sysfs_device.c and lib/sysfs_attr.c
* Tue Nov 1 2022 lihaoxiang <[email protected]> - 2.1.1-2
- fixed a memory leak in lib/sysfs_driver.c
* Thu Nov 25 2021 yanglongkang <[email protected]> - 2.1.1-1
- update to 2.1.1
* Fri Jul 30 2021 chenyanpanHW <[email protected]> - 2.1.0-32
- DESC: delete -S git from %autosetup, and delete BuildRequires git
* Wed Nov 4 2020 lixiaokeng <[email protected]> - 2.1.0-31
- add make check
* Mon Jul 13 2020 Zhiqiang Liu <[email protected]> - 2.1.0-30
- backport upstream bugfix patches
* Tue Jun 30 2020 volcanodragon <[email protected]> - 2.1.0-29
- Type:enhancemnet
- ID:NA
- SUG:restart
- DESC:rename patches
* Fri Jan 10 2020 Huangzheng <[email protected]> - 2.1.0-28
- Type:enhancemnet
- ID:NA
- SUG:restart
- DESC:repackaged
* Tue Aug 20 2019 zhanghaibo <[email protected]> - 2.1.0-27
- Type:enhancemnet
- ID:NA
- SUG:NA
- DESC:openEuler Debranding
* Tue Aug 20 2019 huangzheng <[email protected]> - 2.1.0-26
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:rename patches
* Wed Jun 12 2019 zhangyujing<[email protected]> - 2.1.0-25.h1
- Type:bugfix
- ID:NA
- SUG:restart
- DESC:remove rpath
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。