1 Star 0 Fork 6

hejiuwang/smp_utils

forked from src-openEuler/smp_utils 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
smp_utils.spec 2.50 KB
一键复制 编辑 原始数据 按行查看 历史
Name: smp_utils
Version: 0.99
Release: 4
Summary: Utilities for SAS management protocol (SMP)
License: BSD
URL: http://sg.danny.cz/sg/smp_utils.html
Source0: http://sg.danny.cz/sg/p/%{name}-%{version}.tgz
BuildRequires: gcc
Provides: %{name}-libs %{name}-libs%{?_isa}
Obsoletes: %{name}-libs
%description
The smp_utils package contains utilities for the Serial Attached
SCSI (SAS) Serial Management Protocol (SMP). Most utilities correspond
to a single SMP function, sending out a request, checking for errors
and if all is well processing the response. The response is either
decoded, printed out in ASCII hexadecimal or sent as binary to stdout.
This package supports the linux 2.4 and 2.6 series and should be
easy to port to other operating systems.
Warning: These utilities access SAS expanders (storage switches) and
the incorrect usage of them may render your system and others inoperable.
%package devel
Summary: Static library and header files for the smputils library
Requires: %{name} = %{version}-%{release}
%description devel
The smp_utils-devel package contains the %{name} library and its header files for
developing applications.
%package help
Summary: Help info for %{name}
Requires: man
Buildarch: noarch
%description help
This package contains the help info for %{name}.
%prep
%autosetup -n %{name}-%{version} -p1
%build
%configure --disable-static
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?smp_mflags} CFLAGS="%{optflags} -DSMP_UTILS_LINUX"
%install
make install \
PREFIX=%{_prefix} \
DESTDIR=%{buildroot}
%files
%doc ChangeLog COVERAGE CREDITS README
%license COPYING
%{_bindir}/*
%{_libdir}/*.so.*
%exclude %{_libdir}/*.la
%files devel
%{_includedir}/scsi/*.h
%{_libdir}/*.so
%files help
%{_mandir}/man8/*
%changelog
* Tue Aug 20 2024 Jiuwang He <hejiuwang@cqsoftware.com.cn> - 0.99-4
- Add Buildarch: noarch' to the help subpackage
* Wed Oct 19 2022 Kunlin Yang <yangkunlin7@huawei.com> - 0.99-3
- rebuild the version to 0.99-3
* Sat Jul 31 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.99-2
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
* Thu Jul 16 2020 Zhiqiang Liu <liuzhiqiang26@huawei.com> -0.99-1
- update to v0.99 version
* Tue Jun 30 2020 volcanodragon <linfeilong@huawei.com> -0.98-15
- rename patches
* Fri Aug 30 2019 mingfangsen <mingfangsen@huawei.com> -0.98-13.2
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/he-jiuwang/smp_utils.git
git@gitee.com:he-jiuwang/smp_utils.git
he-jiuwang
smp_utils
smp_utils
master

搜索帮助