ff9235
Summary: Programs for accessing MS-DOS disks without mounting the disks
ff9235
Name: mtools
ff9235
Version: 4.0.18
f29626
Release: 15%{?dist}
ff9235
License: GPLv3+
ff9235
Group: Applications/System
ff9235
Source0: ftp://ftp.gnu.org/gnu/mtools/mtools-%{version}.tar.bz2
ff9235
Url: http://mtools.linux.lu/
ff9235
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ff9235
Patch0: mtools-3.9.6-config.patch
ff9235
Requires: info
ff9235
ff9235
BuildRequires: texinfo, autoconf
ff9235
f29626
Requires: glibc-gconv-extra
f29626
ff9235
%description
ff9235
Mtools is a collection of utilities for accessing MS-DOS files.
ff9235
Mtools allow you to read, write and move around MS-DOS filesystem
ff9235
files (normally on MS-DOS floppy disks).  Mtools supports Windows95
ff9235
style long file names, OS/2 XDF disks, and 2m disks
ff9235
ff9235
Mtools should be installed if you need to use MS-DOS disks
ff9235
ff9235
%prep
ff9235
%setup -q -n %{name}-%{version}
ff9235
%patch0 -p1 -b .conf
ff9235
ff9235
%build
ff9235
autoreconf -fiv
ff9235
%configure --disable-floppyd
ff9235
make %{?_smp_mflags}
ff9235
ff9235
%install
ff9235
rm -rf $RPM_BUILD_ROOT
ff9235
mkdir -p $RPM_BUILD_ROOT/etc $RPM_BUILD_ROOT/%{_infodir}
ff9235
%makeinstall
ff9235
install -m644 mtools.conf $RPM_BUILD_ROOT/etc
ff9235
gzip -9f $RPM_BUILD_ROOT/%{_infodir}/*
ff9235
ff9235
# We aren't shipping this.
ff9235
find $RPM_BUILD_ROOT -name "floppyd*" -exec rm {} \;
ff9235
ff9235
# dir.gz is handled in %%post and %%preun sections
ff9235
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir.gz
ff9235
ff9235
ln -s mtools.5.gz %{buildroot}%{_mandir}/man5/mtools.conf.5.gz
ff9235
ff9235
%post
ff9235
if [ -f %{_infodir}/mtools.info ]; then
ff9235
    /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :;
ff9235
fi
ff9235
ff9235
%preun
ff9235
if [ "$1" -eq 0 ]; then
ff9235
    if [ -f %{_infodir}/mtools.info ]; then
ff9235
        /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :;
ff9235
    fi
ff9235
fi
ff9235
ff9235
%files
ff9235
%defattr(-,root,root)
ff9235
%config(noreplace) /etc/mtools.conf
ff9235
%{!?_licensedir:%global license %%doc}
ff9235
%license COPYING
ff9235
%doc README Release.notes
ff9235
%{_bindir}/*
ff9235
%{_mandir}/*/*
ff9235
%{_infodir}/mtools.info*
ff9235
ff9235
%changelog
f29626
* Tue Jun  7 2022 Pavel Cahyna <pcahyna@redhat.com> - 4.0.18-15
f29626
- Add dependency on glibc-gconv-extra
f29626
  mtools need codepage 850, which was split from glibc into a subpackage.
