Filter bogus perl requires/provides, Enable upstream test suite

This commit is contained in:
Vitezslav Crhonek 2014-10-30 15:56:37 +01:00
parent 1d7bef80d4
commit af9bf89d49
3 changed files with 28 additions and 2 deletions

4
filter-provides-texinfo.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
/usr/lib/rpm/find-provides "$@" | grep -v 'perl('
exit 0

4
filter-requires-texinfo.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
/usr/lib/rpm/find-provides "$@" | grep 'perl(\(Text::Unidecode\|Unicode::EastAsianWidth\|Data::Dumper\|Locale::Messages\))'
exit 0

View File

@ -1,15 +1,21 @@
%global _use_internal_dependency_generator 0
%global tex_texinfo %{_datadir}/texmf/tex/texinfo
Summary: Tools needed to create Texinfo format documentation files
Name: texinfo
Version: 5.2
Release: 6%{?dist}
Release: 7%{?dist}
License: GPLv3+
Group: Applications/Publishing
Url: http://www.gnu.org/software/texinfo/
Source0: ftp://ftp.gnu.org/gnu/texinfo/texinfo-%{version}.tar.xz
Source1: ftp://ftp.gnu.org/gnu/texinfo/texinfo-%{version}.tar.xz.sig
Source2: info-dir
# Source3: script for filtering out false perl requires
Source3: filter-requires-texinfo.sh
# Source4: script for filtering out false perl provides
Source4: filter-provides-texinfo.sh
Patch0: texinfo-4.12-zlib.patch
Patch1: texinfo-4.13a-powerpc.patch
# Patch2: bz#1053129, already upstream
@ -17,8 +23,12 @@ Patch2: texinfo-5.2-non-existing-info-page-segfault.patch
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
Requires: perl >= 5.7.3, perl(Text::Unidecode)
Requires: perl(Unicode::EastAsianWidth)
Requires: perl(Unicode::EastAsianWidth), perl(Data::Dumper), perl(Locale::Messages)
BuildRequires: zlib-devel, ncurses-devel, help2man, perl(Data::Dumper)
BuildRequires: perl(Locale::Messages), perl(Unicode::EastAsianWidth), perl(Text::Unidecode)
%global __find_requires %{SOURCE3}
%global __find_provides %{SOURCE4}
%description
Texinfo is a documentation system that can produce both online
@ -80,6 +90,10 @@ mv $RPM_BUILD_ROOT%{_bindir}/install-info $RPM_BUILD_ROOT/sbin
%find_lang %{name}
%find_lang %{name}_document
%check
export ALL_TESTS=yes
make %{?_smp_mflags} check
%post
if [ -f %{_infodir}/texinfo.gz ]; then # --excludedocs?
/sbin/install-info %{_infodir}/texinfo.gz %{_infodir}/dir || :
@ -155,6 +169,10 @@ fi
%{_mandir}/man1/pdftexi2dvi.1*
%changelog
* Thu Oct 30 2014 Vitezslav Crhonek <vcrhonek@redhat.com> - 5.2-7
- Filter bogus perl requires/provides
- Enable upstream test suite
* Tue Oct 14 2014 Vitezslav Crhonek <vcrhonek@redhat.com> - 5.2-6
- Use perl-Unicode-EastAsianWidth