diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-06 22:51:23 -0800 |
---|---|---|
committer | Ćukasz Stelmach <l.stelmach@samsung.com> | 2014-01-15 13:53:50 +0100 |
commit | a579ea1656da2c7f74d7f0cd1da5e07fe8369537 (patch) | |
tree | a8416c630957bcc6872956004b74dc0ad27a4220 /packaging | |
parent | 90b2de102fe4c773f9d6ba2da2065f254a5803b6 (diff) | |
download | diffutils-a579ea1656da2c7f74d7f0cd1da5e07fe8369537.tar.gz diffutils-a579ea1656da2c7f74d7f0cd1da5e07fe8369537.tar.bz2 diffutils-a579ea1656da2c7f74d7f0cd1da5e07fe8369537.zip |
add packaging
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/diffutils-stdio.in.patch | 19 | ||||
-rw-r--r-- | packaging/diffutils.spec | 57 |
2 files changed, 76 insertions, 0 deletions
diff --git a/packaging/diffutils-stdio.in.patch b/packaging/diffutils-stdio.in.patch new file mode 100644 index 0000000..8845ba7 --- /dev/null +++ b/packaging/diffutils-stdio.in.patch @@ -0,0 +1,19 @@ +Index: diffutils-3.2/lib/stdio.in.h +=================================================================== +--- diffutils-3.2.orig/lib/stdio.in.h ++++ diffutils-3.2/lib/stdio.in.h +@@ -693,12 +693,14 @@ _GL_CXXALIAS_RPL (gets, char *, (char *s + _GL_CXXALIAS_SYS (gets, char *, (char *s)); + # undef gets + # endif ++#if HAVE_RAW_DECL_GETS + _GL_CXXALIASWARN (gets); + /* It is very rare that the developer ever has full control of stdin, + so any use of gets warrants an unconditional warning. Assume it is + always declared, since it is required by C89. */ + _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); + #endif ++#endif + + + #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@ diff --git a/packaging/diffutils.spec b/packaging/diffutils.spec new file mode 100644 index 0000000..87b044a --- /dev/null +++ b/packaging/diffutils.spec @@ -0,0 +1,57 @@ +# +# spec file for package diffutils +# +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: diffutils +Version: 3.2 +Release: 0 +License: GFDL-1.2 ; GPL-3.0+ +Summary: GNU diff Utilities +Url: http://www.gnu.org/software/diffutils/ +Group: Productivity/Text/Utilities +Source: %{name}-%{version}.tar.xz +Patch1: diffutils-stdio.in.patch +BuildRequires: xz +Provides: diff +Obsoletes: diff + +%description +The GNU diff utilities find differences between files. diff is used to +make source code patches, for instance. + +%prep +%setup -q +%patch1 -p1 + +%build +%configure --disable-nls +make %{?_smp_mflags} + +%install +%make_install +gzip -9 %{buildroot}%{_infodir}/%{name}.info + + +%files +%defattr(-,root,root) +%{_bindir}/cmp +%{_bindir}/diff +%{_bindir}/diff3 +%{_bindir}/sdiff +%doc %{_infodir}/%{name}.info.gz +%doc %{_mandir}/man1/*.gz + |