indent/indent.spec

64 lines
1.5 KiB
RPMSpec
Raw Normal View History

2019-12-14 18:55:39 +08:00
# -*- coding: utf-8 -*-
%define _binaries_in_noarch_packages_terminate_build 0
2019-12-14 18:55:39 +08:00
Name: indent
Summary: A tool to make code easier to read
Version: 2.2.13
2023-08-29 09:56:50 +08:00
Release: 2
2019-12-14 18:55:39 +08:00
License: GPLv3+
URL: http://www.gnu.org/software/%{name}/
Source: http://ftp.gnu.org/gnu/indent/%{name}-%{version}.tar.xz
2023-08-29 09:56:50 +08:00
Patch0: fix-an-out-of-buffer-read-CVE-2023-40305.patch
Patch1: fix-a-heap-buffer-overwrite-CVE-2023-40305.patch
2019-12-14 18:55:39 +08:00
BuildRequires: gettext-devel automake gcc autoconf
BuildRequires: make coreutils gperf texinfo texi2html
%description
The indent program can be used to make code easier to read. It
can also convert from one style of writing C to another. indent
understands a substantial amount about the syntax of C, but it
also attempts to cope with incomplete and misformed syntax.
%package_help
%prep
%autosetup -p1
rm src/gperf.c src/gperf-cc.c
autoreconf -i -f
%build
%configure CFLAGS='%optflags -D_FILE_OFFSET_BITS=64'
%make_build
%install
%make_install
%find_lang %name
%check
2023-08-29 09:56:50 +08:00
make check %{?_smp_mflags}
2019-12-14 18:55:39 +08:00
%files -f %{name}.lang
%license COPYING
%{_bindir}/indent
%{_datadir}/doc/%{name}/%{name}.html
2019-12-14 18:55:39 +08:00
%files help
%doc AUTHORS NEWS README.md ChangeLog*
2019-12-14 18:55:39 +08:00
%{_mandir}/man1/%{name}.*
%{_infodir}/%{name}.info*
%exclude %{_infodir}/dir
%changelog
2023-08-29 09:56:50 +08:00
* Tue Aug 29 2023 wangkai <13474090681@163.com> - 2.2.13-2
- Fix CVE-2023-40305
* Mon Apr 24 2023 xu_ping <707078654@qq.com> - 2.2.13-1
- Upgrade package to 2.2.13 version
2020-09-11 10:09:11 +08:00
* Thu Sep 10 2020 baizhonggui<baizhonggui@huawei.com> - 2.2.11-28
- fix source0
2019-12-14 18:55:39 +08:00
* Tue Dec 3 2019 caomeng<caomeng5@huawei.com> - 2.2.11-27
- Package init