From 9d93e6bfb2a76c395530f69809850e60fc7d3913 Mon Sep 17 00:00:00 2001 From: pertusus Date: Tue, 28 Aug 2007 12:12:29 +0000 Subject: [PATCH] - Requires latex2html and perl(Text::Unidecode) - add ownership for directories common for the texinfo implementations - correct license --- texi2html.spec | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/texi2html.spec b/texi2html.spec index 23665f3..33fe633 100644 --- a/texi2html.spec +++ b/texi2html.spec @@ -1,7 +1,10 @@ Name: texi2html Version: 1.78 -Release: 1%{?dist} -License: GPL +Release: 2%{?dist} +# GPLv2+ is for the code +# MIT-like for the documentation +# CC-BY-SA or GPLv2 for the images +License: GPLv2+ and MIT-like and (CC-BY-SA or GPLv2) Group: Applications/Text Summary: A highly customizable texinfo to HTML and other formats translator Source0: http://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.bz2 @@ -9,6 +12,11 @@ URL: http://www.nongnu.org/texi2html/ Requires(post): /sbin/install-info Requires(preun): /sbin/install-info Requires: perl >= 5.004 +Requires: latex2html +BuildRequires: perl(Text::Unidecode) +# not detected automatically because it is required at runtime based on +# user configuration +Requires: perl(Text::Unidecode) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -30,15 +38,20 @@ rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT%{_infodir}/dir +# directories shared by all the texinfo implementations for common +# config files, like htmlxref.cnf +mkdir -p $RPM_BUILD_ROOT%{_datadir}/texinfo $RPM_BUILD_ROOT%{_sysconfdir}/texinfo + + %clean rm -rf $RPM_BUILD_ROOT %post -/sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir || : +/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : %preun if [ $1 = 0 ]; then - /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir || : + /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || : fi %files @@ -55,8 +68,15 @@ fi %{_datadir}/%{name}/i18n/* %dir %{_datadir}/%{name}/images/ %{_datadir}/%{name}/images/* +%dir %{_datadir}/texinfo +%dir %{_sysconfdir}/texinfo %changelog +* Tue Aug 28 2007 Patrice Dumas 1.78-2 +- Requires latex2html and perl(Text::Unidecode) +- add ownership for directories common for the texinfo implementations +- correct license + * Wed Jun 6 2007 Jindrich Novy 1.78-1 - update to 1.78