- Versioned obsoletes/provides (bug #226234).

- Created %check section (bug #226234).
- Avoid %makeinstall (bug #226234).
- Fixed defattr declaration (bug #226234).
This commit is contained in:
Tim Waugh 2007-12-03 12:32:05 +00:00
parent 2ee153bb94
commit b6989e0e4e

View File

@ -1,15 +1,15 @@
Summary: A collection of programs for manipulating patch files Summary: A collection of programs for manipulating patch files
Name: patchutils Name: patchutils
Version: 0.2.31 Version: 0.2.31
Release: 3%{?dist} Release: 4%{?dist}
License: GPLv2+ License: GPLv2+
Group: Applications/System Group: Applications/System
URL: http://cyberelk.net/tim/patchutils/ URL: http://cyberelk.net/tim/patchutils/
Source0: http://cyberelk.net/tim/data/patchutils/stable/%{name}-%{version}.tar.bz2 Source0: http://cyberelk.net/tim/data/patchutils/stable/%{name}-%{version}.tar.bz2
Patch0: patchutils-author.patch Patch0: patchutils-author.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Obsoletes: interdiff Obsoletes: interdiff <= 0.0.10
Provides: interdiff Provides: interdiff = 0.0.10
BuildRequires: xmlto BuildRequires: xmlto
# We only need xmlto if we are patching the documentation. # We only need xmlto if we are patching the documentation.
@ -28,23 +28,31 @@ patches, and simply listing the files modified by a patch.
%build %build
touch doc/patchutils.xml touch doc/patchutils.xml
%configure %configure
make make %{?smp_mflags}
%check
make check make check
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
%makeinstall make DESTDIR=%{buildroot} install
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
%files %files
%defattr(-,root,root) %defattr(-,root,root,-)
%doc AUTHORS ChangeLog README COPYING BUGS NEWS %doc AUTHORS ChangeLog README COPYING BUGS NEWS
%{_bindir}/* %{_bindir}/*
%{_mandir}/*/* %{_mandir}/*/*
%changelog %changelog
* Mon Dec 3 2007 Tim Waugh <twaugh@redhat.com> 0.2.31-4
- Versioned obsoletes/provides (bug #226234).
- Created %%check section (bug #226234).
- Avoid %%makeinstall (bug #226234).
- Fixed defattr declaration (bug #226234).
* Wed Aug 29 2007 Tim Waugh <twaugh@redhat.com> 0.2.31-3 * Wed Aug 29 2007 Tim Waugh <twaugh@redhat.com> 0.2.31-3
- Added dist tag. - Added dist tag.
- Better buildroot tag. - Better buildroot tag.