Package init
This commit is contained in:
commit
8333123451
18
0000-mtools-3.9.6-config.patch
Normal file
18
0000-mtools-3.9.6-config.patch
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
diff -up mtools-4.0.9/mtools.conf.conf mtools-4.0.9/mtools.conf
|
||||||
|
--- mtools-4.0.9/mtools.conf.conf 2009-03-01 00:01:03.000000000 +0100
|
||||||
|
+++ mtools-4.0.9/mtools.conf 2009-03-09 18:21:40.000000000 +0100
|
||||||
|
@@ -16,11 +16,10 @@
|
||||||
|
|
||||||
|
# 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
|
||||||
|
-# drive b: file="/dev/fd1" exclusive
|
||||||
|
+# Linux floppy drives
|
||||||
|
+drive a: file="/dev/fd0" exclusive mformat_only
|
||||||
|
+drive b: file="/dev/fd1" exclusive mformat_only
|
||||||
|
|
||||||
|
# # First SCSI hard disk partition
|
||||||
|
# drive c: file="/dev/sda1"
|
||||||
BIN
mtools-4.0.18.tar.bz2
Normal file
BIN
mtools-4.0.18.tar.bz2
Normal file
Binary file not shown.
68
mtools.spec
Normal file
68
mtools.spec
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
Name: mtools
|
||||||
|
Version: 4.0.18
|
||||||
|
Release: 17
|
||||||
|
Summary: Collection of utilities to access MS-DOS disks
|
||||||
|
License: GPLv3+
|
||||||
|
Url: http://www.gnu.org/software/mtools/
|
||||||
|
|
||||||
|
Source0: ftp://ftp.gnu.org/gnu/mtools/mtools-%{version}.tar.bz2
|
||||||
|
|
||||||
|
Patch0: 0000-mtools-3.9.6-config.patch
|
||||||
|
|
||||||
|
BuildRequires: gcc git texinfo autoconf
|
||||||
|
|
||||||
|
%description
|
||||||
|
Mtools is a collection of utilities to access MS-DOS disks from GNU
|
||||||
|
and Unix without mounting them. It supports Win'95 style long file names,
|
||||||
|
OS/2 Xdf disks and 2m disks (store up to 1992k on a high density 3 1/2 disk)
|
||||||
|
In addition to file access, it supports many FAT-specific features: volume
|
||||||
|
labels, FAT-specific file attributes (hidden, system, ...), "bad block" map
|
||||||
|
maintenance, access to remote floppy drives, Iomega ZIP disk protection,
|
||||||
|
"secure" erase, display of file's on-disk layout, etc
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Including man files for mtools
|
||||||
|
Requires: man
|
||||||
|
|
||||||
|
%description help
|
||||||
|
This contains man files for the using of mtools.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{name}-%{version} -p1 -S git
|
||||||
|
|
||||||
|
%build
|
||||||
|
autoreconf -fiv
|
||||||
|
%configure --disable-floppyd
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/etc $RPM_BUILD_ROOT/%{_infodir}
|
||||||
|
%makeinstall
|
||||||
|
install -m 644 mtools.conf $RPM_BUILD_ROOT/etc
|
||||||
|
gzip -9f $RPM_BUILD_ROOT/%{_infodir}/*
|
||||||
|
rm -rf ${RPM_BUILD_ROOT}/%{_mandir}/man1/floppyd*
|
||||||
|
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir.gz
|
||||||
|
ln -s mtools.5.gz %{buildroot}%{_mandir}/man5/mtools.conf.5.gz
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README Release.notes
|
||||||
|
%license COPYING
|
||||||
|
%config(noreplace) /etc/mtools.conf
|
||||||
|
%{_bindir}/*
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%{_mandir}/*/*
|
||||||
|
%{_infodir}/mtools.info*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Aug 30 2019 huangzheng <huangzheng22@huawei.com> - 4.0.18-17
|
||||||
|
- Type:enhancement
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:openEuler Debranding
|
||||||
|
|
||||||
|
* Tue Aug 20 2019 huangzheng <huangzheng22@huawei.com> - 4.0.18-16
|
||||||
|
- Type:enhancement
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:rename patches
|
||||||
Loading…
x
Reference in New Issue
Block a user