SHA256
7
0
forked from pool/texinfo

Factory #1

Merged
dgarcia merged 11 commits from factory into main 2025-10-08 12:57:58 +02:00
9 changed files with 429 additions and 100 deletions

Binary file not shown.

View File

@@ -1,8 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iI8EABEIADcWIQTq9mmzHjHh3svRFRPdvFedqzf7qQUCZCA15BkcZ2F2aW5zbWl0
aDAxMjNAZ21haWwuY29tAAoJEN28V52rN/upzwABAI2fLUksBxG7Zs/MXc6nTzFV
vM/ujEry9Xc+dXwpD1H7AP99udrll7XijKAMJG0G2/w2RVPu56x5l6UGrLhJB8Wt
PQ==
=A5eq
-----END PGP SIGNATURE-----

BIN
texinfo-7.2.tar.xz LFS Normal file

Binary file not shown.

8
texinfo-7.2.tar.xz.sig Normal file
View File

@@ -0,0 +1,8 @@
-----BEGIN PGP SIGNATURE-----
iI8EABEIADcWIQTq9mmzHjHh3svRFRPdvFedqzf7qQUCZ2k1khkcZ2F2aW5zbWl0
aDAxMjNAZ21haWwuY29tAAoJEN28V52rN/uplqQBAIrMYzsK/PXcwScclUO83BWe
zH1T871WzneEjb7QTLuWAP9CbjsdGHNjiAFyarkWYz79P7ny1m5m7253cNe5Xgms
JA==
=hFBv
-----END PGP SIGNATURE-----

46
texinfo-perl-5.42.patch Normal file
View File

