1Summary: mtools, read/write/list/format DOS disks under Unix
2Name: mtools
3Version: 4.0.10
4Release: 1
5Group: Utilities/System
6URL: http://mtools.linux.lu
7Source0: mtools-%{version}.tar.gz
8#Patch1: mtools-%{version}-20071226.diff.gz
9Buildroot: %{_tmppath}/%{name}-%{version}-buildroot
10License: GPL
11%description
12Mtools is a collection of utilities to access MS-DOS disks
13from Unix without mounting them. It supports Win'95 style
14long file names, OS/2 Xdf disks, ZIP/JAZ disks and 2m
15disks (store up to 1992k on a high density 3 1/2 disk).
16
17
18%prep
19%setup -q
20#%patch1 -p1
21./configure --prefix=%{buildroot}%{_prefix} --sysconfdir=/etc --infodir=%{buildroot}%{_infodir} --mandir=%{buildroot}%{_mandir} --enable-floppyd
22
23%build
24make
25
26%clean
27[ X%{buildroot} != X ] && [ X%{buildroot} != X/ ] && rm -r %{buildroot}
28
29%install
30make install
31make install-info
32strip %{buildroot}%{_bindir}/mtools %{buildroot}%{_bindir}/mkmanifest %{buildroot}%{_bindir}/floppyd
33rm %{buildroot}%{_infodir}/dir
34
35%files
36%defattr(-,root,root)
37%{_infodir}/mtools.info*
38%{_mandir}/man1/floppyd.1*
39%{_mandir}/man1/floppyd_installtest.1.gz
40%{_mandir}/man1/mattrib.1*
41%{_mandir}/man1/mbadblocks.1*
42%{_mandir}/man1/mcat.1*
43%{_mandir}/man1/mcd.1*
44%{_mandir}/man1/mclasserase.1*
45%{_mandir}/man1/mcopy.1*
46%{_mandir}/man1/mdel.1*
47%{_mandir}/man1/mdeltree.1*
48%{_mandir}/man1/mdir.1*
49%{_mandir}/man1/mdu.1*
50%{_mandir}/man1/mformat.1*
51%{_mandir}/man1/minfo.1*
52%{_mandir}/man1/mkmanifest.1*
53%{_mandir}/man1/mlabel.1*
54%{_mandir}/man1/mmd.1*
55%{_mandir}/man1/mmount.1*
56%{_mandir}/man1/mmove.1*
57%{_mandir}/man1/mpartition.1*
58%{_mandir}/man1/mrd.1*
59%{_mandir}/man1/mren.1*
60%{_mandir}/man1/mshowfat.1*
61%{_mandir}/man1/mtools.1*
62%{_mandir}/man5/mtools.5*
63%{_mandir}/man1/mtoolstest.1*
64%{_mandir}/man1/mtype.1*
65%{_mandir}/man1/mzip.1*
66%{_bindir}/amuFormat.sh
67%{_bindir}/mattrib
68%{_bindir}/mbadblocks
69%{_bindir}/mcat
70%{_bindir}/mcd
71%{_bindir}/mclasserase
72%{_bindir}/mcopy
73%{_bindir}/mdel
74%{_bindir}/mdeltree
75%{_bindir}/mdir
76%{_bindir}/mdu
77%{_bindir}/mformat
78%{_bindir}/minfo
79%{_bindir}/mkmanifest
80%{_bindir}/mlabel
81%{_bindir}/mmd
82%{_bindir}/mmount
83%{_bindir}/mmove
84%{_bindir}/mpartition
85%{_bindir}/mrd
86%{_bindir}/mren
87%{_bindir}/mshowfat
88%{_bindir}/mtools
89%{_bindir}/mtoolstest
90%{_bindir}/mtype
91%{_bindir}/mzip
92%{_bindir}/floppyd
93%{_bindir}/floppyd_installtest
94%{_bindir}/mcheck
95%{_bindir}/mcomp
96%{_bindir}/mxtar
97%{_bindir}/tgz
98%{_bindir}/uz
99%{_bindir}/lz
100
101%pre
102groupadd floppy 2>/dev/null || echo -n ""
103
104%post
105if [ -f %{_bindir}/install-info ] ; then
106	if [ -f %{_infodir}/dir ] ; then
107		%{_bindir}/install-info %{_infodir}/mtools.info %{_infodir}/dir
108	fi
109	if [ -f %{_infodir}/dir.info ] ; then
110		%{_bindir}/install-info %{_infodir}/mtools.info %{_infodir}/dir.info
111	fi
112fi
113
114
115%preun
116install-info --delete %{_infodir}/mtools.info %{_infodir}/dir.info
117if [ -f %{_bindir}/install-info ] ; then
118	if [ -f %{_infodir}/dir ] ; then
119		%{_bindir}/install-info --delete %{_infodir}/mtools.info %{_infodir}/dir
120	fi
121	if [ -f %{_infodir}/dir.info ] ; then
122		%{_bindir}/install-info --delete %{_infodir}/mtools.info %{_infodir}/dir.info
123	fi
124fi
125