fcfe9a
Summary: Tool for controlling tape drives
fcfe9a
Name: mt-st
fcfe9a
Version: 1.1
fcfe9a
Release: 14%{?dist}
fcfe9a
License: GPL+
fcfe9a
Group: Applications/System
fcfe9a
URL: ftp://ftp.ibiblio.org/pub/linux/system/backup
fcfe9a
Source0: ftp://metalab.unc.edu/pub/Linux/system/backup/mt-st-%{version}.tar.gz
fcfe9a
Source1: stinit.service
fcfe9a
Patch0: mt-st-1.1-redhat.patch
fcfe9a
Patch1: mt-st-1.1-SDLT.patch
fcfe9a
Patch2: mt-st-0.7-config-files.patch
fcfe9a
Patch3: mt-st-0.9b-manfix.patch
fcfe9a
Patch4: mt-st-1.1-mtio.patch
fcfe9a
# https://bugzilla.redhat.com/show_bug.cgi?id=948457
fcfe9a
Patch5: mt-st-1.1-options.patch
fcfe9a
Patch6: mt-st-man-page-updates-1_bz948457.patch
fcfe9a
BuildRequires: systemd
fcfe9a
Requires(post): systemd
fcfe9a
Requires(preun): systemd
fcfe9a
Requires(postun): systemd
fcfe9a
fcfe9a
%description
fcfe9a
The mt-st package contains the mt and st tape drive management
fcfe9a
programs. Mt (for magnetic tape drives) and st (for SCSI tape devices)
fcfe9a
can control rewinding, ejecting, skipping files and blocks and more.
fcfe9a
fcfe9a
Install mt-st if you need a tool to  manage tape drives.
fcfe9a
fcfe9a
fcfe9a
%prep
fcfe9a
%setup -q
fcfe9a
%patch0 -p1 -b .redhat
fcfe9a
%patch1 -p1 -b .sdlt
fcfe9a
%patch2 -p1 -b .configfiles
fcfe9a
%patch3 -p1 -b .manfix
fcfe9a
%patch4 -p1 -b .mtio
fcfe9a
%patch5 -p1 -b .options
fcfe9a
%patch6 -p1 -b .man_page_upd1
fcfe9a
fcfe9a
# fix encoding
fcfe9a
f=README.stinit
fcfe9a
iconv -f ISO8859-1 -t UTF-8 -o $f.new $f
fcfe9a
touch -r $f $f.new
fcfe9a
mv $f.new $f
fcfe9a
fcfe9a
fcfe9a
%build
fcfe9a
make CFLAGS="$RPM_OPT_FLAGS"
fcfe9a
fcfe9a
fcfe9a
%install
fcfe9a
make install
fcfe9a
install -D -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/stinit.service
fcfe9a
fcfe9a
fcfe9a
%post
fcfe9a
%systemd_post stinit.service
fcfe9a
fcfe9a
%preun
fcfe9a
%systemd_preun stinit.service
fcfe9a
fcfe9a
%postun
fcfe9a
%systemd_postun_with_restart stinit.service
fcfe9a
fcfe9a
fcfe9a
%files
fcfe9a
%doc COPYING README README.stinit mt-st-1.1.lsm stinit.def.examples
fcfe9a
%{_bindir}/mt
fcfe9a
%{_sbindir}/stinit
fcfe9a
%{_mandir}/man[18]/*
fcfe9a
%{_unitdir}/stinit.service
fcfe9a
fcfe9a
fcfe9a
%changelog
fcfe9a
* Tue Sep 30 2014 David Sommerseth <davids@redhat.com> - 1.1-14
fcfe9a
- Updated man page (#948457)
fcfe9a
fcfe9a
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.1-13
fcfe9a
- Mass rebuild 2014-01-24
fcfe9a
fcfe9a
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.1-12
fcfe9a
- Mass rebuild 2013-12-27
fcfe9a
fcfe9a
* Tue Jul 23 2013 Dan Horák <dan[at]danny.cz> - 1.1-11
fcfe9a
- print all options in stinit's help (#948457)
fcfe9a
- switch to systemd scriptlet macros
fcfe9a
fcfe9a
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-10
fcfe9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
fcfe9a
fcfe9a
* Tue Nov 20 2012 Dan Horák <dan[at]danny.cz> - 1.1-9
fcfe9a
- spec cleanup
fcfe9a
fcfe9a
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-8
fcfe9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
fcfe9a
fcfe9a
* Thu Apr 19 2012 Jon Ciesla <limburgher@gmail.com> - 1.1-7
fcfe9a
- Migrate to systemd, BZ 789926.
fcfe9a
fcfe9a
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-6
fcfe9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
fcfe9a
fcfe9a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-5
fcfe9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
fcfe9a
fcfe9a
* Thu Nov 26 2009 Dan Horák <dan[at]danny.cz> - 1.1-4
fcfe9a
- stinit initscript updated (#541592)
fcfe9a
- fixed License
fcfe9a
fcfe9a
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-3
fcfe9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
fcfe9a
fcfe9a
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-2
fcfe9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
fcfe9a
fcfe9a
* Mon Aug  4 2008 Dan Horak <dan[at]danny.cz> - 1.1-1
fcfe9a
- update to upstream version 1.1
fcfe9a
- rebase patches
fcfe9a
fcfe9a
* Mon May 26 2008 Radek Brich <rbrich@redhat.com> - 0.9b-6
fcfe9a
- add init script to call /sbin/stinit (#249665)
fcfe9a
fcfe9a
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9b-5
fcfe9a
- Autorebuild for GCC 4.3
fcfe9a
fcfe9a
* Thu Aug 23 2007 Jindrich Novy <jnovy@redhat.com> - 0.9b-4
fcfe9a
- update License
fcfe9a
- rebuild for BuildID
fcfe9a
fcfe9a
* Wed Feb  7 2007 Jindrich Novy <jnovy@redhat.com> - 0.9b-3
fcfe9a
- spec fixes
fcfe9a
- use mtio.h from kernel-headers instead of the mt-st one
fcfe9a
fcfe9a
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.9b-2.2.2
fcfe9a
- rebuild
fcfe9a
fcfe9a
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.9b-2.2.1
fcfe9a
- bump again for double-long bug on ppc(64)
fcfe9a
fcfe9a
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.9b-2.2
fcfe9a
- rebuilt for new gcc4.1 snapshot and glibc changes
fcfe9a
fcfe9a
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
fcfe9a
- rebuilt
fcfe9a
fcfe9a
* Tue Oct 25 2005 Jindrich Novy <jnovy@redhat.com> 0.9b-2
fcfe9a
- fix misleading description of "fsfm" and "bsfm" commands (#171340)
fcfe9a
fcfe9a
* Thu Sep 22 2005 Jindrich Novy <jnovy@redhat.com> 0.9b-1
fcfe9a
- update to mt-st 0.9b
fcfe9a
fcfe9a
* Thu Apr  7 2005 Jindrich Novy <jnovy@redhat.com> 0.8-5
fcfe9a
- add SDLT600 entry to stinit.def.examples,
fcfe9a
  suggested by Ralf-Peter Rohbeck (#153305)
fcfe9a
fcfe9a
* Fri Mar  4 2005 Jindrich Novy <jnovy@redhat.com> 0.8-4
fcfe9a
- rebuilt with gcc4
fcfe9a
fcfe9a
* Thu Feb 10 2005 Jindrich Novy <jnovy@redhat.com> 0.8-3
fcfe9a
- remove -D_FORTIFY_SOURCE=2 from CFLAGS, present in RPM_OPT_FLAGS
fcfe9a
fcfe9a
* Wed Feb  9 2005 Jindrich Novy <jnovy@redhat.com> 0.8-2
fcfe9a
- rebuilt with -D_FORTIFY_SOURCE=2
fcfe9a
fcfe9a
* Mon Aug 09 2004 Jindrich Novy <jnovy@redhat.com> 0.8-1
fcfe9a
- updated to 0.8
fcfe9a
- updated .redhat patch
fcfe9a
- license fixup to GPL
fcfe9a
fcfe9a
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
fcfe9a
- rebuilt
fcfe9a
fcfe9a
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
fcfe9a
- rebuilt
fcfe9a
fcfe9a
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
fcfe9a
- rebuilt
fcfe9a
fcfe9a
* Mon May 26 2003 Than Ngo <than@redhat.com> 0.7-11.1
fcfe9a
- add config file for Quantum DLT drive bug #91550
fcfe9a
fcfe9a
* Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com>
fcfe9a
- rebuilt
fcfe9a
fcfe9a
* Sat Feb 22 2003 Than Ngo <than@redhat.com> 0.7-9
fcfe9a
- add density code for Quantum SDLT320 from tibbs@math.uh.edu (#84843)
fcfe9a
fcfe9a
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
fcfe9a
- rebuilt
fcfe9a
fcfe9a
* Wed Dec 11 2002 Tim Powers <timp@redhat.com> 0.7-7
fcfe9a
- rebuild on all arches
fcfe9a
fcfe9a
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
fcfe9a
- automated rebuild
fcfe9a
fcfe9a
* Wed Jun 19 2002 Than Ngo <than@redhat.com> 0.7-5
fcfe9a
- don't forcibly strip binaries
fcfe9a
- clean up a patch file
fcfe9a
fcfe9a
* Thu May 23 2002 Tim Powers <timp@redhat.com>
fcfe9a
- automated rebuild
fcfe9a
fcfe9a
* Tue Feb 26 2002 Than Ngo <than@redhat.com> 0.7-3
fcfe9a
- rebuild
fcfe9a
fcfe9a
* Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 0.7-2
fcfe9a
- Add density code 0x48 for Quantum SDLT220 tape drive (#59442)
fcfe9a
fcfe9a
* Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 0.7-1
fcfe9a
- Update to 0.7
fcfe9a
fcfe9a
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
fcfe9a
- automated rebuild
fcfe9a
fcfe9a
* Tue Apr 24 2001 Than Ngo <than@redhat.com>
fcfe9a
- update to 0.6, supports all ioctls up to kernel 2.4.0
fcfe9a
fcfe9a
* Thu Aug 17 2000 Jeff Johnson <jbj@redhat.com>
fcfe9a
- summaries from specspo.
fcfe9a
fcfe9a
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
fcfe9a
- automatic rebuild
fcfe9a
fcfe9a
* Wed Jun 14 2000 Jeff Johnson <jbj@redhat.com>
fcfe9a
- FHS packaging.
fcfe9a
fcfe9a
* Sat Apr 15 2000 Jeff Johnson <jbj@redhat.com>
fcfe9a
- permit leading whitespace in config file.
fcfe9a
- cortrect spelling error.
fcfe9a
fcfe9a
* Mon Feb  7 2000 Bill Nottingham <notting@redhat.com>
fcfe9a
- handle compressed manpages
fcfe9a
fcfe9a
* Fri Jan 14 2000 Jeff Johnson <jbj@redhat.com>
fcfe9a
- rebuild for Red Hat 6.2.
fcfe9a
fcfe9a
* Sun Sep  5 1999 Jeff Johnson <jbj@redhat.com>
fcfe9a
- enable "datcompression" command (#3654).
fcfe9a
fcfe9a
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
fcfe9a
- auto rebuild in the new build environment (release 3)
fcfe9a
fcfe9a
* Wed Feb 10 1999 Preston Brown <pbrown@redhat.com>
fcfe9a
- upgrade to .5b, which fixes some cmd. line arg issues (bugzilla #18)
fcfe9a
fcfe9a
* Thu Jul 23 1998 Jeff Johnson <jbj@redhat.com>
fcfe9a
- package for 5.2.
fcfe9a
fcfe9a
* Sun Jul 19 1998 Andrea Borgia <borgia@cs.unibo.it>
fcfe9a
- updated to version 0.5
fcfe9a
- removed the touch to force the build: no binaries are included!
fcfe9a
- added to the docs: README.stinit, stinit.def.examples
fcfe9a
- made buildroot capable
fcfe9a
fcfe9a
* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
fcfe9a
- translations modified for de, fr, tr
fcfe9a
fcfe9a
* Mon Oct 20 1997 Donnie Barnes <djb@redhat.com>
fcfe9a
- spec file cleanups
fcfe9a
fcfe9a
* Thu Jun 19 1997 Erik Troan <ewt@redhat.com>
fcfe9a
- built against glibc