libieee1284: openEuler init
This commit is contained in:
commit
c1d9a36574
45
mtx-1.3.12-argc.patch
Normal file
45
mtx-1.3.12-argc.patch
Normal file
@ -0,0 +1,45 @@
|
||||
From f8e0af006f6a85243f0882ed08d31016032531b1 Mon Sep 17 00:00:00 2001
|
||||
From: =?utf-8?q?Dan=20Hor=C3=A1k?= <dan@danny.cz>
|
||||
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 <dan@danny.cz>
|
||||
---
|
||||
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
|
||||
|
||||
47
mtx-1.3.12-destdir.patch
Normal file
47
mtx-1.3.12-destdir.patch
Normal file
@ -0,0 +1,47 @@
|
||||
From a5d4d1c2fbdad8b24c2938b00406bccb037e5ab4 Mon Sep 17 00:00:00 2001
|
||||
From: Dan Horak <dan@danny.cz>
|
||||
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 <dan@danny.cz>
|
||||
---
|
||||
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
|
||||
|
||||
BIN
mtx-1.3.12.tar.gz
Normal file
BIN
mtx-1.3.12.tar.gz
Normal file
Binary file not shown.
48
mtx.spec
Normal file
48
mtx.spec
Normal file
@ -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<gulining1@huawei.com> - 1.3.12-21
|
||||
- change patch level
|
||||
|
||||
* Mon Nov 25 2019 gulining<gulining1@huawei.com> - 1.3.12-20
|
||||
- Pakcage init
|
||||
Loading…
x
Reference in New Issue
Block a user