# # spec file for package mtools # # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: mtools Version: 4.0.18 Release: 0 Summary: Access Files on an MS-DOS File System License: GPL-3.0+ Group: System/Filesystems Url: http://mtools.linux.lu/ Source0: http://ftp.gnu.org/gnu/mtools/%{name}-%{version}.tar.bz2 Source1: http://ftp.gnu.org/gnu/mtools/%{name}-%{version}.tar.bz2.sig Source2: %{name}.keyring Patch0: %{name}-%{version}-conf.diff Patch1: %{name}-%{version}-autoconf.diff Patch3: %{name}-%{version}-aliasing.diff Patch4: %{name}-%{version}-fat-bits.diff Patch5: %{name}-%{version}-prototypes.diff BuildRequires: autoconf BuildRequires: automake BuildRequires: libXau-devel BuildRequires: libtool BuildRequires: xorg-x11-devel Requires(pre): %{install_info_prereq} Requires: glibc-locale BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} > 1220 BuildRequires: makeinfo BuildRequires: texinfo %else BuildRequires: texlive-latex %endif %description Mtools allows uncomplicated access to an MS-DOS file system on disk without mounting it. It includes commands for working with MS-DOS files: mdir, mcd, mcopy, and mformat. XDF support for OS/2 is also provided. %package floppyd Summary: Floppy daemon for remote access to floppy drive License: GPL-3.0+ Group: System/Filesystems %description floppyd Floppyd is used as a server to grant access to the floppy drive to clients running on a remote machine, just as an X server grants access to the display to remote clients. %package doc Summary: Access Files on an MS-DOS File System License: GPL-3.0+ and GFDL-1.3 Group: System/Filesystems Requires: %{name} = %{version} %description doc Mtools allows uncomplicated access to an MS-DOS file system on disk without mounting it. It includes commands for working with MS-DOS files: mdir, mcd, mcopy, and mformat. XDF support for OS/2 is also provided. %prep %setup -q %patch0 %patch1 %patch3 %patch4 %patch5 %build autoreconf -fi %configure \ --includedir=%{_prefix}/src/linux/include make %{?_smp_mflags} all info pdf %install install -d -m 755 %{buildroot}%{_sysconfdir} make DESTDIR=%{buildroot} install --jobs 1 cp -p mtools.conf %{buildroot}%{_sysconfdir} %post %install_info --info-dir=%{_infodir} %{_infodir}/mtools.info.gz %postun %install_info_delete --info-dir=%{_infodir} %{_infodir}/mtools.info.gz %files %defattr(-,root,root) %config %{_sysconfdir}/mtools.conf %doc Release.notes NEWS COPYING README* %doc %{_mandir}/man?*/* %exclude %{_mandir}/man?*/f* %doc %{_infodir}/mtools.info* %{_bindir}/* %exclude %{_bindir}/f* %files floppyd %defattr(-,root,root) %doc %{_mandir}/man?*/f* %{_bindir}/f* %files doc %defattr(-,root,root) %doc *.pdf %changelog