File wiggle.spec of Package wiggle

#
# spec file for package wiggle (Version 0.6)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           wiggle
Summary:        A Tool for Applying Patches with Conflicts
Version:        0.6
Release:        115
License:        GPL
Group:          Productivity/Text/Utilities
URL:            http://www.cse.unsw.edu.au/~neilb/source/wiggle/
Source0:        http://www.cse.unsw.edu.au/~neilb/source/wiggle/%{name}-%{version}.tar.gz
Patch0:         NoQuietTime.diff
Patch1:         SpecFile.diff
Patch2:         Recommit.diff
Patch3:         ExtractFix.diff
Patch4:         conflict_end-2.diff
Patch5:         remap-segfault.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Wiggle is a program for applying patches that 'patch' cannot apply due
to conflicting changes in the original.

Wiggle will always apply all changes in the patch to the original. If
it cannot find a way to cleanly apply a patch, it inserts it in the
original in a manner similar to 'merge,' and reports an unresolvable
conflict.



Authors:
--------
    Neil Brown <neilb@cse.unsw.edu.au>

%prep
%setup -q
%patch0
%patch1
%patch2
%patch3
%patch4 -p1
%patch5 -p1

%build
make BINDIR=/usr/bin \
     MANDIR=%{_mandir} MAN1DIR=%{_mandir}/man1 \
     CFLAGS="$RPM_OPT_FLAGS" \
     wiggle
     #MAN5DIR=%{_mandir}/man5

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man{1,5}
make BINDIR=$RPM_BUILD_ROOT/usr/bin \
     MANDIR=$RPM_BUILD_ROOT%{_mandir} \
     MAN1DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
     install
     
     # MAN5DIR=$RPM_BUILD_ROOT%{_mandir}/man5

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
/usr/bin/wiggle
%doc %{_mandir}/man1/wiggle.1*
%doc ANNOUNCE TODO notes
#%doc p p.help

%changelog -n wiggle
* Mon Feb 13 2006 - nfbrown@novell.com
- remap-segfault.diff: Fix a segmentation fault in function remap
  (147977).
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Oct 31 2005 - dmueller@suse.de
- don't build as root
* Sat Mar 20 2004 - agruen@suse.de
- Add fix from Chris Mason.
* Mon Jul 14 2003 - agruen@suse.de
- Initial version.
openSUSE Build Service is sponsored by