2007-01-15 23:17:24 +00:00
#
2012-07-21 10:29:37 +00:00
# spec file for package indent
2007-01-15 23:17:24 +00:00
#
2023-03-25 10:59:20 +00:00
# Copyright (c) 2023 SUSE LLC
2007-01-15 23:17:24 +00:00
#
2008-08-05 23:43:20 +00:00
# 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.
2020-02-20 11:19:35 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2007-01-15 23:17:24 +00:00
#
2008-02-25 16:10:06 +00:00
Name : indent
2023-03-25 10:59:20 +00:00
Version : 2.2.13
2012-07-21 10:29:37 +00:00
Release : 0
2018-12-17 07:56:17 +00:00
Summary : Indentation of Source Code in various styles
License : GPL-3.0-or-later
2015-02-19 09:03:28 +00:00
Group : Development/Languages/C and C++
2020-02-20 11:19:35 +00:00
URL : https://www.gnu.org/software/indent
Source0 : ftp://ftp.gnu.org/gnu/%{name} /%{name} -%{version} .tar.xz
Source1 : ftp://ftp.gnu.org/gnu/%{name} /%{name} -%{version} .tar.xz.sig
2023-03-25 10:59:20 +00:00
Source2 : https://savannah.gnu.org/people/viewgpg.php?user_id=94096#/%{name}.keyring
2023-08-22 10:58:07 +00:00
# PATCH-FIX-SECURITY fix-out-of-buffer-read-CVE-2023-40305.patch fix-heap-buffer-overwrite-search_brace-CVE-2023-40305 bsc#1214243 CVE-2023-40305 antonio.teixeira@suse.com -- indent: heap-based buffer overflow in search_brace() in indent.c via a crafted file
Patch0 : fix-out-of-buffer-read-CVE-2023-40305.patch
Patch1 : fix-heap-buffer-overwrite-search_brace-CVE-2023-40305.patch
2015-02-24 19:54:29 +00:00
BuildRequires : makeinfo
BuildRequires : texi2html
2007-01-15 23:17:24 +00:00
2008-02-25 16:10:06 +00:00
%description
2015-02-19 09:03:28 +00:00
Indent can be used to make code easier to read. It can also convert
2008-02-25 16:10:06 +00:00
from one style of writing C code to another. indent understands a
substantial amount of C syntax, but it also tries to cope with
incomplete and malformed syntax.
2007-01-15 23:17:24 +00:00
2020-02-20 11:19:35 +00:00
%lang_package
2007-01-15 23:17:24 +00:00
%prep
2023-08-22 10:58:07 +00:00
%autosetup -p1
2007-01-15 23:17:24 +00:00
%build
2023-03-25 10:59:20 +00:00
%configure \
--docdir=%{_docdir} /%{name} \
%{nil}
2020-02-20 11:19:35 +00:00
%make_build
2007-01-15 23:17:24 +00:00
%install
2017-03-24 15:47:45 +00:00
%make_install
2023-03-25 10:59:20 +00:00
rm -f %{buildroot} %{_bindir} /texinfo2man
rm -f %{buildroot} /%{_infodir} /dir
2008-02-25 16:10:06 +00:00
%find_lang %{name}
2007-01-15 23:17:24 +00:00
2008-08-05 23:43:20 +00:00
%check
2020-02-20 11:19:35 +00:00
%make_build check
2007-01-15 23:17:24 +00:00
2020-02-20 11:19:35 +00:00
%files
2008-02-25 16:10:06 +00:00
%{_bindir} /*
2018-12-17 07:56:17 +00:00
%license COPYING
2023-03-25 10:59:20 +00:00
%doc NEWS ChangeLog
%{_docdir} /%{name}
2018-12-17 07:56:17 +00:00
%{_infodir} /%{name} .info%{?ext_info}
%{_mandir} /man1/indent.1%{?ext_man}
2007-01-15 23:17:24 +00:00
2020-02-20 11:19:35 +00:00
%files lang -f %{name}.lang
2023-03-25 10:59:20 +00:00
%license COPYING
2020-02-20 11:19:35 +00:00
2008-02-25 16:10:06 +00:00
%changelog