Initial import package mtools: Programs for accessing MS-DOS disks without mounting...
[profile/ivi/mtools.git] / packaging / mtools.spec
1 Summary: Programs for accessing MS-DOS disks without mounting the disks
2 Name: mtools
3 Version: 4.0.12
4 Release: 4
5 License: GPLv2+
6 Group: Applications/System
7 Source: ftp://ftp.gnu.org/gnu/mtools/mtools-%{version}.tar.bz2
8 Url: http://mtools.linux.lu/
9 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
10 Patch0: mtools-3.9.6-config.patch
11 Patch1: mtools-3.9.7-bigdisk.patch
12 Patch2: fix_mlabel_initialisation.patch
13
14 BuildRequires: texinfo, autoconf
15
16 %description
17 Mtools is a collection of utilities for accessing MS-DOS files.
18 Mtools allow you to read, write and move around MS-DOS filesystem
19 files (normally on MS-DOS floppy disks).  Mtools supports Windows95
20 style long file names, OS/2 XDF disks, and 2m disks
21
22 Mtools should be installed if you need to use MS-DOS disks
23
24 %prep
25 %setup -q -n %{name}-%{version}
26 %patch0 -p1
27 %patch1 -p1
28 %patch2 -p1
29
30 %build
31 autoreconf -fiv
32 %configure --disable-floppyd
33 make %{?_smp_mflags}
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 mkdir -p $RPM_BUILD_ROOT/etc $RPM_BUILD_ROOT/%{_infodir}
38 %makeinstall
39 install -m644 mtools.conf $RPM_BUILD_ROOT/etc
40
41 # We aren't shipping this.
42 find $RPM_BUILD_ROOT -name "floppyd*" -exec rm {} \;
43
44 %remove_docs
45
46 %files
47 %defattr(-,root,root)
48 %config(noreplace) /etc/mtools.conf
49 %doc COPYING README Release.notes
50 /usr/bin/*
51