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