From 0dd1070ff3d2e1c8c987f04025243cadd22cc3be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Thu, 15 Oct 2020 20:38:16 +0200 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/mtx#a57eae1cbbfe6b25fd9cb093d0c391ca0f7a0700 --- .gitignore | 1 + mtx-1.3.12-argc.patch | 45 +++++++ mtx-1.3.12-destdir.patch | 47 ++++++++ mtx.spec | 254 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 5 files changed, 348 insertions(+) create mode 100644 mtx-1.3.12-argc.patch create mode 100644 mtx-1.3.12-destdir.patch create mode 100644 mtx.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..aef884e 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +mtx-1.3.12.tar.gz diff --git a/mtx-1.3.12-argc.patch b/mtx-1.3.12-argc.patch new file mode 100644 index 0000000..7103ef1 --- /dev/null +++ b/mtx-1.3.12-argc.patch @@ -0,0 +1,45 @@ +From f8e0af006f6a85243f0882ed08d31016032531b1 Mon Sep 17 00:00:00 2001 +From: =?utf-8?q?Dan=20Hor=C3=A1k?= +Date: Thu, 19 Nov 2009 15:45:54 +0100 +Subject: [PATCH 2/2] remove the weird debugging-like info +MIME-Version: 1.0 +Content-Type: text/plain; charset=utf-8 +Content-Transfer-Encoding: 8bit + +The loaderinfo and tapeinfo utilities print a debugging-like information +about the number of arguments on command line when started with wrong number +of arguments. + +Signed-off-by: Dan Horák +--- + mtx/loaderinfo.c | 1 - + mtx/tapeinfo.c | 1 - + 2 files changed, 0 insertions(+), 2 deletions(-) + +diff --git a/mtx/loaderinfo.c b/mtx/loaderinfo.c +index 534666f..27d22d9 100644 +--- a/mtx/loaderinfo.c ++++ b/mtx/loaderinfo.c +@@ -488,7 +488,6 @@ int main(int argc, char **argv) + argv0=argv[0]; + if (argc != 3) + { +- fprintf(stderr,"argc=%d",argc); + usage(); + } + +diff --git a/mtx/tapeinfo.c b/mtx/tapeinfo.c +index 4d9c283..67547a6 100644 +--- a/mtx/tapeinfo.c ++++ b/mtx/tapeinfo.c +@@ -933,7 +933,6 @@ int main(int argc, char **argv) + + if (argc != 3) + { +- fprintf(stderr,"argc=%d",argc); + usage(); + } + +-- +1.6.3.3 + diff --git a/mtx-1.3.12-destdir.patch b/mtx-1.3.12-destdir.patch new file mode 100644 index 0000000..6dabe45 --- /dev/null +++ b/mtx-1.3.12-destdir.patch @@ -0,0 +1,47 @@ +From a5d4d1c2fbdad8b24c2938b00406bccb037e5ab4 Mon Sep 17 00:00:00 2001 +From: Dan Horak +Date: Sat, 24 Jan 2009 18:06:43 +0100 +Subject: [PATCH 1/2] add support for DESTDIR +MIME-Version: 1.0 +Content-Type: text/plain; charset=utf-8 +Content-Transfer-Encoding: 8bit + + +Signed-off-by: Dan Horák +--- + mtx/Makefile.in | 9 +++++---- + 1 files changed, 5 insertions(+), 4 deletions(-) + +diff --git a/mtx/Makefile.in b/mtx/Makefile.in +index 6b967cf..05894d2 100644 +--- a/mtx/Makefile.in ++++ b/mtx/Makefile.in +@@ -33,6 +33,7 @@ INSTALL_DOC = $(INSTALL) -m 644 + INSTALL_BIN = $(INSTALL) -m 755 + INSTALL_DIR = $(INSTALL) -m 755 -d + ++DESTDIR = + prefix = @prefix@ + exec_prefix = @exec_prefix@ + sbindir = @sbindir@ +@@ -109,13 +110,13 @@ all: $(BINS) + dbgs: $(DBGS) + + install: $(BINS) +- $(INSTALL_DIR) $(sbindir) ++ $(INSTALL_DIR) $(DESTDIR)$(sbindir) + for file in $(BINS); do \ +- $(INSTALL_BIN) "$$file" $(sbindir) ; \ ++ $(INSTALL_BIN) "$$file" $(DESTDIR)$(sbindir) ; \ + done +- $(INSTALL_DIR) $(mandir) $(mandir)/man1 ++ $(INSTALL_DIR) $(DESTDIR)$(mandir) $(DESTDIR)$(mandir)/man1 + for file in mtx.1 tapeinfo.1 scsitape.1 scsieject.1 loaderinfo.1 ; do \ +- $(INSTALL_DOC) "$$file" $(mandir)/man1 ; \ ++ $(INSTALL_DOC) "$$file" $(DESTDIR)$(mandir)/man1 ; \ + done + + clean: +-- +1.6.3.3 + diff --git a/mtx.spec b/mtx.spec new file mode 100644 index 0000000..fe52a79 --- /dev/null +++ b/mtx.spec @@ -0,0 +1,254 @@ +Name: mtx +Version: 1.3.12 +Release: 23%{?dist} +Summary: SCSI media changer control program +License: GPLv2 +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +# http://mtx.opensource-sw.net/bugs/view.php?id=9 +Patch0: %{name}-1.3.12-destdir.patch +# http://mtx.opensource-sw.net/bugs/view.php?id=13 +# https://bugzilla.redhat.com/show_bug.cgi?id=538403 +Patch1: %{name}-1.3.12-argc.patch +URL: http://mtx.sourceforge.net/ +BuildRequires: gcc + + +%description +The MTX program controls the robotic mechanism in autoloaders and tape +libraries such as the HP SureStore DAT 40x6, Exabyte EZ-17, and +Exabyte 220. This program is also reported to work with a variety of +other tape libraries and autochangers from ADIC, Tandberg/Overland, +Breece Hill, HP, and Seagate. + +If you have a backup tape device capable of handling more than one +tape at a time, you should install MTX. + + +%prep +%setup -q + +%patch0 -p2 -b .destdir +%patch1 -p2 -b .argc + +# remove exec permission +chmod a-x contrib/config_sgen_solaris.sh contrib/mtx-changer + + +%build +%configure +make %{?_smp_mflags} + + +%install +make install DESTDIR=$RPM_BUILD_ROOT + + + +%files +%doc CHANGES COMPATABILITY contrib FAQ LICENSE +%doc mtx.doc mtxl.README.html README TODO +%{_mandir}/man1/* +%{_sbindir}/* + + +%changelog +* Tue Jul 28 2020 Fedora Release Engineering - 1.3.12-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jan 29 2020 Fedora Release Engineering - 1.3.12-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Fedora Release Engineering - 1.3.12-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 1.3.12-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 1.3.12-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Feb 08 2018 Fedora Release Engineering - 1.3.12-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 1.3.12-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.3.12-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.3.12-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 1.3.12-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 1.3.12-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sun Aug 17 2014 Fedora Release Engineering - 1.3.12-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.3.12-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 1.3.12-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 1.3.12-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Jul 20 2012 Fedora Release Engineering - 1.3.12-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 1.3.12-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 1.3.12-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Nov 19 2009 Dan Horák 1.3.12-5 +- dropped debug output when tools are called with wrong number of arguments (#538403) +- added patch to support DESTDIR for installing + +* Sat Jul 25 2009 Fedora Release Engineering - 1.3.12-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 1.3.12-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sun Dec 21 2008 Dan Horák 1.3.12-2 +- spec file cleanup for better compliance with the guidelines + +* Mon Aug 25 2008 Dan Horák 1.3.12-1 +- update to mtx-1.3.12 + +* Tue Feb 19 2008 Fedora Release Engineering - 1.3.11-3 +- Autorebuild for GCC 4.3 + +* Thu Aug 23 2007 Jindrich Novy 1.3.11-2 +- update License +- rebuild for BuildID + +* Wed Mar 28 2007 Jindrich Novy 1.3.11-1 +- update to 1.3.11 (adds new scsieject utility, bugfixes) +- sync nostrip patch + +* Tue Feb 06 2007 Jindrich Novy 1.3.10-1 +- update to mtx-1.3.10 +- update URL, Source0 +- don't strip debuginfo + +* Tue Dec 12 2006 Jindrich Novy 1.2.18-9 +- spec cleanup + +* Wed Jul 12 2006 Jesse Keating - 1.2.18-8.2.2 +- rebuild + +* Fri Feb 10 2006 Jesse Keating - 1.2.18-8.2.1 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating - 1.2.18-8.2 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Mon Mar 7 2005 Jindrich Novy 1.2.18-8 +- fix type confusion in SCSI_writet(), SCSI_readt(), slow_memcopy() + and slow_bzero() +- rebuilt with gcc4 + +* Thu Feb 10 2005 Jindrich Novy 1.2.18-7 +- remove -D_FORTIFY_SOURCE=2 from CFLAGS, present in RPM_OPT_FLAGS + +* Wed Feb 9 2005 Jindrich Novy 1.2.18-6 +- rebuilt with -D_FORTIFY_SOURCE=2 + +* Wed Aug 11 2004 Jindrich Novy 1.2.18-5 +- dead code elimination +- updated spec link to recent source +- removed spec link to obsolete URL +- rebuilt + +* Tue Jun 15 2004 Elliot Lee +- rebuilt + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Tue Jan 13 2004 Than Ngo 1.2.18-2 +- rebuild + +* Fri Sep 26 2003 Harald Hoyer 1.2.18-1 +- 1.2.18 + +* Wed Jun 04 2003 Elliot Lee +- rebuilt + +* Wed Jan 22 2003 Tim Powers +- rebuilt + +* Wed Dec 11 2002 Tim Powers 1.2.16-6 +- rebuild on all arches + +* Fri Jun 21 2002 Tim Powers +- automated rebuild + +* Wed Jun 19 2002 Than Ngo 1.2.16-4 +- don't forcibly strip binaries + +* Thu May 23 2002 Tim Powers +- automated rebuild + +* Tue Feb 26 2002 Than Ngo 1.2.16-2 +- rebuild + +* Tue Feb 19 2002 Bernhard Rosenkraenzer 1.2.16-1 +- 1.2.16 + +* Wed Jan 09 2002 Tim Powers +- automated rebuild + +* Fri Dec 14 2001 Than Ngo 1.2.15-1 +- update to 1.2.15 + +* Mon Aug 13 2001 Preston Brown 1.2.13-1 +- 1.2.13 fixes "+ Too many Data Transfer Elements Reported" problem (#49258) + +* Mon Jun 25 2001 Preston Brown +- 1.2.12 +- moved binaries to /usr/sbin from /sbin + +* Wed Feb 14 2001 Michael Stefaniuc +- 1.2.10 +- updated %%doc + +* Mon Dec 11 2000 Preston Brown +- 1.2.9 + +* Wed Jul 12 2000 Prospector +- automatic rebuild + +* Thu Jun 15 2000 Preston Brown +- 1.2.7 + +* Tue May 23 2000 Preston Brown +- adopted for Winston + +* Fri May 12 2000 Kenneth Porter +- 1.2.6 +- Fixed 'eepos' stuff to use | rather than || (whoops!) +- Accept a 4-byte element descriptor for the robot arm for certain older +- autochangers. + +* Mon May 8 2000 Kenneth Porter +- Spell sourceforge right so the link at rpmfind.net will work. + +* Thu May 4 2000 Kenneth Porter +- 1.2.5 + +* Thu Oct 29 1998 Ian Macdonald +- moved mtx from /sbin to /bin, seeing as mt is also located there + +* Fri Oct 23 1998 Ian Macdonald +- first RPM release diff --git a/sources b/sources new file mode 100644 index 0000000..ecc70ff --- /dev/null +++ b/sources @@ -0,0 +1 @@ +ce8f0e44671fb0c7d9ec30bb0bfa8b5c mtx-1.3.12.tar.gz