From e899505a5db70bd648710a333d7a978d8fa3d415 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Fri, 25 Nov 2022 17:00:14 +0800 Subject: [PATCH] remove SAMPLE in mtools.conf file --- 0001-remove-sample-in-mtools-conf-file.patch | 11 +++++++++++ mtools.spec | 9 +++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 0001-remove-sample-in-mtools-conf-file.patch diff --git a/0001-remove-sample-in-mtools-conf-file.patch b/0001-remove-sample-in-mtools-conf-file.patch new file mode 100644 index 0000000..4e23b96 --- /dev/null +++ b/0001-remove-sample-in-mtools-conf-file.patch @@ -0,0 +1,11 @@ +diff -Nurw mtools-4.0.38/mtools.conf mtools-4.0.38_c/mtools.conf +--- mtools-4.0.38/mtools.conf 2021-11-22 20:24:14.000000000 +0800 ++++ mtools-4.0.38_c/mtools.conf 2022-11-25 16:54:46.496380322 +0800 +@@ -16,7 +16,6 @@ + + # Example mtools.conf files. Uncomment the lines which correspond to + # your architecture and comment out the "SAMPLE FILE" line below +-SAMPLE FILE + + # # Linux floppy drives + # drive a: file="/dev/fd0" exclusive diff --git a/mtools.spec b/mtools.spec index 3df05a8..56a8c6f 100644 --- a/mtools.spec +++ b/mtools.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 Summary: Programs for accessing MS-DOS disks without mounting the disks Name: mtools Version: 4.0.38 @@ -7,6 +7,8 @@ License: GPLv3+ Source0: ftp://ftp.gnu.org/gnu/mtools/mtools-%{version}.tar.gz Url: https://www.gnu.org/software/mtools/ +Patch0: 0001-remove-sample-in-mtools-conf-file.patch + BuildRequires: make BuildRequires: gcc BuildRequires: texinfo, autoconf @@ -28,7 +30,7 @@ BuildArch: noarch The %{name}-doc package contains documentation files for %{name}. %prep -%setup -q -n %{name}-%{version} +%autosetup -p1 -n %{name}-%{version} %build autoreconf -fiv @@ -66,6 +68,9 @@ ln -s mtools.5.gz %{buildroot}%{_mandir}/man5/mtools.conf.5.gz %doc README Release.notes %changelog +* Fri Nov 25 2022 mgb01105731 - 4.0.38-3 +- remove SAMPLE in mtools.conf file + * Tue Oct 18 2022 mgb01105731 - 4.0.38-2 - optimise spec file & add doc package -- Gitee