# # spec file for package mt-st # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: mt-st Version: 1.3 Release: 0 Summary: Utility for Controlling Magnetic Tape Drives License: GPL-2.0+ Group: Productivity/Archiving/Backup Url: https://github.com/iustin/%{name} Source0: https://github.com/iustin/mt-st/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz Source1: https://github.com/iustin/mt-st/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz.asc Source2: stinit.def Source3: 61-storage-tape-init.rules Source4: %{name}.keyring BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: pkgconfig(udev) Requires: udev Provides: mt_st = %{version}-%{release} Obsoletes: mt_st < %{version}-%{release} %description Although this mt program (called mtst) is tailored for SCSI tape drives, it can also be used with the QIC-02 driver and hopefully with other Linux tape drivers that use the same ioctls (some of the commands may not work with all drivers). The stinit program allows the setting of some SCSI tape parameters. %prep %setup -q -n %{name}-%{version} %build make %{?_smp_mflags} CFLAGS="%{optflags} -pipe" DEFTAPE=/dev/nst0 %install %makeinstall EXEC_PREFIX=/usr install -d %{buildroot}%{_sysconfdir} install %{SOURCE2} %{buildroot}%{_sysconfdir} install -d %{buildroot}%{_udevrulesdir} install -m 0644 %{SOURCE3} %{buildroot}%{_udevrulesdir} %files %defattr(-,root,root) %doc README.md CHANGELOG.md COPYING stinit.def.examples %{_bindir}/mt %{_sbindir}/stinit %{_mandir}/man1/mt.1%{ext_man} %{_mandir}/man8/stinit.8%{ext_man} %config(noreplace) %attr(644,root,root) %{_sysconfdir}/stinit.def %{_udevrulesdir}/61-storage-tape-init.rules %changelog