File mt_st.spec of Package mt_st

# spec file for package mt_st (Version 0.9b)
# Copyright (c) 2009 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

# norootforbuild

Name:           mt_st
Version:        0.9b
Release:        97
License:        GPL v2 or later
Group:          Productivity/Archiving/Backup
Provides:       mt-st 
AutoReqProv:    on
Summary:        mt-st Controls Magnetic Tape Drives
Source:         mt-st-%{version}.tar.bz2
Patch:          mt-st-%{version}.patch
Patch1:         mt-st-0.9b-local_qic117_h.patch
Patch2:         mt-st-codecleanup.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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.

    Kai Makisara <>

%setup -q -n mt-st-%{version}

make CFLAGS="%{optflags} -W -Wall"

    make install DESTDIR=%{buildroot} MANDIR=%{buildroot}%{_mandir}

#%docdir %attr(755,root,root) %{_defaultdocdir}/%{name}
%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

rm -rf %{buildroot}
rm -rf %{buildroot}/mt-st-%{version}

* Wed Mar 14 2007
- Update to 0.9b:
  Changes since 0.7:
  - add local copy of qic117.h missing from recent kernels.
  - only stinit changed
  - more density codes
  - put man page into /usr/share/man/man1
  - documentation cleanup
  - add some density translations
  - counts can use the k, M, or G postfix
* Sat Nov 11 2006
- fix doc file permission
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Fri Jan 20 2006
- Don't strip binaries.
* Wed Nov 02 2005
- don't build as root
* Tue Nov 27 2001
- Use %%attr and remove -m -o -g from install to allow building
  as non-root.
* Tue Nov 27 2001
- Update to mt-st-0.7:
  * eject alias for rewoffl (GNU mt compat)
  * some new density codes
  * cleaning status and request handling
* Fri Dec 01 2000
- Update to mt-st-0.6; including osst (OnStream) support.
* Sat May 27 2000
- Add some docu
- Use BuildRoot.
* Sat Feb 05 2000
- Move manpages to /usr/share/man
* Tue Jan 04 2000
- upgrade to 0.5b (including stinit).
* Mon Sep 13 1999
- ran old prepare_spec on spec file to switch to new prepare_spec.
openSUSE Build Service is sponsored by