- Requires latex2html and perl(Text::Unidecode)
- add ownership for directories common for the texinfo implementations - correct license
This commit is contained in:
parent
adfe1fc5d2
commit
9d93e6bfb2
@ -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 <pertusus@free.fr> 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 <jnovy@redhat.com> 1.78-1
|
||||
- update to 1.78
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user