Filter bogus perl requires/provides, Enable upstream test suite
This commit is contained in:
parent
1d7bef80d4
commit
af9bf89d49
4
filter-provides-texinfo.sh
Executable file
4
filter-provides-texinfo.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
/usr/lib/rpm/find-provides "$@" | grep -v 'perl('
|
||||
exit 0
|
4
filter-requires-texinfo.sh
Executable file
4
filter-requires-texinfo.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
/usr/lib/rpm/find-provides "$@" | grep 'perl(\(Text::Unidecode\|Unicode::EastAsianWidth\|Data::Dumper\|Locale::Messages\))'
|
||||
exit 0
|
22
texinfo.spec
22
texinfo.spec
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user