mtx/mtx.spec
2022-12-24 15:00:39 +08:00

53 lines
1.3 KiB
RPMSpec

Name: mtx
Version: 1.3.12
Release: 22
Summary: generic magtape exerciser
License: GPLv2
URL: http://mtx.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0001: mtx-1.3.12-destdir.patch
Patch0002: mtx-1.3.12-argc.patch
%description
mtx is a native linux media changer tool, it controls SCSI media changer devices.
The mtx command controls single or multi-drive SCSI media changers such as tape
changers, autoloaders, tape libraries, or optical media jukeboxes
%package help
Summary: This package contains help documents
Requires: %{name} = %{version}-%{release}
BuildRequires: gcc
%description help
Files for help with mtx.
%prep
%autosetup -n %{name}-%{version} -p1
chmod a-x contrib/config_sgen_solaris.sh contrib/mtx-changer
%build
%configure
%make_build
%install
%make_install
%files
%doc LICENSE
%{_sbindir}/*
%files help
%doc CHANGES COMPATABILITY contrib FAQ
%doc mtx.doc mtxl.README.html README TODO
%{_mandir}/man1/*
%changelog
* Wed Jun 02 2021 zhaoyao<zhaoyao32@huawei.com> - 1.3.12-22
- fixs faileds: /bin/sh: gcc: command not found.
* Tue Nov 26 2019 gulining<gulining1@huawei.com> - 1.3.12-21
- change patch level
* Mon Nov 25 2019 gulining<gulining1@huawei.com> - 1.3.12-20
- Pakcage init