---- diffutils/src/cmp.c.orig 2012-06-05 17:06:34.104942215 +0800
-+++ diffutils/src/cmp.c 2012-06-05 17:07:08.801945433 +0800
-@@ -324,12 +324,15 @@
+diff -up diffutils-2.8.1/src/cmp.c.cmp-s-empty diffutils-2.8.1/src/cmp.c
+--- diffutils-2.8.1/src/cmp.c.cmp-s-empty 2002-04-05 21:37:31.000000000 +0100
++++ diffutils-2.8.1/src/cmp.c 2010-06-25 14:56:08.464802321 +0100
+@@ -316,12 +316,15 @@ main (int argc, char **argv)
/* If only a return code is needed,
and if both input descriptors are associated with plain files,
Name: diffutils
Version: 3.0
-Release: 1
+Release: 3
License: GPLv2+
Summary: A GNU collection of diff utilities
Url: http://www.gnu.org/software/diffutils/diffutils.html
Group: Applications/Text
-Source: %{name}-%{version}.tar.gz
-Source1001: packaging/diffutils.manifest
+Source: ftp://ftp.gnu.org/gnu/diffutils/diffutils-%{version}.tar.xz
+Source1001: %{name}.manifest
Patch0: diffutils-cmp-s-empty.patch
%description
%prep
%setup -q
-%patch0 -p1
+%patch0 -p1
%build
cp %{SOURCE1001} .
%configure --disable-nls
-make PR_PROGRAM=%{_bindir}/pr
+make %{?_smp_mflags} PR_PROGRAM=%{_bindir}/pr
%install
%make_install
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/license
+for keyword in LICENSE COPYING COPYRIGHT;
+do
+ for file in `find %{_builddir} -name $keyword`;
+ do
+ cat $file >> $RPM_BUILD_ROOT%{_datadir}/license/%{name};
+ echo "";
+ done;
+done
+
%clean
rm -rf %{buildroot}
-%docs_package
+%docs_package
-%files
-%manifest diffutils.manifest
+%files
%defattr(-,root,root,-)
+%manifest %{name}.manifest
%doc NEWS README COPYING
+%{_datadir}/license/%{name}
%{_bindir}/*
%{_mandir}/*/*
%{_infodir}/diff.info*gz