2007-01-16 00:10:35 +01:00
|
|
|
#
|
2010-09-13 13:50:36 +02:00
|
|
|
# spec file for package dosfstools (Version 3.0.10)
|
2007-01-16 00:10:35 +01:00
|
|
|
#
|
2010-02-05 17:00:07 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:10:35 +01:00
|
|
|
#
|
2009-06-18 17:16:36 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:10:35 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-06-24 22:36:57 +02:00
|
|
|
|
2007-01-16 00:10:35 +01:00
|
|
|
Name: dosfstools
|
|
|
|
Provides: mkdosfs dosfsck
|
2010-02-05 17:00:07 +01:00
|
|
|
License: GPLv3
|
2007-01-16 00:10:35 +01:00
|
|
|
Group: System/Filesystems
|
2008-06-24 22:36:57 +02:00
|
|
|
AutoReqProv: on
|
2007-01-16 00:10:35 +01:00
|
|
|
Summary: Utilities for Making and Checking MS-DOS FAT File Systems on Linux
|
2010-09-13 13:50:36 +02:00
|
|
|
Version: 3.0.10
|
2010-02-05 17:00:07 +01:00
|
|
|
Release: 1
|
|
|
|
Url: http://freshmeat.net/projects/dosfstools
|
|
|
|
Source: %{name}_%{version}.orig.tar.bz2
|
2007-01-16 00:10:35 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-04-04 20:41:44 +02:00
|
|
|
Supplements: filesystem(vfat)
|
2007-01-16 00:10:35 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Dave Hudson <dave@humbug.demon.co.uk>
|
|
|
|
Werner Almesberger <werner.almesberger@lrc.di.epfl.ch>
|
|
|
|
Roman Hodek <Roman.Hodek@informatik.uni-erlangen.de>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup
|
|
|
|
|
|
|
|
%build
|
|
|
|
make OPTFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE $RPM_OPT_FLAGS"
|
|
|
|
|
|
|
|
%install
|
|
|
|
# directories
|
|
|
|
install -d $RPM_BUILD_ROOT{/sbin,%{_mandir}/man8}
|
|
|
|
# binaries
|
2010-02-05 17:00:07 +01:00
|
|
|
install -m755 mkdosfs $RPM_BUILD_ROOT/sbin/
|
|
|
|
install -m755 dosfsck $RPM_BUILD_ROOT/sbin/
|
2007-01-16 00:10:35 +01:00
|
|
|
# alternative names
|
|
|
|
ln -sf mkdosfs $RPM_BUILD_ROOT/sbin/mkfs.msdos
|
|
|
|
ln -sf dosfsck $RPM_BUILD_ROOT/sbin/fsck.msdos
|
|
|
|
ln -sf mkdosfs $RPM_BUILD_ROOT/sbin/mkfs.vfat
|
|
|
|
ln -sf dosfsck $RPM_BUILD_ROOT/sbin/fsck.vfat
|
|
|
|
# man pages
|
2010-02-05 17:00:07 +01:00
|
|
|
install -m 644 man/mkdosfs.8 $RPM_BUILD_ROOT%{_mandir}/man8/
|
|
|
|
install -m 644 man/dosfsck.8 $RPM_BUILD_ROOT%{_mandir}/man8/
|
|
|
|
install -m 644 man/dosfslabel.8 $RPM_BUILD_ROOT%{_mandir}/man8/
|
2007-01-16 00:10:35 +01:00
|
|
|
# man pages for alternative names
|
|
|
|
ln -sf mkdosfs.8.gz $RPM_BUILD_ROOT%{_mandir}/man8/mkfs.msdos.8.gz
|
|
|
|
ln -sf dosfsck.8.gz $RPM_BUILD_ROOT%{_mandir}/man8/fsck.msdos.8.gz
|
|
|
|
ln -sf mkdosfs.8.gz $RPM_BUILD_ROOT%{_mandir}/man8/mkfs.vfat.8.gz
|
|
|
|
ln -sf dosfsck.8.gz $RPM_BUILD_ROOT%{_mandir}/man8/fsck.vfat.8.gz
|
|
|
|
# documentation
|
2010-02-05 17:00:07 +01:00
|
|
|
install -d $RPM_BUILD_ROOT/%{_docdir}/%{name}/
|
|
|
|
install -m644 ChangeLog COPYING doc/* $RPM_BUILD_ROOT/%{_docdir}/%{name}/
|
2007-01-16 00:10:35 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{_docdir}/%{name}
|
|
|
|
/sbin/*
|
|
|
|
%{_mandir}/man8/*.gz
|
|
|
|
|
2007-04-04 20:41:44 +02:00
|
|
|
%changelog
|