From e6c39cbf3bcc67f8d0f00fe1509be956a42af74b Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 16 Oct 2012 08:33:53 -0700 Subject: [PATCH] add packaging files --- packaging/patch.manifest | 5 +++++ packaging/patch.spec | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 packaging/patch.manifest create mode 100644 packaging/patch.spec 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..c5ec7e4 --- /dev/null +++ b/packaging/patch.spec @@ -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}/*/* -- 2.34.1