1
0
forked from pool/mtools
mtools/mtools.spec
Petr Gajdos 08d21e2e53 Accepting request 649021 from home:mloviska:branches:Base:System
- Update to 4.0.20:
	* initialize directory entries to 0
    * bad message "Too few sectors" replaced with "Too many sectors"
    * apostrophe in mlabel no longer causes generation of long entry
    * option to fake system date for file creation using the 
	SOURCE_DATE_EPOCH environment variables
    * can now be compiled with "clang" compiler
    * fallback function for strndup, for those platforms that don't have it
    * fixed a number of -Wextra warnings
    * new compressed archive formats for uz/lz
    * allow to specify number of reserved sectors for FAT32.
    * file/device locking with timeout (rather than immediate failure)
    * fixed support for BPB-less legacy formats.
    * removed check that disk must be an integer number of tracks.
	* removed .eh/.oh macros from manual pages

OBS-URL: https://build.opensuse.org/request/show/649021
OBS-URL: https://build.opensuse.org/package/show/Base:System/mtools?expand=0&rev=51
2018-11-16 08:08:18 +00:00

106 lines
2.9 KiB
RPMSpec

#
# spec file for package mtools
#
# Copyright (c) 2018 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.20
Release: 0
Summary: Access Files on an MS-DOS File System
License: GPL-3.0-or-later
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}-conf.diff
Patch1: %{name}-autoconf.diff
Patch3: %{name}-aliasing.diff
Patch4: %{name}-fat-bits.diff
Patch5: %{name}-prototypes.diff
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
Requires(pre): %{install_info_prereq}
Requires: glibc-locale
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: makeinfo
BuildRequires: texinfo
%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 doc
Summary: Access Files on an MS-DOS File System
License: GPL-3.0-or-later AND GFDL-1.3-only
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 \
--disable-floppyd
make -j1 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 README*
%license COPYING
%doc %{_mandir}/man?*/*
%exclude %{_mandir}/man?*/f*
%doc %{_infodir}/mtools.info*
%{_bindir}/*
%exclude %{_bindir}/f*
%files doc
%defattr(-,root,root)
%doc *.pdf
%changelog