1 Star 0 Fork 8

zhangxingrong/mt-st

forked from src-openEuler/mt-st 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mt-st.spec 1.88 KB
一键复制 编辑 原始数据 按行查看 历史
zhangxingrong 提交于 2024-08-08 13:53 . add some upstream patchs
Name: mt-st
Version: 1.7
Release: 2
Summary: Tool to manage tape drives
License: GPL+
URL: https://github.com/iustin/mt-st
Source0: https://github.com/iustin/mt-st/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source1: stinit.service
Patch0001: Add-LTO9-Density-Code.patch
Patch0002: Backport-Linux-Kernel-WEOFI-ioctls.patch
BuildRequires: gcc systemd make bash-completion
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%description
The mt-st package contains two programs: mt and stinit. Mt is basically a "standard" mt with
additional commands to send the ioctls specific to the Linux SCSI tape driver. Stinit is a program
to initialize the tape drive characteristics.
%package_help
%prep
%autosetup -p1
%build
make CFLAGS="%{build_cflags} %{build_ldflags}"
%install
COMPLETIONDIR=%{buildroot}$(pkg-config --variable=completionsdir bash-completion)
%make_install EXEC_PREFIX=/usr COMPLETIONINSTALLDIR=$COMPLETIONDIR
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/stinit.service
cd $COMPLETIONDIR
mv mt-st mt
%post
%systemd_post stinit.service
%preun
%systemd_preun stinit.service
%postun
%systemd_postun_with_restart stinit.service
%files
%defattr(-,root,root)
%license COPYING
%{_bindir}/mt
%{_sbindir}/stinit
%{_unitdir}/stinit.service
%{_datadir}/bash-completion/
%files help
%defattr(-,root,root)
%doc README.md stinit.def.examples
%{_mandir}/man[18]/*
%changelog
* Thu Aug 8 2024 zhangxingrong <zhangxingrong@uniontech.cn> - 1.7-2
- Add LTO9 Density Code
- Backport Linux Kernel WEOFI ioctls
* Wed Jul 12 2023 chenchen <chen_aka_jan@163.com> - 1.7-1
- Upgrade to version 1.7
* Tue Jan 18 2022 SimpleUpdate Robot <tc@openeuler.org> - 1.4-1
- Upgrade to version 1.4
* Wed Dec 4 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.1-25
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangxingrong/mt-st.git
git@gitee.com:zhangxingrong/mt-st.git
zhangxingrong
mt-st
mt-st
master

搜索帮助