commit c1d9a36574013c9445380afe2582d18af8abb05a Author: gu-gu-gu Date: Mon Dec 2 21:52:45 2019 +0800 libieee1284: openEuler init 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-1.3.12.tar.gz b/mtx-1.3.12.tar.gz new file mode 100644 index 0000000..f16965f Binary files /dev/null and b/mtx-1.3.12.tar.gz differ diff --git a/mtx.spec b/mtx.spec new file mode 100644 index 0000000..b883101 --- /dev/null +++ b/mtx.spec @@ -0,0 +1,48 @@ +Name: mtx +Version: 1.3.12 +Release: 21 +Summary: generic magtape exerciser +License: GPLv2 +URL: http://mtx.sourceforge.net/ +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +Patch0001: mtx-1.3.12-destdir.patch +Patch0002: mtx-1.3.12-argc.patch + +%description +mtx is a native linux media changer tool, it controls SCSI media changer devices. +The mtx command controls single or multi-drive SCSI media changers such as tape +changers, autoloaders, tape libraries, or optical media jukeboxes + +%package help +Summary: This package contains help documents +Requires: %{name} = %{version}-%{release} + +%description help +Files for help with mtx. + +%prep +%autosetup -n %{name}-%{version} -p1 +chmod a-x contrib/config_sgen_solaris.sh contrib/mtx-changer + +%build +%configure +%make_build + +%install +%make_install + +%files +%doc LICENSE +%{_sbindir}/* + +%files help +%doc CHANGES COMPATABILITY contrib FAQ +%doc mtx.doc mtxl.README.html README TODO +%{_mandir}/man1/* + +%changelog +* Tue Nov 26 2019 gulining - 1.3.12-21 +- change patch level + +* Mon Nov 25 2019 gulining - 1.3.12-20 +- Pakcage init