texi2html/texi2html.spec

83 lines
2.2 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: texi2html
Version: 5.0
Release: 2mamba
Summary: A Perl script which converts Texinfo source files to HTML output
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.nongnu.org/texi2html/texi2html-old.html
Source: http://download.savannah.gnu.org/releases/texi2html/texi2html-%{version}.tar.bz2
License: GPL, Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl-libintl
BuildRequires: perl-Unicode-EastAsianWidth
Requires: perl >= %perl_major_ver
Requires: perl-libintl
Requires: perl-Unicode-EastAsianWidth
Requires(post): %{__install_info}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Texi2HTML is a Perl script which converts Texinfo source files to HTML output.
%prep
%setup -q -n texi2html-%{version}
sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub
%build
%configure \
--with-external-libintl-perl \
--with-external-Unicode-EastAsianWidth
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
# external libraries are installed anyways
rm -rf %{buildroot}%{_datadir}/texi2html/lib
%find_lang %{name}
%find_lang %{name}_document
cat %{name}_document.lang >> %{name}.lang
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
%install_info %{name}.info
:
%preun
%uninstall_info %{name}.info
:
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/texi2html
%{_infodir}/texi2html.info.gz
%{_mandir}/man1/texi2html.1.gz
%dir %{_datadir}/texi2html
%{_datadir}/texi2html/*
%{_datadir}/texinfo/html/texi2html.html
%{_datadir}/texinfo/init/book.init
%{_datadir}/texinfo/init/chm.init
%{_datadir}/texinfo/init/html32.init
%{_datadir}/texinfo/init/mediawiki.init
%{_datadir}/texinfo/init/tex4ht.init
%doc AUTHORS COPYING
%changelog
* Mon Aug 19 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0-2mamba
- rebuilt with system perl-libintl and perl-Unicode-EastAsianWidth
* Mon Aug 19 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0-1mamba
- package created by silvan using the webbuild interface