From: DongHun Kwak Date: Thu, 20 Jan 2022 06:03:48 +0000 (+0900) Subject: Bump to patch 2.7.6 X-Git-Tag: submit/tizen_base/20220120.064941^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F41%2F269741%2F1;p=platform%2Fupstream%2Fpatch.git Bump to patch 2.7.6 Change-Id: I8bfc8f686ebe93455172e113bd7b129c67b17adc --- diff --git a/packaging/patch.manifest b/packaging/patch.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/patch.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/patch.spec b/packaging/patch.spec new file mode 100644 index 0000000..62ed3f2 --- /dev/null +++ b/packaging/patch.spec @@ -0,0 +1,40 @@ +Name: patch +Version: 2.7.6 +Release: 1 +License: GPL-3.0+ +Summary: The GNU patch command, for modifying/upgrading files +Url: http://www.gnu.org/software/patch/patch.html +Group: Development/Tools +Source0: ftp://ftp.gnu.org/gnu/patch/patch-%{version}.tar.xz +Source1001: patch.manifest + +%description +The patch program applies diff files to originals. The diff command +is used to compare an original to a changed file. Diff lists the +changes made to the file. A person who has the original file can then +use the patch command with the diff file to add the changes to their +original file (patching the file). + +Patch should be installed because it is a common way of upgrading +applications. + +%prep +%setup -q + +%build +cp %{SOURCE1001} . +export CFLAGS+=" -D_GNU_SOURCE -fPIC" +export LDFLAGS+=" -pie" + +autoreconf -fi +%configure +make %{?_smp_mflags} + +%install +%make_install +%remove_docs + +%files +%license COPYING +%manifest patch.manifest +%{_bindir}/*