File mt_st.spec of Package mt_st
#
# spec file for package mt_st
#
# Copyright (c) 2013 SUSE LINUX Products 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.1
Release: 0
Provides: mt-st
Summary: Utility for Controlling Magnetic Tape Drives
License: GPL-2.0+
Group: Productivity/Archiving/Backup
Source: mt-st-%{version}.tar.bz2
Url: ftp://ftp.ibiblio.org/pub/linux/system/backup/mt-st-%{version}.tar.gz
Patch: mt-st-%{version}.patch
Patch1: mt-st-codecleanup.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
Authors:
--------
Kai Makisara <Kai.Makisara@metla.fi>
%prep
%setup -q -n mt-st-%{version}
%patch
%patch1
%build
make CC="%__cc" CFLAGS="%{optflags} -W -Wall"
%install
make install DESTDIR=%{buildroot} MANDIR=%{buildroot}%{_mandir}
%files
%defattr(-,root,root)
%doc README README.stinit stinit.def.examples
%attr(755,root,root) /usr/bin/mtst
%attr(755,root,root) /usr/sbin/stinit
%doc %attr(644,root,root) %{_mandir}/man1/mtst.1.gz
%doc %attr(644,root,root) %{_mandir}/man8/stinit.8.gz
%clean
rm -rf %{buildroot}
rm -rf %{buildroot}/mt-st-%{version}
%changelog