sysfsutils/sysfsutils.spec

140 lines
3.5 KiB
RPMSpec
Raw Normal View History

2020-01-11 11:36:16 +08:00
Name: sysfsutils
2021-11-25 20:04:16 +08:00
Version: 2.1.1
Release: 4
2020-01-11 11:36:16 +08:00
Summary: A set of utilities for interfacing with sysfs
License: GPL-2.0-only
2021-11-25 20:04:16 +08:00
URL: https://github.com/linux-ras/sysfsutils
2019-09-30 11:17:55 -04:00
2021-11-25 20:04:16 +08:00
Source0: https://github.com/linux-ras/sysfsutils/archive/v%{version}.tar.gz
2019-09-30 11:17:55 -04:00
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
2019-09-30 11:17:55 -04:00
2021-11-25 20:04:16 +08:00
BuildRequires: gcc chrpath autoconf automake make libtool
2019-09-30 11:17:55 -04:00
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: LGPL-2.1-or-later
2019-09-30 11:17:55 -04:00
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
2019-09-30 11:17:55 -04:00
%build
2021-11-25 20:04:16 +08:00
./autogen
2019-09-30 11:17:55 -04:00
%configure --disable-static --libdir=/%{_lib}
%make_build
2020-11-04 21:44:43 +08:00
%check
make check
2019-09-30 11:17:55 -04:00
%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
2021-11-25 20:04:16 +08:00
%doc README
2019-09-30 11:17:55 -04:00
%{_bindir}/systool
/%{_lib}/libsysfs.so.*
%files devel
%dir %{_includedir}/sysfs
%{_includedir}/sysfs/libsysfs.h
%{_includedir}/sysfs/dlist.h
/%{_lib}/libsysfs.so
2021-11-25 20:04:16 +08:00
/%{_lib}/pkgconfig/libsysfs.pc
2019-09-30 11:17:55 -04:00
%files help
%{_mandir}/man1/systool.1.gz
%changelog
* Tue Jul 30 2024 zhangjian <zhangjian496@huawei.com> - 2.1.1-4
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:correct lisence
* Sat May 6 2023 Jiangtian Feng <fengjiangtian@huawei.com> - 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 <lihaoxiang9@huawei.com> - 2.1.1-2
- fixed a memory leak in lib/sysfs_driver.c
2021-11-25 20:04:16 +08:00
* Thu Nov 25 2021 yanglongkang <yanglongkang@huawei.com> - 2.1.1-1
- update to 2.1.1
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 2.1.0-32
- DESC: delete -S git from %autosetup, and delete BuildRequires git
2020-11-04 21:44:43 +08:00
* Wed Nov 4 2020 lixiaokeng <lixiaokeng@huawei.com> - 2.1.0-31
- add make check
* Mon Jul 13 2020 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 2.1.0-30
- backport upstream bugfix patches
2020-06-30 10:26:00 +08:00
* Tue Jun 30 2020 volcanodragon <linfeilong@huawei.com> - 2.1.0-29
- Type:enhancemnet
- ID:NA
- SUG:restart
- DESC:rename patches
2020-01-10 18:13:04 +08:00
* Fri Jan 10 2020 Huangzheng <huangzheng22@huawei.com> - 2.1.0-28
2020-01-10 16:50:44 +08:00
- Type:enhancemnet
- ID:NA
- SUG:restart
2020-01-11 10:39:55 +08:00
- DESC:repackaged
2020-01-10 16:50:44 +08:00
2019-09-30 11:17:55 -04:00
* Tue Aug 20 2019 zhanghaibo <ted.zhang@huawei.com> - 2.1.0-27
- Type:enhancemnet
- ID:NA
- SUG:NA
2020-01-11 10:39:55 +08:00
- DESC:openEuler Debranding
2019-09-30 11:17:55 -04:00
* Tue Aug 20 2019 huangzheng <huangzheng22@huawei.com> - 2.1.0-26
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:rename patches
* Wed Jun 12 2019 zhangyujing<zhangyujing1@huawei.com> - 2.1.0-25.h1
- Type:bugfix
- ID:NA
- SUG:restart
2020-01-11 10:33:16 +08:00
- DESC:remove rpath
2019-09-30 11:17:55 -04:00
- Package init