2007-01-16 00:17:24 +01:00
#
2012-07-21 12:29:37 +02:00
# spec file for package indent
2007-01-16 00:17:24 +01:00
#
2024-02-19 10:08:44 +01:00
# Copyright (c) 2024 SUSE LLC
2007-01-16 00:17:24 +01:00
#
2008-08-06 01:43:20 +02: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 12:19:35 +01:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2007-01-16 00:17:24 +01:00
#
2008-02-25 17:10:06 +01:00
Name : indent
2023-03-25 11:59:20 +01:00
Version : 2.2.13
2012-07-21 12:29:37 +02:00
Release : 0
2018-12-17 08:56:17 +01:00
Summary : Indentation of Source Code in various styles
License : GPL-3.0-or-later
2015-02-19 10:03:28 +01:00
Group : Development/Languages/C and C++
2020-02-20 12:19:35 +01: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 11:59:20 +01:00
Source2 : https://savannah.gnu.org/people/viewgpg.php?user_id=94096#/%{name}.keyring
2023-08-22 12:58:07 +02: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
2024-02-19 10:08:44 +01:00
# CVE-2024-0911 [bsc#1219210], heap-based buffer overflow in set_buf_break()
Patch2 : indent-CVE-2024-0911.patch
2015-02-24 20:54:29 +01:00
BuildRequires : makeinfo
BuildRequires : texi2html
2007-01-16 00:17:24 +01:00
2008-02-25 17:10:06 +01:00
%description
2015-02-19 10:03:28 +01:00
Indent can be used to make code easier to read. It can also convert
2008-02-25 17:10:06 +01: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-16 00:17:24 +01:00
2020-02-20 12:19:35 +01:00
%lang_package
2007-01-16 00:17:24 +01:00
%prep
2023-08-22 12:58:07 +02:00
%autosetup -p1
2007-01-16 00:17:24 +01:00
%build
2023-03-25 11:59:20 +01:00
%configure \
--docdir=%{_docdir} /%{name} \
%{nil}
2020-02-20 12:19:35 +01:00
%make_build
2007-01-16 00:17:24 +01:00
%install
2017-03-24 16:47:45 +01:00
%make_install
2023-03-25 11:59:20 +01:00
rm -f %{buildroot} %{_bindir} /texinfo2man
rm -f %{buildroot} /%{_infodir} /dir
2008-02-25 17:10:06 +01:00
%find_lang %{name}
2007-01-16 00:17:24 +01:00
2008-08-06 01:43:20 +02:00
%check
2020-02-20 12:19:35 +01:00
%make_build check
2007-01-16 00:17:24 +01:00
2020-02-20 12:19:35 +01:00
%files
2008-02-25 17:10:06 +01:00
%{_bindir} /*
2018-12-17 08:56:17 +01:00
%license COPYING
2023-03-25 11:59:20 +01:00
%doc NEWS ChangeLog
%{_docdir} /%{name}
2018-12-17 08:56:17 +01:00
%{_infodir} /%{name} .info%{?ext_info}
%{_mandir} /man1/indent.1%{?ext_man}
2007-01-16 00:17:24 +01:00
2020-02-20 12:19:35 +01:00
%files lang -f %{name}.lang
2023-03-25 11:59:20 +01:00
%license COPYING
2020-02-20 12:19:35 +01:00
2008-02-25 17:10:06 +01:00
%changelog