diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fc4c50f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/wiggle-1.1.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/sources b/sources new file mode 100644 index 0000000..cd73a34 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (wiggle-1.1.tar.gz) = d229d29065df1cd991d013f1dfe41a02471fe2881db98a2d9cbe15310642d42f1f0b5a70dd63a201af7e1d07b8dd53351a7e60afb323c7610efbc61ea714fe7d diff --git a/wiggle-fix-build.patch b/wiggle-fix-build.patch new file mode 100644 index 0000000..d493304 --- /dev/null +++ b/wiggle-fix-build.patch @@ -0,0 +1,25 @@ +diff -up wiggle-1.1/Makefile.build wiggle-1.1/Makefile +--- wiggle-1.1/Makefile.build 2017-09-28 08:37:04.000000000 -0400 ++++ wiggle-1.1/Makefile 2018-02-21 14:04:33.644637920 -0500 +@@ -4,9 +4,10 @@ + #OptDbg=-O3 -march=pentium2 + OptDbg=-ggdb + ifndef CWFLAGS +-CWFLAGS=-Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter -Wno-missing-field-initializers ++#CWFLAGS=-Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter -Wno-missing-field-initializers + endif +-CFLAGS=$(OptDbg) -I. $(CWFLAGS) ++#CFLAGS=$(OptDbg) -I. $(CWFLAGS) ++CFLAGS+=-I. + + PREFIX = /usr + # STRIP = -s +@@ -18,7 +19,7 @@ MAN1DIR = $(MANDIR)/man1 + MAN5DIR = $(MANDIR)/man5 + LDLIBS = -lncurses + +-all: wiggle wiggle.man test ++all: wiggle wiggle.man + + wiggle : wiggle.o load.o parse.o split.o extract.o diff.o bestmatch.o ReadMe.o \ + merge2.o vpatch.o ccan/hash/hash.o diff --git a/wiggle.spec b/wiggle.spec new file mode 100644 index 0000000..6fc871f --- /dev/null +++ b/wiggle.spec @@ -0,0 +1,144 @@ +Name: wiggle +Version: 1.1 +Release: 4%{?dist} +Summary: A tool for applying patches with conflicts + +License: GPLv2+ +URL: http://neil.brown.name/wiggle/ +Source0: http://neil.brown.name/wiggle/%{name}-%{version}.tar.gz +Patch0: wiggle-fix-build.patch + + +BuildRequires: gcc +BuildRequires: groff, time, ncurses-devel + +# The source tarball used, is obtained by visiting the URL above and +# getting a snapshot that contains the latest sources. This can be +# done by clicking the 'snapshot' link listed on the gitweb interface +# This snapshot was the latest commit on the 'master' branch. +# +# RPM doesn't particularly like this link as a 'Source', so I'll paste +# is here for posterity: +# +# http://neil.brown.name/git?p=wiggle;a=snapshot;h=1c5bfa7ce4de088e3b942463bb11cdc553a92b97;sf=tgz +# + +%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. + +%prep +%setup -q +%patch0 -p1 -b .build + +%build +export CFLAGS="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%check +make test + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +%files +%license COPYING +%doc ANNOUNCE TODO +/usr/bin/wiggle +%{_mandir}/man1/wiggle.1* + + +%changelog +* Sat Jul 27 2019 Fedora Release Engineering - 1.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Feb 03 2019 Fedora Release Engineering - 1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 21 2018 John W. Linville - 1.1-1 +- Update to version 1.1 from upstream +- Remove conflicting wiggle-Fix-endian-checks.patch + +* Fri Feb 09 2018 Igor Gnatenko - 1.0-10 +- Escape macros in %%changelog + +* Thu Aug 03 2017 Fedora Release Engineering - 1.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Thu May 11 2017 John W. Linville - 1.0-7 +- Apply fix for endian checks from Neil Brown + +* Sat Feb 11 2017 Fedora Release Engineering - 1.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Feb 05 2016 Fedora Release Engineering - 1.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Jun 19 2015 Fedora Release Engineering - 1.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Feb 4 2015 John W. Linville 1.0-3 +- Use %%license instead of %%doc for file containing license information + +* Mon Aug 18 2014 Fedora Release Engineering - 1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Fri Jul 11 2014 John W. Linville 1.0-1 +- Rebased to new version of wiggle, 1.0. +- Some housekeeping in the spec file... + +* Sun Jun 08 2014 Fedora Release Engineering - 0.8-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 0.8-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Feb 15 2013 Fedora Release Engineering - 0.8-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sun Jul 22 2012 Fedora Release Engineering - 0.8-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 0.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Feb 07 2011 Fedora Release Engineering - 0.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Mar 26 2010 Andy Gospodarek 0.8-1 +- Rebased to new version of wiggle, 0.8. + +* Mon Oct 19 2009 Andy Gospodarek 0.6-7 +- Updated location for wiggle sources and uploaded new source-file. [506812] +- Dropped first patch since it was now included. + +* Mon Jul 27 2009 Fedora Release Engineering - 0.6-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 0.6-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Feb 18 2008 Fedora Release Engineering - 0.6-4 +- Autorebuild for GCC 4.3 + +* Tue Jan 15 2008 Andy Gospodarek 0.6-3 +- More suggested package cleanups and doc additions + +* Mon Jan 14 2008 Andy Gospodarek 0.6-2 +- Makefile changes and spec-file cleanups + +* Mon Jan 14 2008 Andy Gospodarek 0.6-1 +- Initial build various patches from around the web +