add packaging files accepted/tizen/20130503.225859 accepted/trunk/20130325.213324 submit/tizen/20130503.230854 submit/tizen/20130509.182745 submit/trunk/20130325.083703
authorAnas Nashif <anas.nashif@intel.com>
Tue, 16 Oct 2012 15:33:53 +0000 (08:33 -0700)
committerAnas Nashif <anas.nashif@intel.com>
Tue, 16 Oct 2012 15:33:53 +0000 (08:33 -0700)
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..c5ec7e4
--- /dev/null
@@ -0,0 +1,37 @@
+Name:           patch
+Version:        2.7
+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} .
+CFLAGS="%{optflags} -D_GNU_SOURCE"
+
+%configure 
+make %{?_smp_mflags}
+
+%install
+%make_install
+
+%files
+%manifest patch.manifest
+%{_bindir}/*
+%doc %{_mandir}/*/*