- fix the previous commit

- omit the most obsolete documents
- after writing the label, exit with exit code 0 (#468050)
This commit is contained in:
Štěpán Kasal 2009-01-30 13:50:37 +00:00
parent ca5d993fbf
commit 887aa47fa2
3 changed files with 51 additions and 4 deletions

16
dosfstools-exit.patch Normal file
View File

@ -0,0 +1,16 @@
2009-01-30 Stepan Kasal <skasal@redhat.com>
* src/dosfslabel.c (main): After writing the label, exit code
should be 0.
diff -up dosfstools-3.0.1/src/dosfslabel.c.exit dosfstools-3.0.1/src/dosfslabel.c
--- dosfstools-3.0.1/src/dosfslabel.c.exit 2008-09-28 12:06:37.000000000 +0200
+++ dosfstools-3.0.1/src/dosfslabel.c 2009-01-30 14:28:47.000000000 +0100
@@ -122,5 +122,6 @@ int main(int argc, char *argv[])
}
write_label(&fs, label);
- return fs_close(rw) ? 1 : 0;
+ fs_close(rw);
+ return 0;
}

View File

@ -0,0 +1,20 @@
2009-01-30 Stepan Kasal <skasal@redhat.com>
* Makefile: Do not clobber time stamps of doc files.
--- dosfstools-3.0.1/Makefile.p 2008-09-28 12:06:37.000000000 +0200
+++ dosfstools-3.0.1/Makefile 2009-01-30 12:25:59.000000000 +0100
@@ -58,11 +58,11 @@
install-doc:
install -d -m 0755 $(DESTDIR)/$(DOCDIR)/dosfstools
- install -m 0644 doc/* $(DESTDIR)/$(DOCDIR)/dosfstools
+ install -p -m 0644 doc/* $(DESTDIR)/$(DOCDIR)/dosfstools
install-man:
install -d -m 0755 $(DESTDIR)/$(MANDIR)/man8
- install -m 0644 man/*.8 $(DESTDIR)/$(MANDIR)/man8
+ install -p -m 0644 man/*.8 $(DESTDIR)/$(MANDIR)/man8
ln -sf dosfsck.8 $(DESTDIR)/$(MANDIR)/man8/fsck.msdos.8
ln -sf dosfsck.8 $(DESTDIR)/$(MANDIR)/man8/fsck.vfat.8

View File

@ -1,7 +1,7 @@
Name: dosfstools
Summary: Utilities for making and checking MS-DOS FAT filesystems on Linux
Version: 3.0.1
Release: 2%{?dist}
Release: 3%{?dist}
License: GPLv3+
Group: Applications/System
Source0: http://www.daniel-baumann.ch/software/dosfstools/%{name}-%{version}.tar.gz
@ -10,6 +10,11 @@ Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Obsoletes: mkdosfs-ygg
Provides: mkdosfs-ygg = %{version}
# Mailed to Daniel Baumann
Patch0: dosfstools-install-p.patch
# Mailed to Daniel Baumann
Patch1: dosfstools-exit.patch
%description
The dosfstools package includes the mkdosfs and dosfsck utilities,
which respectively make and check MS-DOS FAT filesystems on hard
@ -17,25 +22,31 @@ drives or on floppies.
%prep
%setup -q
sed -i 's,\$(DOCDIR)/%{name}$,&-%{version},' Makefile
%patch0 -p1
%patch1 -p1
%build
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} install PREFIX=%{_prefix} SBINDIR=/sbin
make DESTDIR=%{buildroot} install-bin install-man PREFIX=%{_prefix} SBINDIR=/sbin
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc ChangeLog COPYING
%doc ChangeLog COPYING doc/*-2.x
/sbin/*
%{_mandir}/man8/*
%changelog
* Fri Jan 30 2009 Stepan Kasal <skasal@redhat.com> - 3.0.1-3
- fix the previous commit
- omit the most obsolete documents
- after writing the label, exit with exit code 0 (#468050)
* Fri Jan 30 2009 Stepan Kasal <skasal@redhat.com> - 3.0.1-2
- install all the documentation to the usual docdir (#225707)