dosfstools/dosfstools.spec
Petr Gajdos 7c959e6529 - update to 3.0.18:
* Adding initial i18n support for manpages with po4a.
  * Renaming tools to sane namespace and keeping legacy symlinks in place.
    | dosfslabel becomes fatlabel,
    | dosfsck becomes fsck.fat,
    | and mkdosfs becomes mkfs.fat.
  * Correcting spelling typo in boot.c.
  * dosfslabel: Do not read beyond string length (Closes: #709587).
- refreshed both dosfstools-suse-dirs.patch and 
  ppc-reserved-sectors-fix.patch
- added dosfstools-system_id-overflow.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/dosfstools?expand=0&rev=40
2013-06-11 09:48:56 +00:00

70 lines
2.1 KiB
RPMSpec

#
# spec file for package dosfstools
#
# Copyright (c) 2013 SUSE LINUX Products 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: dosfstools
Provides: dosfsck
Provides: mkdosfs
Summary: Utilities for Making and Checking MS-DOS FAT File Systems on Linux
License: GPL-3.0+
Group: System/Filesystems
Version: 3.0.18
Release: 0
Url: http://daniel-baumann.ch/software/dosfstools/
Source: http://daniel-baumann.ch/files/software/dosfstools/dosfstools-%{version}.tar.xz
Patch0: %{name}-suse-dirs.patch
# sent 2013-06-11 upstream:
Patch1: %{name}-system_id-overflow.patch
# workaround for
# https://bugs.launchpad.net/ubuntu/+source/dosfstools/+bug/746262
Patch100: ppc-reserved-sectors-fix.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Supplements: filesystem(vfat)
%description
The dosfstools package includes the mkdosfs and dosfsck utilities,
which respectively make and check MS-DOS FAT file systems on hard
drives or on floppies.
%prep
%setup
%patch0 -p1
%patch1 -p1
%patch100 -p1
%build
make CC="%__cc" OPTFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE $RPM_OPT_FLAGS" %{?_smp_mflags}
%install
%makeinstall SBINDIR=%{_sbindir}
#UsrMerge
mkdir $RPM_BUILD_ROOT/sbin
ln -sf %{_sbindir}/{dosfsck,dosfslabel,mkdosfs,fsck.msdos,mkfs.msdos} $RPM_BUILD_ROOT/sbin
#EndUsrMerge
%files
%defattr(-,root,root)
%doc %{_docdir}/%{name}
#UsrMerge
/sbin/*
#EndUsrMerge
%{_sbindir}/*
%{_mandir}/man8/*.gz
%{_mandir}/de/man8/*.gz
%changelog