- Fixed buildroot (bug #225695).

- Build should not require gzip or bzip2 as these are exceptions (bug
    #225695).
- Added SMP make flags (bug #225695).
- Avoid makeinstall macro (bug #225695).
- Better defattr (bug #225695).
- Fixed summary (bug #225695).
- Avoid macros in changelog (bug #225695).
- Resolves: rhbz#225695 rhbz#225695 rhbz#225695 rhbz#225695 rhbz#225695
    rhbz#225695 rhbz#225695
This commit is contained in:
Tim Waugh 2007-03-06 11:21:05 +00:00
parent 195b317a5d
commit 7c869c97b4

View File

@ -1,15 +1,13 @@
Summary: A utility which provides statistics based on the output of diff. Summary: A utility which provides statistics based on the output of diff
Name: diffstat Name: diffstat
Version: 1.43 Version: 1.43
Release: 1%{?dist} Release: 2%{?dist}
Group: Development/Tools Group: Development/Tools
License: distributable License: distributable
URL: http://invisible-island.net/diffstat URL: http://invisible-island.net/diffstat
# Note that the upstream tarball is unversioned, just %{name}.tar.gz
Source: ftp://invisible-island.net/diffstat/%{name}-%{version}.tar.gz Source: ftp://invisible-island.net/diffstat/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-root BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# Autoconf tests check for these.
BuildRequires: gzip, bzip2
%description %description
The diff command compares files line by line. Diffstat reads the The diff command compares files line by line. Diffstat reads the
@ -25,21 +23,30 @@ diff command's output. You'll need to also install diffutils.
%build %build
%configure %configure
make make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%makeinstall mandir=$RPM_BUILD_ROOT%{_mandir} make DESTDIR=$RPM_BUILD_ROOT install
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root) %defattr(-,root,root,-)
%{_bindir}/diffstat %{_bindir}/diffstat
%{_mandir}/*/* %{_mandir}/*/*
%changelog %changelog
* Tue Mar 6 2007 Tim Waugh <twaugh@redhat.com> 1.43-2
- Fixed buildroot (bug #225695).
- Build should not require gzip or bzip2 as these are exceptions (bug #225695).
- Added SMP make flags (bug #225695).
- Avoid makeinstall macro (bug #225695).
- Better defattr (bug #225695).
- Fixed summary (bug #225695).
- Avoid macros in changelog (bug #225695).
* Thu Jan 11 2007 Tim Waugh <twaugh@redhat.com> 1.43-1 * Thu Jan 11 2007 Tim Waugh <twaugh@redhat.com> 1.43-1
- 1.43. Fixes bug #187350. No longer need compress patch. - 1.43. Fixes bug #187350. No longer need compress patch.
@ -108,7 +115,7 @@ rm -rf $RPM_BUILD_ROOT
* Wed May 31 2000 Ngo Than <than@redhat.de> * Wed May 31 2000 Ngo Than <than@redhat.de>
- rebuild for 7.0 - rebuild for 7.0
- put man page in /usr/share/man/* - put man page in /usr/share/man/*
- use %configure - use %%configure
- fix makefile.in - fix makefile.in
- cleanup specfile - cleanup specfile