5f9aea
Name: mtx
5f9aea
Version: 1.3.12
a2ee99
Release: 14%{?dist}
5f9aea
Summary: SCSI media changer control program
5f9aea
License: GPLv2
5f9aea
Group: Applications/System
5f9aea
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
5f9aea
# http://mtx.opensource-sw.net/bugs/view.php?id=9
5f9aea
Patch0: %{name}-1.3.12-destdir.patch
5f9aea
# http://mtx.opensource-sw.net/bugs/view.php?id=13
5f9aea
# https://bugzilla.redhat.com/show_bug.cgi?id=538403
5f9aea
Patch1: %{name}-1.3.12-argc.patch
a2ee99
Patch2: emc-fix-fail-with-too-high-slot-count_cleanupver.patch
a2ee99
Patch3: mtx-1.3.12-fix-resource-leak.patch
a2ee99
Patch4: mtx-1.3.12-scsitape-usage--add-erase.patch
a2ee99
Patch5: mtx-1.3.12-man-Document-mtx-eject-and-previous-operations.patch
5f9aea
URL: http://mtx.sourceforge.net/
5f9aea
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
5f9aea
5f9aea
5f9aea
%description
5f9aea
The MTX program controls the robotic mechanism in autoloaders and tape
5f9aea
libraries such as the HP SureStore DAT 40x6, Exabyte EZ-17, and
5f9aea
Exabyte 220. This program is also reported to work with a variety of
5f9aea
other tape libraries and autochangers from ADIC, Tandberg/Overland,
5f9aea
Breece Hill, HP, and Seagate.
5f9aea
5f9aea
If you have a backup tape device capable of handling more than one
5f9aea
tape at a time, you should install MTX.
5f9aea
5f9aea
5f9aea
%prep
5f9aea
%setup -q
5f9aea
5f9aea
%patch0 -p2 -b .destdir
5f9aea
%patch1 -p2 -b .argc
a2ee99
%patch2 -p1 -b .emc_slot_count
a2ee99
%patch3 -p1 -b .fixresourceleak
a2ee99
%patch4 -p1 -b .scsitape_adderase
a2ee99
%patch5 -p1 -b .mtxman1upd
5f9aea
5f9aea
# remove exec permission
5f9aea
chmod a-x contrib/config_sgen_solaris.sh contrib/mtx-changer
5f9aea
5f9aea
5f9aea
%build
5f9aea
export CFLAGS="$RPM_OPT_FLAGS"
5f9aea
%configure
5f9aea
make %{?_smp_mflags}
5f9aea
5f9aea
5f9aea
%install
5f9aea
rm -rf $RPM_BUILD_ROOT
5f9aea
make install DESTDIR=$RPM_BUILD_ROOT
5f9aea
5f9aea
5f9aea
%clean
5f9aea
rm -rf $RPM_BUILD_ROOT
5f9aea
5f9aea
5f9aea
%files
5f9aea
%defattr(-,root,root,-)
5f9aea
%doc CHANGES COMPATABILITY contrib FAQ LICENSE
5f9aea
%doc mtx.doc mtxl.README.html README TODO
5f9aea
%{_mandir}/man1/*
5f9aea
%{_sbindir}/*
5f9aea
5f9aea
5f9aea
%changelog
a2ee99
* Wed Mar 16 2016 David Sommerseth <davids@redhat.com> - 1.3.12-14
a2ee99
- Update scsitape --help screen to show the erase command and improved mtx.1 man page (#948459)
a2ee99
a2ee99
* Wed Mar 16 2016 David Sommerseth <davids@redhat.com> - 1.3.12-13
a2ee99
- Fix resource leak during processing of import/export information
a2ee99
a2ee99
* Fri Mar 11 2016 David Sommerseth <davids@redhat.com> - 1.3.12-12
a2ee99
- Fix fail with too high slot count (#1298647)
a2ee99
b8fb7f
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.3.12-11
b8fb7f
- Mass rebuild 2014-01-24
b8fb7f
b8fb7f
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.3.12-10
b8fb7f
- Mass rebuild 2013-12-27
b8fb7f
5f9aea
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.12-9
5f9aea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5f9aea
5f9aea
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.12-8
5f9aea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5f9aea
5f9aea
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.12-7
5f9aea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5f9aea
5f9aea
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.12-6
5f9aea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5f9aea
5f9aea
* Thu Nov 19 2009 Dan Horák <dan[at]danny.cz> 1.3.12-5
5f9aea
- dropped debug output when tools are called with wrong number of arguments (#538403)
5f9aea
- added patch to support DESTDIR for installing
5f9aea
5f9aea
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.12-4
5f9aea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5f9aea
5f9aea
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.12-3
5f9aea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
5f9aea
5f9aea
* Sun Dec 21 2008 Dan Horák <dan[at]danny.cz> 1.3.12-2
5f9aea
- spec file cleanup for better compliance with the guidelines
5f9aea
5f9aea
* Mon Aug 25 2008 Dan Horák <dan[at]danny.cz> 1.3.12-1
5f9aea
- update to mtx-1.3.12
5f9aea
5f9aea
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.3.11-3
5f9aea
- Autorebuild for GCC 4.3
5f9aea
5f9aea
* Thu Aug 23 2007 Jindrich Novy <jnovy@redhat.com> 1.3.11-2
5f9aea
- update License
5f9aea
- rebuild for BuildID
5f9aea
5f9aea
* Wed Mar 28 2007 Jindrich Novy <jnovy@redhat.com> 1.3.11-1
5f9aea
- update to 1.3.11 (adds new scsieject utility, bugfixes)
5f9aea
- sync nostrip patch
5f9aea
5f9aea
* Tue Feb 06 2007 Jindrich Novy <jnovy@redhat.com> 1.3.10-1
5f9aea
- update to mtx-1.3.10
5f9aea
- update URL, Source0
5f9aea
- don't strip debuginfo
5f9aea
5f9aea
* Tue Dec 12 2006 Jindrich Novy <jnovy@redhat.com> 1.2.18-9
5f9aea
- spec cleanup
5f9aea
5f9aea
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.2.18-8.2.2
5f9aea
- rebuild
5f9aea
5f9aea
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.2.18-8.2.1
5f9aea
- bump again for double-long bug on ppc(64)
5f9aea
5f9aea
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.2.18-8.2
5f9aea
- rebuilt for new gcc4.1 snapshot and glibc changes
5f9aea
5f9aea
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
5f9aea
- rebuilt
5f9aea
5f9aea
* Mon Mar  7 2005 Jindrich Novy <jnovy@redhat.com> 1.2.18-8
5f9aea
- fix type confusion in SCSI_writet(), SCSI_readt(), slow_memcopy()
5f9aea
  and slow_bzero()
5f9aea
- rebuilt with gcc4
5f9aea
5f9aea
* Thu Feb 10 2005 Jindrich Novy <jnovy@redhat.com> 1.2.18-7
5f9aea
- remove -D_FORTIFY_SOURCE=2 from CFLAGS, present in RPM_OPT_FLAGS
5f9aea
5f9aea
* Wed Feb  9 2005 Jindrich Novy <jnovy@redhat.com> 1.2.18-6
5f9aea
- rebuilt with -D_FORTIFY_SOURCE=2
5f9aea
5f9aea
* Wed Aug 11 2004 Jindrich Novy <jnovy@redhat.com> 1.2.18-5
5f9aea
- dead code elimination
5f9aea
- updated spec link to recent source
5f9aea
- removed spec link to obsolete URL
5f9aea
- rebuilt
5f9aea
5f9aea
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
5f9aea
- rebuilt
5f9aea
5f9aea
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
5f9aea
- rebuilt
5f9aea
5f9aea
* Tue Jan 13 2004 Than Ngo <than@redhat.com> 1.2.18-2
5f9aea
- rebuild
5f9aea
5f9aea
* Fri Sep 26 2003 Harald Hoyer <harald@redhat.de> 1.2.18-1
5f9aea
- 1.2.18
5f9aea
5f9aea
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
5f9aea
- rebuilt
5f9aea
5f9aea
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
5f9aea
- rebuilt
5f9aea
5f9aea
* Wed Dec 11 2002 Tim Powers <timp@redhat.com> 1.2.16-6
5f9aea
- rebuild on all arches
5f9aea
5f9aea
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
5f9aea
- automated rebuild
5f9aea
5f9aea
* Wed Jun 19 2002 Than Ngo <than@redhat.com> 1.2.16-4
5f9aea
- don't forcibly strip binaries
5f9aea
5f9aea
* Thu May 23 2002 Tim Powers <timp@redhat.com>
5f9aea
- automated rebuild
5f9aea
5f9aea
* Tue Feb 26 2002 Than Ngo <than@redhat.com> 1.2.16-2
5f9aea
- rebuild
5f9aea
5f9aea
* Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.16-1
5f9aea
- 1.2.16
5f9aea
5f9aea
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
5f9aea
- automated rebuild
5f9aea
5f9aea
* Fri Dec 14 2001 Than Ngo <than@redhat.com> 1.2.15-1
5f9aea
- update to 1.2.15
5f9aea
5f9aea
* Mon Aug 13 2001 Preston Brown <pbrown@redhat.com> 1.2.13-1
5f9aea
- 1.2.13 fixes "+ Too many Data Transfer Elements Reported" problem (#49258)
5f9aea
5f9aea
* Mon Jun 25 2001 Preston Brown <pbrown@redhat.com>
5f9aea
- 1.2.12
5f9aea
- moved binaries to /usr/sbin from /sbin
5f9aea
5f9aea
* Wed Feb 14 2001 Michael Stefaniuc <mstefani@redhat.com>
5f9aea
- 1.2.10
5f9aea
- updated %%doc
5f9aea
5f9aea
* Mon Dec 11 2000 Preston Brown <pbrown@redhat.com>
5f9aea
- 1.2.9
5f9aea
5f9aea
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
5f9aea
- automatic rebuild
5f9aea
5f9aea
* Thu Jun 15 2000 Preston Brown <pbrown@redhat.com>
5f9aea
- 1.2.7
5f9aea
5f9aea
* Tue May 23 2000 Preston Brown <pbrown@redhat.com> 
5f9aea
- adopted for Winston
5f9aea
5f9aea
* Fri May 12 2000 Kenneth Porter <shiva@well.com>
5f9aea
- 1.2.6
5f9aea
- Fixed 'eepos' stuff to use | rather than || (whoops!)
5f9aea
- Accept a 4-byte element descriptor for the robot arm for certain older
5f9aea
- autochangers. 
5f9aea
5f9aea
* Mon May 8 2000 Kenneth Porter <shiva@well.com>
5f9aea
- Spell sourceforge right so the link at rpmfind.net will work.
5f9aea
5f9aea
* Thu May 4 2000 Kenneth Porter <shiva@well.com>
5f9aea
- 1.2.5
5f9aea
5f9aea
* Thu Oct 29 1998  Ian Macdonald <ianmacd@xs4all.nl>
5f9aea
- moved mtx from /sbin to /bin, seeing as mt is also located there
5f9aea
5f9aea
* Fri Oct 23 1998  Ian Macdonald <ianmacd@xs4all.nl>
5f9aea
- first RPM release