f29626
  (Fedora bug #2021637, RHEL bug #2073842)
f29626
ff9235
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.18-14
ff9235
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ff9235
ff9235
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.18-13
ff9235
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
ff9235
ff9235
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.18-12
ff9235
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ff9235
ff9235
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.18-11
ff9235
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ff9235
ff9235
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.18-10
ff9235
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ff9235
ff9235
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.18-9
ff9235
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ff9235
ff9235
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 4.0.18-8
ff9235
- Rebuilt for Fedora 23 Change
ff9235
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
ff9235
ff9235
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.18-7
ff9235
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
ff9235
ff9235
* Fri Jul 18 2014 Tom Callaway <spot@fedoraproject.org> - 4.0.18-6
ff9235
- fix license handling
ff9235
ff9235
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.18-5
ff9235
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ff9235
ff9235
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.18-4
ff9235
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ff9235
ff9235
* Tue Mar 26 2013 Adam Tkac <atkac redhat com> - 4.0.18-3
ff9235
- use bz2 compressed source instead of lz
ff9235
ff9235
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.18-2
ff9235
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ff9235
ff9235
* Thu Jan 10 2013 Adam Tkac <atkac redhat com> - 4.0.18-1
ff9235
- update to 4.0.18
ff9235
ff9235
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.17-3
ff9235
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ff9235
ff9235
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.17-2
ff9235
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ff9235
ff9235
* Wed Jun 29 2011 Adam Tkac <atkac redhat com> 4.0.17-1
ff9235
- update to 4.0.17
ff9235
ff9235
* Tue Apr 19 2011 Adam Tkac <atkac redhat com> 4.0.16-1
ff9235
- update to 4.0.16
ff9235
ff9235
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.15-2
ff9235
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ff9235
ff9235
* Wed Oct 20 2010 Adam Tkac <atkac redhat com> 4.0.15-1
ff9235
- update to 4.0.15
ff9235
ff9235
* Thu Mar 11 2010 Jan Görig <jgorig redhat com> 4.0.13-2
ff9235
- added symlink to config manpage
ff9235
ff9235
* Mon Mar 01 2010 Adam Tkac <atkac redhat com> 4.0.13-1
ff9235
- update to 4.0.13
ff9235
ff9235
* Tue Feb 23 2010 Adam Tkac <atkac redhat com> 4.0.12-2
ff9235
- change license to GPLv3+
ff9235
ff9235
* Tue Nov 10 2009 Adam Tkac <atkac redhat com> 4.0.12-1
ff9235
- update to 4.0.12
ff9235
ff9235
* Tue Sep 01 2009 Adam Tkac <atkac redhat com> 4.0.11-1
ff9235
- update to 4.0.11
ff9235
ff9235
* Tue Aug 11 2009 Adam Tkac <atkac redhat com> 4.0.10-4
ff9235
- fix installation with --excludedocs (#515932)
ff9235
ff9235
* Tue Aug 11 2009 Adam Tkac <atkac redhat com> 4.0.10-3
ff9235
- correct source URL
ff9235
ff9235
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.10-2
ff9235
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ff9235
ff9235
* Tue Apr 04 2009 Adam Tkac <atkac redhat com> 4.0.10-1
ff9235
- update to 4.0.10
ff9235
ff9235
* Mon Mar 09 2009 Adam Tkac <atkac redhat com> 4.0.9-1
ff9235
- updated to 4.0.9
ff9235
- merged mtools-3.9.7-bigdisk.patch to config patch
ff9235
- mtools400-rh480112.patch merged to upstream
ff9235
ff9235
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.0-4
ff9235
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
ff9235
ff9235
* Wed Jan 21 2009 Adam Tkac <atkac redhat com> 4.0.0-3
ff9235
- fixed off-by-two error in unix_name function (#480112)
ff9235
ff9235
* Mon Jan 12 2009 Adam Tkac <atkac redhat com> 4.0.0-2
ff9235
- don't ship infodir/dir.gz (#478322)
ff9235
ff9235
* Mon Dec 01 2008 Adam Tkac <atkac redhat com> 4.0.0-1
ff9235
- updated to 4.0.0
ff9235
ff9235
* Wed Nov 19 2008 Adam Tkac <atkac redhat com> 4.0.0-0.1.pre2
ff9235
- updated to 4.0.0_pre2
ff9235
ff9235
* Tue Nov 11 2008 Adam Tkac <atkac redhat com> 4.0.0-0.1.pre1
ff9235
- updated to 4.0.0_pre1
ff9235
ff9235
* Fri Oct 03 2008 Adam Tkac <atkac redhat com> 3.9.11-5
ff9235
- mtools-3.9.9-noargs.patch and mtools-3.9.6-paths.patch are not needed
ff9235
- rebuild (#465040)
ff9235
ff9235
* Tue Feb 19 2008 Adam Tkac <atkac redhat com> 3.9.11-4
ff9235
- fixed building on x86_64 (build with --disable-floppyd)
ff9235
ff9235
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.9.11-3.1
ff9235
- Autorebuild for GCC 4.3
ff9235
ff9235
* Mon Jan 14 2008 Adam Tkac <atkac redhat com> 3.9.11-2.1
ff9235
- corrected post and preun sections (#428478)
ff9235
- fix rpmlint errors
ff9235
- start use autoreconf
ff9235
ff9235
* Wed Aug 22 2007 Adam Tkac <atkac redhat com> 3.9.11-2
ff9235
- rebuild (BuildID feature)
ff9235
- change license to GPLv2+
ff9235
ff9235
* Wed May 31 2007 Adam Tkac <atkac redhat com> 3.9.11-1
ff9235
- updated to latest upstream (3.9.11)
ff9235
ff9235
* Fri May 11 2007 Adam Tkac <atkac redhat com> 3.9.10-7
ff9235
- in the end script has been completely rewriten by <skasal@redhat.com>
ff9235
ff9235
* Fri May 11 2007 Adam Tkac <atkac redhat com> 3.9.10-6
ff9235
- some minor changes in sh patch (changed sh to bash)
ff9235
ff9235
* Fri May 11 2007 Adam Tkac <atkac redhat com> 3.9.10-5
ff9235
- patch to #239741 by Matej Cepl <mcepl@redhat.com>
ff9235
  (rewrites /usr/bin/amuFormat.sh to /bin/sh)
ff9235
ff9235
* Tue Feb 05 2007 Adam Tkac <atkac redhat com> 3.9.10-4
ff9235
- fixed some unstandard statements in spec file (#226162)
ff9235
ff9235
* Mon Jan 22 2007 Adam Tkac <atkac redhat com> 3.9.10-3
ff9235
- Resolves: #223712
ff9235
- applied Ville Skytta's (ville.skytta "antispam" iki.fi) patch
ff9235
  (install-info scriptlet failures)
ff9235
ff9235
* Wed Aug 09 2006 Jitka Kudrnacova <jkudrnac@redhat.com> - 3.9.10-2
ff9235
- rebuilt to prevent corruption on the 13th character (#195528)
ff9235
ff9235
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3.9.10-1.2.2
ff9235
- rebuild
ff9235
ff9235
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 3.9.10-1.2.1
ff9235
- bump again for double-long bug on ppc(64)
ff9235
ff9235
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 3.9.10-1.2
ff9235
- rebuilt for new gcc4.1 snapshot and glibc changes
ff9235
ff9235
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
ff9235
- rebuilt
ff9235
ff9235
* Wed Oct 19 2005 Tim Waugh <twaugh@redhat.com> 3.9.10-1
ff9235
- 3.9.10.
ff9235
ff9235
* Mon Mar 21 2005 Tim Waugh <twaugh@redhat.com> 3.9.9-13
ff9235
- Fixed memset() usage bug.
ff9235
ff9235
* Tue Mar 15 2005 Tim Waugh <twaugh@redhat.com> 3.9.9-12
ff9235
- Fix build (bug #151135).
ff9235
ff9235
* Wed Mar  2 2005 Tim Waugh <twaugh@redhat.com> 3.9.9-11
ff9235
- Rebuild for new GCC.
ff9235
ff9235
* Fri Dec 10 2004 Tim Waugh <twaugh@redhat.com> 3.9.9-10
ff9235
- Fixed mpartition --help output (bug #65293).
ff9235
ff9235
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
ff9235
- rebuilt
ff9235
ff9235
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
ff9235
- rebuilt
ff9235
ff9235
* Thu Jan  8 2004 Tim Waugh <twaugh@redhat.com> 3.9.9-7
ff9235
- Fix mistaken use of '&' instead of '&&'.
ff9235
ff9235
* Tue Dec  9 2003 Tim Waugh <twaugh@redhat.com> 3.9.9-6
ff9235
- Remove last (incorrect) change.
ff9235
ff9235
* Tue Dec  9 2003 Tim Waugh <twaugh@redhat.com> 3.9.9-5
ff9235
- Fix mistaken variable assignment in comparison (bug #110823).
ff9235
ff9235
* Thu Nov 27 2003 Tim Waugh <twaugh@redhat.com>
ff9235
- Build requires texinfo (bug #111000).
ff9235
ff9235
* Sat Oct 25 2003 Tim Waugh <twaugh@redhat.com> 3.9.9-4
ff9235
- Rebuilt.
ff9235
ff9235
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
ff9235
- rebuilt
ff9235
ff9235
* Thu May 22 2003 Tim Waugh <twaugh@redhat.com> 3.9.9-2
ff9235
- Fix mcomp with no arguments (bug #91372).
ff9235
ff9235
* Tue Mar 18 2003 Tim Waugh <twaugh@redhat.com> 3.9.9-1
ff9235
- 3.9.9.
ff9235
- Add config lines for hpoj photo-card access on drive P:.
ff9235
ff9235
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
ff9235
- rebuilt
ff9235
ff9235
* Wed Nov 20 2002 Tim Powers <timp@redhat.com>
ff9235
- rebuilt in current collinst
ff9235
ff9235
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
ff9235
- automated rebuild
ff9235
ff9235
* Thu May 23 2002 Tim Powers <timp@redhat.com>
ff9235
- automated rebuild
ff9235
ff9235
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
ff9235
- automated rebuild
ff9235
ff9235
* Sun Jun 24 2001 Bernhard Rosenkraenzer <bero@redhat.com> 3.9.8-2
ff9235
- Add patch from maintainer
ff9235
ff9235
* Mon May 28 2001 Bernhard Rosenkraenzer <bero@redhat.com> 3.9.8-1
ff9235
- 3.9.8 final
ff9235
ff9235
* Mon May 21 2001 Bernhard Rosenkraenzer <bero@redhat.com> 3.9.8-0.pre1.0
ff9235
- 3.9.8pre1
ff9235
ff9235
* Wed May 16 2001 Bernhard Rosenkraenzer <bero@redhat.com> 3.9.7-6
ff9235
- Fix support for disks > 1.44 MB (#40857)
ff9235
ff9235
* Tue May  8 2001 Bernhard Rosenkraenzer <bero@redhat.com> 3.9.7-5
ff9235
- Update to 20010507
ff9235
ff9235
* Wed Jan 10 2001 Bernhard Rosenkraenzer <bero@redhat.com>
ff9235
- Apply the author's current patches, fixes among other things
ff9235
  ZIP drive support and doesn't crash when trying to access a BSD disk
ff9235
ff9235
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
ff9235
- automatic rebuild
ff9235
ff9235
* Sat Jun 17 2000 Trond Eivind Glomsrod <teg@redhat.com>
ff9235
- specify ownership
ff9235
ff9235
* Wed Jun 07 2000 Trond Eivind Glomsrod <teg@redhat.com>
ff9235
- Version 3.9.7
ff9235
- use %%{_mandir}, %%{_makeinstall}, %%configure, %%makeinstall
ff9235
  and %%{_tmppath}
ff9235
ff9235
* Wed Feb 09 2000 Cristian Gafton <gafton@redhat.com>
ff9235
- get rid of mtools.texi as a doc file (we have the info file)
ff9235
- fix config file so mtools work (#9264)
ff9235
- fix references to the config file to be /etc/mtools.conf
ff9235
ff9235
* Fri Feb  4 2000 Bill Nottingham <notting@redhat.com>
ff9235
- expunge floppyd
ff9235
ff9235
* Thu Feb 03 2000 Cristian Gafton <gafton@redhat.com>
ff9235
- man pages are compressed
ff9235
- fix description
ff9235
- version 3.9.6
ff9235
ff9235
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
ff9235
- auto rebuild in the new build environment (release 5)
ff9235
ff9235
* Thu Mar 18 1999 Cristian Gafton <gafton@redhat.com>
ff9235
- patch to make the texi sources compile
ff9235
- fix the spec file group and description
ff9235
- fixed floppy drive sizes
ff9235
ff9235
* Tue Dec 29 1998 Cristian Gafton <gafton@redhat.com>
ff9235
- build for 6.0
ff9235
- fixed invalid SAMPLE_FILE configuration file
ff9235
ff9235
* Wed Sep 02 1998 Michael Maher <mike@redhat.com>
ff9235
- Built package for 5.2.
ff9235
- Updated Source to 3.9.1.
ff9235
- Cleaned up spec file.
ff9235
ff9235
* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
ff9235
- translations modified for de, fr, tr
ff9235
ff9235
* Fri Apr 10 1998 Cristian Gafton <gafton@redhat.com>
ff9235
- updated to 3.8
ff9235
ff9235
* Tue Oct 21 1997 Otto Hammersmith
ff9235
- changed buildroot to /var/tmp, rather than /tmp
ff9235
- use install-info
ff9235
ff9235
* Mon Jul 21 1997 Erik Troan <ewt@redhat.com>
ff9235
- built against glibc
ff9235
ff9235
* Thu Apr 17 1997 Erik Troan <ewt@redhat.com>
ff9235
- Changed sysconfdir to be /etc
ff9235
ff9235
* Mon Apr 14 1997 Michael Fulbright <msf@redhat.com>
ff9235
- Updated to 3.6