texi2html/texi2html.spec

95 lines
2.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package texi2html
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: texi2html
Version: 5.0
Release: 0
Summary: Tool for converting texinfo documents to HTML
License: GPL-2.0+
Group: Productivity/Publishing/Texinfo
Url: http://www.nongnu.org/texi2html/
Source0: http://download.savannah.nongnu.org/releases/texi2html/texi2html-%{version}.tar.bz2
Patch1: texi2html-1.78.dif
Patch2: config-guess-sub-update.patch
Patch3: texi2html-5584.patch
BuildRequires: perl
BuildRequires: perl-Text-Unidecode
BuildRequires: perl-gettext
BuildRequires: perl-libintl-perl
Requires: perl-Text-Unidecode
Requires: perl-gettext
Requires: perl-libintl-perl
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Conflicts: texinfo < 5.0
%description
The basic purpose of texi2html is to convert Texinfo documents into HTML,
and other formats. Configuration files written in perl provide fine degree
of control over the final output, allowing most every aspect of the final
output not specified in the Texinfo input file to be specified.
%lang_package
%prep
%setup -q
%patch1
%patch2
%patch3 -p0 -b .random
# Avoid regenerated translations.pl as this becomes broken
mkdir i18n
touch i18n/en.thl
touch translations.pl
%build
LANG=POSIX
LC_ALL=POSIX
export LANG LC_ALL
%configure --enable-nls --with-encode --with-gnu-ld --with-unidecode --with-external-libintl-perl
make %{?_smp_mflags}
%install
%make_install
rm -rf %{buildroot}%{_datadir}/texinfo/
rm -rf %{buildroot}%{_datadir}/locale/*.us-ascii
rm -rf %{buildroot}%{_datadir}/%{name}/lib/libintl-perl/
%find_lang %name
%find_lang %{name}_document
%post
%install_info --info-dir=%{_infodir} %{_infodir}/texi2html.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/texi2html.info.gz
%files
%defattr(-,root,root)
%doc COPYING NEWS README doc/texi2html.html
%{_bindir}/texi2html
%{_infodir}/texi2html.info.gz
%{_mandir}/man1/texi2html.1.gz
%{_datadir}/texi2html
%files lang -f %name.lang -f %{name}_document.lang
%defattr(-,root,root)
%changelog