@ -1,50 +1,127 @@
Summary: A GNU program for formatting C code
Name: indent
Version: 2.2.12
Release: 10%{?dist}
# COPYING: GPLv3 text
# doc/indent.info: Verbatim (generated from doc/indent.texi)
Version: 2.2.13
Release: 1%{?dist}
# COPYING: GPL-3.0 text
# doc/indent.texi: Latex2e-like (Fedora-acceptable,
# TODO: waiting on an identifier
# <https://gitlab.com/fedora/legal/fedora-license-data/-/issues/176>)
# AND a subset of Latex2e WITH a texinfo-commented GPL clause
# (Fedora legal recommends to ignore it
# <http://lists.gnu.org/archive/html/bug-indent/2018-09/msg00008.html>
# doc/indent.texi: Verbatim (or GPL?)
# src/code_io.c: BSD
# src/globs.c: GPLv3+
# src/indent.c: BSD
# src/utils.h: GPLv3+
## Not in any binary package
# aclocal.m4: GPLv3+ with exception
# config/config.guess: GPLv2+ with exception
# config/config.rpath: FSFULLR
# config/install-sh: MIT
# doc/Makefile.in: FSFULLR
# INSTALL: FSFAP
# m4/longlong.m4: FSFULLR
# man/texinfo2man.c: BSD with advertising
# regression/standard/globs.c: BSD with advertising
# regression/standard/sys.h: FSFUL (or so)
# <https://gitlab.com/fedora/legal/fedora-license-data/-/issues/176>)
# AND BSD-4.3TAHOE-like
# (BSD-4.3TAHOE refers to indent program, not
# the manual)
# (Fedora-acceptable,
# TODO: waiting on an SPDX update
# <https://gitlab.com/fedora/legal/fedora-license-data/-/issues/174>)
# README.md: "See COPYING"
# src/args.c: BSD-3-Clause AND GPL-3.0-or-later
# src/args.h: BSD-3-Clause
# src/backup.c: BSD-3-Clause
# src/backup.h: BSD-3-Clause
# src/code_io.c: BSD-3-Clause
# src/code_io.h: BSD-3-Clause AND GPL-3.0-or-later
# src/comments.c: GPL-3.0-or-later
# src/comments.h: GPL-3.0-or-later
# src/globs.c: GPL-3.0-or-later
# src/handletoken.c: BSD-3-Clause
# src/indent.c: BSD-3-Clause
# src/indent.h: BSD-3-Clause
# src/lexi.c: BSD-3-Clause
# src/lexi.h: GPL-3.0-or-later
# src/output.c: BSD-3-Clause AND GPL-3.0-or-later
# src/parse.c: BSD-3-Clause AND GPL-3.0-or-later
# src/parse.h: BSD-3-Clause AND GPL-3.0-or-later
# src/sys.h: BSD-3-Clause AND GPL-3.0-or-later
# src/utils.c: GPL-3.0-or-later
# src/utils.h: GPL-3.0-or-later
# src/wildexp.c: BSD-3-Clause AND GPL-3.0-or-later
## Used at build time, but not in any binary package
# man/texinfo2man.c: BSD-4.3TAHOE subset
# regression/input/args.c: BSD-4.3TAHOE
# regression/input/backup.c: FSFUL-like
# regression/input/backup.h: FSFUL-like
# regression/input/comments1.c: BSD-4.3TAHOE
# regression/input/globs.c: BSD-4.3TAHOE
# regression/input/indent.c: BSD-4.3TAHOE
# regression/input/indent.h: BSD-4.3TAHOE
# regression/input/indent_globs.h: BSD-4.3TAHOE
# regression/input/io.c: BSD-4.3TAHOE
# regression/input/lexi.c: BSD-4.3TAHOE
# regression/input/parse.c: BSD-4.3TAHOE
# regression/input/pr_comment.c: BSD-4.3TAHOE
# regression/input/sys.h: FSFUL-like
# regression/standard/args.c: BSD-4.3TAHOE
# regression/standard/backup.c: FSFUL-like
# regression/standard/backup.h: FSFUL-like
# regression/standard/comments1.c: BSD-4.3TAHOE
# regression/standard/comments1-fca.c: BSD-4.3TAHOE
# regression/standard/globs.c: BSD-4.3TAHOE
# <https://gitlab.com/fedora/legal/fedora-license-data/-/issues/174>
# regression/standard/indent.h: BSD-4.3TAHOE
# regression/standard/indent_globs.h: BSD-4.3TAHOE
# regression/standard/io.c: BSD-4.3TAHOE
# regression/standard/lexi.c: BSD-4.3TAHOE
# regression/standard/parse.c: BSD-4.3TAHOE
# regression/standard/pr_comment.c: BSD-4.3TAHOE
# regression/standard/sys.h: FSFUL-like
## Unused
# config/texinfo.tex: GPLv3+ with exception
# intl/plural.c: LGPLv2+ with exception
# intl/vasnprintf.c: LGPLv2+
# config/texinfo.tex: GPL-3.0-or-later WITH Texinfo exception
# INSTALL: FSFAP
## Unbundled
# doc/indent.info: A subset of Latex2e
# (Fedora legal recommends to ignore it)
# AND BSD-4.3TAHOE
# (BSD-4.3TAHOE refers to indent program, not
# the manual)
# (generated from doc/indent.texi)
# aclocal.m4: FSFULLRWD AND FSFULLR
# config/config.guess: GPL-3.0-or-later WITH Autoconf-exception-generic
# config/missing: GPL-2.0-or-later WITH Autoconf-exception-generic
# config/compile: GPL-2.0-or-later WITH Autoconf-exception-generic
# config/config.rpath: FSFULLR
# config/config.sub: GPL-3.0-or-later WITH Autoconf-exception-generic
# config/depcomp: GPL-2.0-or-later WITH Autoconf-exception-generic
# config/install-sh: X11 AND LicenseRef-Fedora-Public-Domain
# config/mdate-sh: GPL-2.0-or-later WITH Autoconf-exception-generic
# configure: FSFUL
# doc/Makefile.in: FSFULLRWD
# m4/ax_cc_for_build.m4: GPL-3.0-or-later WITH Autoconf-exception-macro
# m4/gettext.m4: FSFULLR
# m4/iconv.m4: FSFULLR
# m4/intlmacosx.m4: FSFULLR
# m4/lib-ld.m4: FSFULLR
# m4/lib-link.m4: FSFULLR
# m4/lib-prefix.m4: FSFULLR
# m4/nls.m4: FSFULLR
# m4/po.m4: FSFULLR
# m4/progtest.m4: FSFULLR
# Makefile.in: FSFULLRWD
# man/indent.1: A subset of Latex2e AND "see oqindent.texinfo and indent.info"
# (generated from doc/indent.texi and man/indent.1.in)
# man/Makefile.in: FSFULLRWD
# po/Makefile.in.in: FSFUL-like
# src/Makefile.in: FSFULLRWD
License: GPLv3+ and BSD and Verbatim
URL: http://www.gnu.org/software/%{name}/
Source: http://ftpmirror.gnu.org/%{name}/%{name}-%{version}.tar.xz
# Correct documentation, proposed to upstream
# <http://lists.gnu.org/archive/html/bug-indent/2018-09/threads.html>
Patch1: indent-2.2.12-doc-Fix-dont-cuddle-else-short-option-and-index-remo.patch
# Add AX_CC_FOR_BUILD m4 macro definition, copied from
# <http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_cc_for_build.m4>,
# license is "GPLv3+ with exception", proposed to upstream
# <http://lists.gnu.org/archive/html/bug-indent/2018-09/threads.html>
Patch2: indent-2.2.12-Add-m4-ax_cc_for_build.m4-for-CC_FOR_BUILD.patch
# Recognize binary integer literals, bug #1655319, submitted to the upstream
# <http://lists.gnu.org/archive/html/bug-indent/2018-12/msg00000.html>
Patch3: indent-2.2.12-Recognize-binary-integer-literals.patch
# Update config.sub to support aarch64, bug #925588
BuildRequires: autoconf
URL: https://www.gnu.org/software/%{name}/
Source0: https://ftpmirror.gnu.org/%{name}/%{name}-%{version}.tar.xz
Source1: https://ftpmirror.gnu.org/%{name}/%{name}-%{version}.tar.xz.sig
# A fingerprint verified from
# <https://blog.shadura.me/2021/01/01/new-openpgp-key/> and
# <https://contributors.debian.org/contributor/andrewsh/>.
Source2: https://shadura.me/key.pgp
BuildRequires: autoconf >= 2.71
# autoconf-archive for unbundled ax_cc_for_build.m4
BuildRequires: autoconf-archive
BuildRequires: automake
BuildRequires: coreutils
# dvips is not used
# egrep is not used
BuildRequires: gcc
BuildRequires: gettext-devel
BuildRequires: gettext-devel >= 0.18.3
BuildRequires: gnupg2
# gperf to update pre-generated code to fix compiler warnings
BuildRequires: gperf
BuildRequires: make
@ -61,29 +138,34 @@ Install the indent package if you are developing applications in C and
you want a program to format your code.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup -p1
# Regenerate sources
rm src/gperf.c src/gperf-cc.c
# Update config.sub to support aarch64, bug #925588
autoreconf -i -f
# Regenerate documentation and translatations
rm man/indent.1 doc/indent.info po/*.gmo po/stamp-po
# Remove bundled and pregenerated build scripts
rm -r aclocal.m4 config configure m4 {,doc/,src/,man/}Makefile.in \
po/Makefile.in.in po/*.sed po/*.sin po/Rules-quot
%build
# Enable 64-bit stat(2)
%configure CFLAGS='%optflags -D_FILE_OFFSET_BITS=64'
autoreconf -i -f
%configure \
--enable-largefile \
--enable-nls \
--disable-rpath
%{make_build}
%install
%{make_install}
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir $RPM_BUILD_ROOT/%{_bindir}/texinfo2man \
$RPM_BUILD_ROOT/usr/doc/indent/indent.html
# Delete HTML version of the manual. We already package roff and texinfo
# variants.
rm -f %{buildroot}%{_infodir}/dir %{buildroot}%{_bindir}/texinfo2man \
%{buildroot}%{_datadir}/doc/indent/indent.html
%find_lang %name
%check
make check
make check %{?_smp_mflags}
%files -f %{name}.lang
%license COPYING
@ -92,8 +174,10 @@ make check
%{_mandir}/man1/indent.*
%{_infodir}/indent.info*
%changelog
* Tue Mar 21 2023 Petr Pisar <ppisar@redhat.com> - 2.2.13-1
- 2.2.13 bump
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.12-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild