diff options
author | jk7744.park <jk7744.park@samsung.com> | 2015-09-09 02:19:40 +0900 |
---|---|---|
committer | jk7744.park <jk7744.park@samsung.com> | 2015-09-09 02:19:40 +0900 |
commit | 76055a960b5d6e0eb58558e0213f7f4578f204b3 (patch) | |
tree | 1f00f6abc95616e8679535d6efadecc5021bd21a /packaging | |
parent | b5e47a5b56f360f78f0e086ca4af3159dcb28e27 (diff) | |
download | diffutils-tizen_2.3.1.tar.gz diffutils-tizen_2.3.1.tar.bz2 diffutils-tizen_2.3.1.zip |
tizen 2.3.1 releasetizen_2.3.1_releasesubmit/tizen_2.3.1/20150915.095221tizen_2.3.1
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/diffutils-cmp-s-empty.patch | 7 | ||||
-rw-r--r-- | packaging/diffutils.manifest | 6 | ||||
-rwxr-xr-x[-rw-r--r--] | packaging/diffutils.spec | 27 |
3 files changed, 26 insertions, 14 deletions
diff --git a/packaging/diffutils-cmp-s-empty.patch b/packaging/diffutils-cmp-s-empty.patch index 87925b7..bc1c6b4 100644 --- a/packaging/diffutils-cmp-s-empty.patch +++ b/packaging/diffutils-cmp-s-empty.patch @@ -1,6 +1,7 @@ ---- diffutils/src/cmp.c.orig 2012-06-05 17:06:34.104942215 +0800 -+++ diffutils/src/cmp.c 2012-06-05 17:07:08.801945433 +0800 -@@ -324,12 +324,15 @@ +diff -up diffutils-2.8.1/src/cmp.c.cmp-s-empty diffutils-2.8.1/src/cmp.c +--- diffutils-2.8.1/src/cmp.c.cmp-s-empty 2002-04-05 21:37:31.000000000 +0100 ++++ diffutils-2.8.1/src/cmp.c 2010-06-25 14:56:08.464802321 +0100 +@@ -316,12 +316,15 @@ main (int argc, char **argv) /* If only a return code is needed, and if both input descriptors are associated with plain files, diff --git a/packaging/diffutils.manifest b/packaging/diffutils.manifest index 017d22d..75b0fa5 100644 --- a/packaging/diffutils.manifest +++ b/packaging/diffutils.manifest @@ -1,5 +1,5 @@ <manifest> - <request> - <domain name="_"/> - </request> + <request> + <domain name="_"/> + </request> </manifest> diff --git a/packaging/diffutils.spec b/packaging/diffutils.spec index 2b2d1cd..35888c1 100644..100755 --- a/packaging/diffutils.spec +++ b/packaging/diffutils.spec @@ -1,12 +1,12 @@ Name: diffutils Version: 3.0 -Release: 1 +Release: 3 License: GPLv2+ Summary: A GNU collection of diff utilities Url: http://www.gnu.org/software/diffutils/diffutils.html Group: Applications/Text -Source: %{name}-%{version}.tar.gz -Source1001: packaging/diffutils.manifest +Source: ftp://ftp.gnu.org/gnu/diffutils/diffutils-%{version}.tar.xz +Source1001: %{name}.manifest Patch0: diffutils-cmp-s-empty.patch %description @@ -24,25 +24,36 @@ Install diffutils if you need to compare text files. %prep %setup -q -%patch0 -p1 +%patch0 -p1 %build cp %{SOURCE1001} . %configure --disable-nls -make PR_PROGRAM=%{_bindir}/pr +make %{?_smp_mflags} PR_PROGRAM=%{_bindir}/pr %install %make_install +mkdir -p $RPM_BUILD_ROOT%{_datadir}/license +for keyword in LICENSE COPYING COPYRIGHT; +do + for file in `find %{_builddir} -name $keyword`; + do + cat $file >> $RPM_BUILD_ROOT%{_datadir}/license/%{name}; + echo ""; + done; +done + %clean rm -rf %{buildroot} -%docs_package +%docs_package -%files -%manifest diffutils.manifest +%files %defattr(-,root,root,-) +%manifest %{name}.manifest %doc NEWS README COPYING +%{_datadir}/license/%{name} %{_bindir}/* %{_mandir}/*/* %{_infodir}/diff.info*gz |