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 http://bugs.opensuse.org/
#

# 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

%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
%patch2

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

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

%files
#%docdir %attr(755,root,root) %{_defaultdocdir}/%{name}
%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
* Wed Mar 14 2007 pth@suse.de
- 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 olh@suse.de
- fix doc file permission
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 20 2006 schwab@suse.de
- Don't strip binaries.
* Wed Nov 02 2005 dmueller@suse.de
- don't build as root
* Tue Nov 27 2001 garloff@suse.de
- Use %%attr and remove -m -o -g from install to allow building
  as non-root.
* Tue Nov 27 2001 garloff@suse.de
- 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 garloff@suse.de
- Update to mt-st-0.6; including osst (OnStream) support.
* Sat May 27 2000 garloff@suse.de
- Add some docu
- Use BuildRoot.
* Sat Feb 05 2000 garloff@suse.de
- Move manpages to /usr/share/man
* Tue Jan 04 2000 garloff@suse.de
- upgrade to 0.5b (including stinit).
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
openSUSE Build Service is sponsored by