Bump to patch 2.7.6 41/269741/1 sandbox/dh0128.kwak/patch-2.7.6-20220120 accepted/tizen/base/tool/20220127.053826 submit/tizen_base/20220120.064941
authorDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 20 Jan 2022 06:03:48 +0000 (15:03 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 20 Jan 2022 06:04:22 +0000 (15:04 +0900)
Change-Id: I8bfc8f686ebe93455172e113bd7b129c67b17adc

packaging/patch.manifest [new file with mode: 0644]
packaging/patch.spec [new file with mode: 0644]

diff --git a/packaging/patch.manifest b/packaging/patch.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/patch.spec b/packaging/patch.spec
new file mode 100644 (file)
index 0000000..62ed3f2
--- /dev/null
@@ -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}/*