From 12e0f6c8197e7349ef6287065b20710774e7c7f1 Mon Sep 17 00:00:00 2001 From: zhangpan Date: Mon, 19 Aug 2024 11:08:54 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=94=A8=E2=80=9Cpackage=5Fhelp=E2=80=9D?= =?UTF-8?q?=E5=AE=8F=E6=9B=BF=E6=8D=A2help=E5=AD=90=E5=8C=85=E5=A3=B0?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mtx.spec | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/mtx.spec b/mtx.spec index 8c8ef3c..1ddbd0d 100644 --- a/mtx.spec +++ b/mtx.spec @@ -1,6 +1,6 @@ Name: mtx Version: 1.3.12 -Release: 22 +Release: 23 Summary: generic magtape exerciser License: GPLv2 URL: http://mtx.sourceforge.net/ @@ -13,13 +13,7 @@ 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} -BuildRequires: gcc - -%description help -Files for help with mtx. +%package_help %prep %autosetup -n %{name}-%{version} -p1 @@ -42,6 +36,9 @@ chmod a-x contrib/config_sgen_solaris.sh contrib/mtx-changer %{_mandir}/man1/* %changelog +* Mon Aug 19 2024 Pan Zhang - 1.3.12-23 +- Replaced declaration of help subpackage with the 'package_help' macro. + * Wed Jun 02 2021 zhaoyao - 1.3.12-22 - fixs faileds: /bin/sh: gcc: command not found. -- Gitee From fdeec30bc9f46d36326373c0ac0c8b4ed4e608d3 Mon Sep 17 00:00:00 2001 From: zhangpan Date: Mon, 19 Aug 2024 11:08:54 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=94=A8=E2=80=9Cpackage=5Fhelp=E2=80=9D?= =?UTF-8?q?=E5=AE=8F=E6=9B=BF=E6=8D=A2help=E5=AD=90=E5=8C=85=E5=A3=B0?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mtx.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mtx.spec b/mtx.spec index 1ddbd0d..eb3cead 100644 --- a/mtx.spec +++ b/mtx.spec @@ -8,12 +8,15 @@ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Patch0001: mtx-1.3.12-destdir.patch Patch0002: mtx-1.3.12-argc.patch +BuildRequires: gcc + %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 +Requires: %{name} = %{version}-%{release} %prep %autosetup -n %{name}-%{version} -p1 -- Gitee