@@ -0,0 +1,46 @@
From 01d33e3b1121906f57f612ade39f6fa26e288760 Mon Sep 17 00:00:00 2001
From: Jan Fooken <jan.fooken@suse.com>
Date: Tue, 2 Sep 2025 10:31:31 +0200
Subject: [PATCH] Fix precedence problems for Perl 5.42
The test suite doesn't run successfully under Perl 5.42, because Perl
rightfully flags possible precedence precedence problems in two string
equality checks. This commit fixes these problems by replacing a
negated equal check with a non-equal check.
This patch was first introduced by Dominique Leuenberger (dimstar)
during the upgrade to Perl 5.42 and updated to apply to the texinfo-7.2
---
tp/Texinfo/Convert/Converter.pm | 2 +-
tp/Texinfo/Convert/LaTeX.pm | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tp/Texinfo/Convert/Converter.pm b/tp/Texinfo/Convert/Converter.pm
index 5e14a9e086..89e623be79 100644
--- a/tp/Texinfo/Convert/Converter.pm
+++ b/tp/Texinfo/Convert/Converter.pm
@@ -386,7 +386,7 @@ sub output_tree($$)
my $fh;
my $encoded_output_file;
- if (! $output_file eq '') {
+ if ($output_file ne '') {
my $path_encoding;
($encoded_output_file, $path_encoding)
= $self->encoded_output_file_name($output_file);
diff --git a/tp/Texinfo/Convert/LaTeX.pm b/tp/Texinfo/Convert/LaTeX.pm
index ae947d1e5e..f4ba076602 100644
--- a/tp/Texinfo/Convert/LaTeX.pm
+++ b/tp/Texinfo/Convert/LaTeX.pm
@@ -1085,7 +1085,7 @@ sub output($$)
my $fh;
my $encoded_output_file;
- if (! $output_file eq '') {
+ if ($output_file ne '') {
my $path_encoding;
($encoded_output_file, $path_encoding)
= $self->encoded_output_file_name($output_file);
--
2.51.0

View File

@@ -1,4 +1,7 @@
addFilter(".*W:.*ghost-files-without-postin.*")
addFilter(".*W:.*info-files-without-install-info-post.*")
addFilter(".*W:.*name-repeated-in-summary.*")
addFilter(".*W:.*no-binary.*")
// texinfo's sub-package makeinfo has shared objects, it calls via Perl
// These shared objects are not architecture independent
addFilter("texinfo\..*E:.*no-binary.*")
addFilter("makeinfo\..*E:.*devel-file-in-non-devel-package.*")

View File

@@ -1,6 +1,36 @@
diff -Nur texinfo-6.8/install-info/install-info.c new/install-info/install-info.c
--- texinfo-6.8/install-info/install-info.c 2021-06-15 22:02:27.000000000 +0200
+++ new/install-info/install-info.c 2022-04-25 12:38:13.573744683 +0200
From 91e8a3ccdccebe95aa9ed8af39609f5c28420f6c Mon Sep 17 00:00:00 2001
From: Jan Fooken <jan.fooken@suse.com>
Date: Fri, 5 Sep 2025 17:08:36 +0200
Subject: [PATCH] Fix and update internal compression patch
This commit adds compression logic to texinfo, to handle the
decompression of info files via zio instead of shelling out to external
programs. This was a previously existing patch, which was updated to
7.2. The previous patch contained error handling of the wrong file and
potentially leaked the memory of the variable command. This addresses
these shortcomings
---
install-info/Makefile.in | 2 +-
install-info/install-info.c | 43 ++++++++++++++++++++++++++-----------
2 files changed, 32 insertions(+), 13 deletions(-)
diff --git a/install-info/Makefile.in b/install-info/Makefile.in
index cb419f9..ab81869 100644
--- a/install-info/Makefile.in
+++ b/install-info/Makefile.in
@@ -276,7 +276,7 @@ am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)"
PROGRAMS = $(bin_PROGRAMS)
am_ginstall_info_OBJECTS = install-info.$(OBJEXT)
ginstall_info_OBJECTS = $(am_ginstall_info_OBJECTS)
-ginstall_info_LDADD = $(LDADD)
+ginstall_info_LDADD = $(LDADD) -lzio
am__DEPENDENCIES_1 =
ginstall_info_DEPENDENCIES = $(top_builddir)/gnulib/lib/libgnu.a \
$(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
diff --git a/install-info/install-info.c b/install-info/install-info.c
index 3ea11fb..ee077d9 100644
--- a/install-info/install-info.c
+++ b/install-info/install-info.c
@@ -19,6 +19,7 @@
#include <getopt.h>
#include <regex.h>
@@ -9,84 +39,60 @@ diff -Nur texinfo-6.8/install-info/install-info.c new/install-info/install-info.
#define TAB_WIDTH 8
@@ -852,22 +853,33 @@
@@ -827,23 +828,41 @@ determine_file_type:
if (*compression_program)
{
- /* Redirect stdin to the file and fork the decompression process
- reading from stdin. This allows shell metacharacters in filenames. */
- char *command = concat (*compression_program, " -d", "");
-
+ FILE *fz = f;
if (fclose (f) < 0)
return 0;
- f = freopen (*opened_filename, FOPEN_RBIN, stdin);
- if (!f)
- if (!freopen (*opened_filename, FOPEN_RBIN, stdin))
- return 0;
- char *command = concat (*compression_program, " -d", "");
- f = popen (command, "r");
- fclose (stdin);
- if (!f)
- {
+
+ if (**compression_program == 'g' || **compression_program == 'z')
+ f = fzopen (*opened_filename, "rg");
+ fz = fzopen (*opened_filename, "rg");
+ if (**compression_program == 'b')
+ f = fzopen (*opened_filename, "rb");
+ fz = fzopen (*opened_filename, "rb");
+ if (**compression_program == 'Z')
+ f = fzopen (*opened_filename, "rZ");
+ fz = fzopen (*opened_filename, "rZ");
+ if (**compression_program == 'l')
+ f = fzopen (*opened_filename, "rl");
+ fz = fzopen (*opened_filename, "rl");
+ if (**compression_program == 'x')
+ f = fzopen (*opened_filename, "rx");
+ if (!f) {
+ /* Redirect stdin to the file and fork the decompression process
+ reading from stdin. This allows shell metacharacters in filenames. */
+ char *command = concat (*compression_program, " -d", "");
+ f = freopen (*opened_filename, FOPEN_RBIN, stdin);
+ if (!f)
+ return 0;
+ f = popen (command, "r");
+ if (!f) {
/* Used for error message in calling code. */
*opened_filename = command;
return 0;
+ fz = fzopen (*opened_filename, "rx");
+ if (!fz)
{
- /* Used for error message in calling code. */
- *opened_filename = command;
- return 0;
+ /* Redirect stdin to the file and fork the decompression process
+ reading from stdin. This allows shell metacharacters in filenames. */
+ FILE *f2 = freopen (*opened_filename, FOPEN_RBIN, stdin);
+ if (!f2)
+ return 0;
+ char *command = concat (*compression_program, " -d", "");
+ f = popen (command, "r");
+ fclose (f2);
+ if (!f)
+ {
+ /* Used for error message in calling code. */
+ *opened_filename = command;
+ return 0;
+ }
+ free (command);
}
+ }
- free (command);
+ else
+ f = fz;
}
else
{
@@ -957,8 +969,22 @@
if (compression_program)
{
- char *command = concat (compression_program, ">", dirfile);
- output = popen (command, "w");
+ output = NULL;
+ if (*compression_program == 'g' || *compression_program == 'z')
+ output = fzopen (dirfile, "wg");
+ if (*compression_program == 'b')
+ output = fzopen (dirfile, "wb");
+ if (*compression_program == 'Z')
+ output = fzopen (dirfile, "wZ");
+ if (*compression_program == 'l')
+ output = fzopen (dirfile, "wl");
+ if (*compression_program == 'x')
+ output = fzopen (dirfile, "wx");
+ if (!output)
+ {
+ char *command = concat (compression_program, ">", dirfile);
+ output = popen (command, "w");
+ }
}
else
output = fopen (dirfile, "w");
diff -Nur texinfo-6.8/install-info/Makefile.in new/install-info/Makefile.in
--- texinfo-6.8/install-info/Makefile.in 2021-07-03 11:13:01.000000000 +0200
+++ new/install-info/Makefile.in 2022-04-25 12:30:06.593744741 +0200
@@ -239,7 +239,7 @@
PROGRAMS = $(bin_PROGRAMS)
am_ginstall_info_OBJECTS = install-info.$(OBJEXT)
ginstall_info_OBJECTS = $(am_ginstall_info_OBJECTS)
-ginstall_info_LDADD = $(LDADD)
+ginstall_info_LDADD = $(LDADD) -lzio
am__DEPENDENCIES_1 =
ginstall_info_DEPENDENCIES = $(top_builddir)/gnulib/lib/libgnu.a \
$(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
--
2.51.0

View File

@@ -1,3 +1,255 @@
-------------------------------------------------------------------
Wed Sep 17 09:13:21 UTC 2025 - Jan Fooken <jan.fooken@suse.com>
- Move htmlxref.cnf to makeinfo package, as it is used by texi2any
-------------------------------------------------------------------
Tue Sep 16 17:20:02 UTC 2025 - Jan Fooken <jan.fooken@suse.com>
- Revert to using vendored versions of perl-libintl-perl and
perl-Unicode-EastAsianWidth, because both are not part of
openSUSE:Factory:Rings:0-Bootstrap
- Explicitly include dependencies from perl-libintl-perl, as they
are not pulled in via the package
- Replace distribution provided version of perl-Text-Unidecode with
vendored version to have a consistent approach to dependencies
-------------------------------------------------------------------
Thu Sep 11 09:01:20 UTC 2025 - Jan Fooken <jan.fooken@suse.com>
- Remove explicit setting of LANG. The build environment uses
C.UTF-8, so a UTF-8 locale is ensured
-------------------------------------------------------------------
Thu Sep 11 08:55:22 UTC 2025 - Jan Fooken <jan.fooken@suse.com>
- Add dependencies for texi2dvi and texindex. Both programs had
missing or non-explicit dependencies on various shell utilities.
Furthermore, texi2dvi has execution statements for dvipdfmx,
dvips, biber and thumbpdf, but the spec didn't require these
programs
-------------------------------------------------------------------
Thu Sep 11 08:42:40 UTC 2025 - Jan Fooken <jan.fooken@suse.com>
- Use distribution versions of perl-libintl-perl and
perl-Unicode-EastAsianWidth over the versions included in
texinfo's source tree
- Remove dependency on perl-gettext. It's not required anymore,
because gettext is now implicitly pulled in by perl-libintl-perl
- Add missing build dependency on gawk
- Add missing test dependencies for the parser tests, which would
be skipped otherwise
- Add explicit dependency on the perl module Unicode::Normalize
It's provided by perl, but if it's missing, it wouldn't fail the
configuration, but introduce erroneous behaviour, so an explicit
dependency doesn't hurt
-------------------------------------------------------------------
Fri Sep 5 15:18:31 UTC 2025 - Jan Fooken <jan.fooken@suse.com>
- Update to version 7.2 (23 December 2024)
* Build
. "make install" installs files for texi2any under $datadir/texi2any, not
$datadir/texinfo.
* texinfo.tex
. use @ as the escape character in all index files. this requires
new enough texi2dvi (Texinfo 6.7, 2019) for index files to be
properly processed.
. a bug has been fixed where a mangled PDF outline could be produced for
a document using @unnumberedsec
. you can call @unmacro with an undefined macro name, matching the
behavior of texi2any
* texi2any
. set CHECK_NORMAL_MENU_STRUCTURE by default. this means texi2any
again checks menu structure by default (changed in 6.8 release, 2021).
. only allow @definfoenclose to be used to redefine highlighting commands
. sorting of indices is now independent of the input or output encodings
. new customization variable COLLATION_LANGUAGE to allow linguistic
tailoring of index sorting
. new variable DOCUMENTLANGUAGE_COLLATION to use @documentlanguage for
linguistic tailoring of index sorting
. new variable USE_UNICODE_COLLATION to allow turning off the slower
use of Unicode collation when sorting indices
. rename BODYTEXT customization variable to BODY_ELEMENT_ATTRIBUTES
. rename COMPLEX_FORMAT_IN_TABLE customization variable to
INDENTED_BLOCK_COMMANDS_IN_TABLE
. remove the following variables: AVOID_MENU_REDUNDANCY, FRAMES,
FRAMESET_DOCTYPE, NO_USE_SETFILENAME, SILENT, USE_UP_NODE_FOR_ELEMENT_UP
. remove SIMPLE_MENU variable and tree transformation
. the use of the directories ~/.texinfo and ~/.texi2any for configuration
files is deprecated, and should be replaced by texinfo or texi2any
directories under XDG_CONFIG_HOME (usually ~/.config/). the new
locations are compatible with the XDG Base Directory Specification.
in future versions, the ~/.texinfo and ~/.texi2any directories will
not be in search paths.
. do not try the us-ascii encoding anymore as a locale for translated
document strings.
. some unused translation files have been removed for the
`texinfo_document' domain
. Info output:
. output Info-documentlanguage in Local Variables section of output
file if @documentlanguage is given
. HTML, Texinfo and raw text output:
. an implementation of the conversion in C has been included, which
is much faster than the code in Perl. set the `TEXINFO_XS_CONVERT'
environment variable to 1 to use.
. HTML output:
. CHECK_HTMLXREF set by default for warnings about links to unknown
external manuals
. you can use the MATHJAX_CONFIGURATION customization variable to add
data to the MathJax configuration object
. warn if there is a .inf or .info suffix for cross-reference manual
. use <pre> instead of <div><em> for output of @displaymath
. remove border, cellpadding, cellspacing and align attributes. add
classes and use CSS when needed.
. EPUB output:
. stricter conformance for conformance checkers
* info
. check for init file under XDG_CONFIG_HOME/texinfo/infokey after
checking ~/.infokey, in accordance with the XDG Base Directory
Specification
* Distribution
. automake 1.17, autoconf 2.72, gettext 0.22.5, libtool 2.5.3
- Update patches to compile for the new version
- texinfo-perl-5.42.patch
- texinfo-zlib.patch
- Fix texinfo-zlib.patch
texinfo-zlib.patch had the wrong variable referenced in the error check for
reopening a file. Furthermore, it could potentially have leaked the memory a
string. Both are minor bugs and very unlikely to occour
-------------------------------------------------------------------
Mon Jul 14 09:21:36 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
- Add texinfo-perl-5.42.patch: Fix syntax to be unambiguous
if (! $str eq '') is not really clear; is it
(!$str) eq ''
or
!($str eq '')
Perl 5.42 rightly flagges this syntax with:
Possible precedence problem between ! and string eq
Assuming !($str eq '') was meant, we can rewrite this as
$str ne '', which happens to also be used in multiple places
already (sometimes just a few lines further down in the same
files)
-------------------------------------------------------------------
Fri Apr 4 17:04:55 UTC 2025 - Friedrich Haubensak <hsk17@mail.de>
- add -std=gnu17 to CFLAGS to fix gcc15 compile time error
(flag can be dropped w/ release 7.2)
------------------------------------------------------------------
Fri Feb 2 13:05:43 UTC 2024 - Dr. Werner Fink <werner@suse.de>
- Update to version 7.1 (18 October 2023)
* Language
. new generic definition commands, @defblock, @defline and @deftypeline,
for definitions without automatic index entries
. new @linemacro facility eases use of generic definition commands
. new command @link creates plain links (supported output formats only)
. @cartouche takes an argument to specify the cartouche title
. you can use the new commands @nodedescription and @nodedescriptionblock
to give text to be used in menu descriptions in Info and HTML output
* texi2any
. @itemx at the beginning of a @table is now an error, not a warning
. better validity checking of deeply nested commands
. check that @set and @clear only appear at the start of a line
. warn about missing menu entries even if CHECK_NORMAL_MENU_STRUCTURE is
not set. you can turn this off by setting CHECK_MISSING_MENU_ENTRY to 0.
. no longer use --enable-encoding and --disable-encoding to determine
whether to output encoded characters (instead of entities or commands)
for HTML, XML, DocBook and LaTeX; instead, use the value of the
OUTPUT_CHARACTERS customization variable.
. stricter checks on input encoding, in particular more warnings and
errors with malformed UTF-8
. support any input file encoding if support exists in the operating
system, not just a selected list of encodings
. resolve an alias referring to another alias at definition time
. internally, use "source marks" to keep all Texinfo source information that
is not in the final tree (location of macros, values and included files
expansion, @if* blocks, DEL comment, and @ protecting end of line on @def*
lines)
. HTML output:
. format @subentry and index entries with @seealso or @seeentry in a more
similar way to printed output
. output @shortcontents before @contents by default
. omit colons after index entries by default. this can still be
configured with INDEX_ENTRY_COLON.
. add @example syntax highlighting as a texi2any extension
. no more capitalization of @sc argument in HTML Cross-references
. change @point expansion to U+22C6 in HTML Cross-references
. if a @node is not associated with a sectioning command but is
followed by a heading command not usually associated to nodes
such as @heading and this command appears before other formatted
content, the heading command is assumed to supply the node heading.
you can customize this with USE_NEXT_HEADING_FOR_LONE_NODE.
. Info output:
. new variable ASCII_DASHES_AND_QUOTES, on by default,
outputs ASCII characters for literal quote or hyphen characters
in source, rather than UTF-8. this makes it easier to search
Info files.
. new ASCII_GLYPH variable for using ASCII renditions for glyph
commands (like @bullet)
. ASCII_PUNCTUATION still includes the effect of these new variables.
. new variables AUTO_MENU_DESCRIPTION_ALIGN_COLUMN and AUTO_MENU_MAX_WIDTH
control the format of descriptions in generated menus
. XML output:
. place menu leading text and menu separators in elements instead
of attributes
* texi2dvi
. macro expansion with texi2any requires at least version 5.0 (only
happens with --expand option or with very old texinfo.tex)
* texinfo.tex
. in @code, ` and ' output by default with backtick and undirected
single quote glyphs in the typewriter font. you can still configure
this using the @codequoteundirected/@codequotebacktick commands.
. do not insert a space for @ def line continuation, matching the behavior
of texi2any
. align section titles in table of contents when more than 10 sections
. microtype is off by default, for speed
. page headings generation is no longer linked to the @titlepage command
* info
. when going Up, position cursor on menu entry for current node
. allow mouse scrolling support regardless of termcap entries. this
supports some more xterm configurations.
. do not use "/index" as a possible file extension for Info files
* texi2any
. fix performance regression when Perl binary extension (XS) modules
are not being used (e.g. with TEXINFO_XS=omit)
* info
. further fix of recoding of UTF-8 files to ASCII to avoid text
disappearing from nodes
. avoid possible freeze at start of a file with `-v nodeline=pointers'
* texi2any
. do not distribute architecture-dependent files
. build fixed on OpenIndiana 11
* info
. further fix of recoding of UTF-8 files to ASCII
. fix check for presence of man pages on Solaris
* install-info
. fix build by avoiding function name clash on some platforms
. compiler warning re strncat silenced
* texi2any
. avoid crashes on empty @image argument and other potential crashes
(with "Can't use an undefined value as an ARRAY reference" message)
. avoid hang on @ref command inside section command
* info
. fix recoding of UTF-8 files to ASCII when run in C locale
* js
. index search fixed for new HTML output
. some obsolete files removed from distribution
- Port patch texinfo-zlib.patch
- Use libzio 1.09 to support compressed 'dir' data base files
-------------------------------------------------------------------
Sun Mar 26 19:52:00 UTC 2023 - Andreas Stieger <andreas.stieger@gmx.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package texinfo
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,9 +17,9 @@
# perl modules are not installed in global path
%global __provides_exclude ^(libtool|perl)\\(
%global __provides_exclude ^perl\\(
Name: texinfo
Version: 7.0.3
Version: 7.2
Release: 0
Summary: Tools for creating documentation from texinfo sources
License: GPL-3.0-or-later
@@ -30,29 +30,43 @@ Source2: %{name}.keyring
Source42: %{name}-rpmlintrc
Patch0: texinfo-zlib.patch
Patch1: install-info_exitcode.patch
BuildRequires: automake
Patch2: texinfo-perl-5.42.patch
BuildRequires: gawk
BuildRequires: glibc-locale
BuildRequires: help2man
BuildRequires: libbz2-devel
BuildRequires: libzio-devel
BuildRequires: libzio-devel >= 1.09
BuildRequires: ncurses-devel
BuildRequires: perl
BuildRequires: perl-Text-Unidecode
BuildRequires: perl-gettext
BuildRequires: perl-macros
BuildRequires: zlib-devel
BuildRequires: perl(Data::Compare)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Unicode::Normalize)
Requires: /usr/bin/awk
Requires: /usr/bin/cmp
Requires: /usr/bin/diff
Requires: /usr/bin/grep
Requires: /usr/bin/sed
Requires: /usr/bin/tar
Requires: /usr/bin/uniq
Requires: makeinfo = %{version}
Requires: perl
Requires: perl-Text-Unidecode
Requires: perl-gettext
Requires: texlive-biber
Requires: texlive-bibtex
Requires: texlive-dvipdfmx
Requires: texlive-dvips
Requires: texlive-latex
Requires: texlive-makeindex
Requires: texlive-pdftex
Requires: texlive-tex
Requires: texlive-texinfo
Requires: perl(Encode)
Requires: perl(File::Spec)
Recommends: texi2html
Recommends: texi2roff
Recommends: texlive-thumbpdf
%description
Texinfo is a documentation system that uses a single source file to
@@ -88,8 +102,11 @@ reader" to read the manuals.
%package -n makeinfo
Summary: Translator for converting texinfo documents to info format
# /usr/share/texinfo/Texinfo/Convert/NodeNameNormalization.pm uses Text::Unidecode
Requires: perl(Text::Unidecode)
Requires: gettext-runtime >= 0.12.2
Requires: perl(Encode)
Requires: perl(File::Spec)
Requires: perl(Unicode::Normalize)
Recommends: perl(File::ShareDir)
%requires_eq perl
Suggests: texinfo
Provides: texinfo:%{_bindir}/makeinfo
@@ -105,20 +122,16 @@ or standalone GNU Info.
%lang_package -n makeinfo
%prep
%setup -q
%autopatch -p1
%autosetup -p1
%build
LANG=en_GB.UTF-8
export LANG
%configure \
--with-external-Text-Unidecode \
--enable-perl-xs
%make_build
%install
%make_install
rm -f %{buildroot}%{_libdir}/texinfo/*.a
rm -f %{buildroot}%{_libdir}/texi2any/*.a
if cmp %{buildroot}%{_bindir}/pdftexi2dvi %{buildroot}%{_bindir}/texi2pdf
then
rm -vf %{buildroot}%{_bindir}/pdftexi2dvi
@@ -130,6 +143,7 @@ then
ln -sf texi2pdf.1%{?ext_man} %{buildroot}%{_mandir}/man1/pdftexi2dvi.1%{?ext_man}
fi
# For SUSE systems pre 15.5, install to /sbin, otherwise install to /usr/sbin
%if 0%{?suse_version} < 1550
mkdir -p %{buildroot}/sbin
mv %{buildroot}%{_bindir}/install-info %{buildroot}/sbin/
@@ -144,8 +158,6 @@ ln -sf ../sbin/install-info %{buildroot}%{_bindir}/install-info
%find_lang %{name}_document %{name}_document.lang
%check
LANG=en_GB.UTF-8
export LANG
make %{?_smp_mflags} check
%global trigger_functions %{expand:
@@ -167,7 +179,11 @@ end
--
}
%if 0%{?suse_version} >= 1699
%transfiletriggerin -n info -p <lua> -- %{_infodir}
%else
%filetriggerin -n info -p <lua> -- %{_infodir}
%endif
%trigger_functions
file = rpm.next_file()
while file do
@@ -180,7 +196,11 @@ while file do
file = rpm.next_file()
end
%if 0%{?suse_version} >= 1699
%transfiletriggerun -n info -p <lua> -- %{_infodir}
%else
%filetriggerun -n info -p <lua> -- %{_infodir}
%endif
%trigger_functions
file = rpm.next_file()
while file do
@@ -203,7 +223,7 @@ end
%{_bindir}/texi2pdf
%{_bindir}/texindex
%{_bindir}/pdftexi2dvi
%{_infodir}/texinfo*%{ext_info}
%{_infodir}/texinfo.info*%{ext_info}
%{_mandir}/man1/pod2texi.1%{?ext_man}
%{_mandir}/man1/texindex.1%{?ext_man}
%{_mandir}/man1/texi2dvi.1%{?ext_man}
@@ -218,12 +238,14 @@ end
%defattr(-,root,root,0755)
%{_bindir}/makeinfo
%{_bindir}/texi2any
%{_infodir}/texi2any_*%{ext_info}
%{_infodir}/texi2any_api.info%{ext_info}
%{_infodir}/texi2any_internals.info%{ext_info}
%{_mandir}/man1/makeinfo.1%{?ext_man}
%{_mandir}/man1/texi2any.1%{?ext_man}
%{_libdir}/texinfo
%{_libdir}/texi2any
%exclude %{_datadir}/texinfo/texindex.awk
%{_datadir}/texinfo/
%{_datadir}/texinfo
%{_datadir}/texi2any
%files -n info-lang -f %{name}.lang