]> git.pld-linux.org Git - packages/texi2html.git/blame - texi2html.spec
- unify locale name (no -> nb)
[packages/texi2html.git] / texi2html.spec
CommitLineData
467cf7fc 1# NOTE: 5.0 is likely to be the last separate texi2html release (as merged into texinfo)
2489c60d 2%include /usr/lib/rpm/macros.perl
d86ddaa0
ZU
3Summary: texi2html is a Perl script that converts Texinfo files to HTML
4Summary(hu.UTF-8): texi2html egy Perl szkript, amely Texinfo fájlokat konvertál HTML-be
467cf7fc 5Summary(pl.UTF-8): texi2html - skrypt Perla konwertujący pliki Texinfo do HTML-a
d86ddaa0 6Name: texi2html
467cf7fc
JB
7Version: 5.0
8Release: 1
9License: GPL v2+
10Group: Development/Tools
11Source0: http://download.savannah.gnu.org/releases/texi2html/%{name}-%{version}.tar.bz2
12# Source0-md5: f15ac876fcdc8be865b16535f480aa54
13Patch0: %{name}-info.patch
14Patch1: %{name}-perl.patch
d86ddaa0 15URL: http://www.nongnu.org/texi2html/
467cf7fc
JB
16BuildRequires: autoconf >= 2.53
17BuildRequires: automake >= 1:1.9
18BuildRequires: gettext-devel >= 0.14
19BuildRequires: perl-Encode
20BuildRequires: perl-base
2489c60d 21BuildRequires: rpm-perlprov
467cf7fc
JB
22BuildRequires: texinfo
23Requires: perl-Unicode-EastAsianWidth
24Requires: perl-libintl
25Requires: texinfo >= 5.0
26Suggests: perl-Encode
27Suggests: perl-Text-Unidecode
d86ddaa0
ZU
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31texi2html is a Perl script that converts Texinfo files to HTML.
32
33%description -l hu.UTF-8
34texi2html egy Perl szkript, amely Texinfo fájlokat konvertál HTML-be.
35
467cf7fc
JB
36%description -l pl.UTF-8
37texi2html to skrypt Perla konwertujący pliki Texinfo do HTML-a.
38
d86ddaa0
ZU
39%prep
40%setup -q
467cf7fc
JB
41%patch0 -p1
42%patch1 -p1
d86ddaa0
ZU
43
44%build
467cf7fc
JB
45%{__gettextize}
46cp -f po/Makefile.in.in po_document/
47cp -f po/Makefile.in.in po_messages/
d86ddaa0
ZU
48%{__aclocal}
49%{__autoconf}
467cf7fc
JB
50%{__automake}
51%configure \
52 --with-external-Unicode-EastAsianWidth \
53 --with-external-libintl-perl
2489c60d 54%{__make}
d86ddaa0
ZU
55
56%install
57rm -rf $RPM_BUILD_ROOT
58
59%{__make} install \
60 DESTDIR=$RPM_BUILD_ROOT
61rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
62
467cf7fc
JB
63# only .us-ascii or base exists - merge them(?)
64for d in $RPM_BUILD_ROOT%{_localedir}/*.us-ascii ; do
65 outd=$RPM_BUILD_ROOT%{_localedir}/$(basename $d .us-ascii)/LC_MESSAGES
66 install -d $outd
67 %{__mv} $d/LC_MESSAGES/texi2html_document.mo $outd
68done
2edbc002 69%{__mv} $RPM_BUILD_ROOT%{_localedir}/{no,nb}
467cf7fc
JB
70%find_lang %{name} --all-name
71
d86ddaa0
ZU
72%clean
73rm -rf $RPM_BUILD_ROOT
74
467cf7fc 75%files -f %{name}.lang
d86ddaa0 76%defattr(644,root,root,755)
467cf7fc 77%doc AUTHORS ChangeLog NEWS README
d86ddaa0 78%attr(755,root,root) %{_bindir}/texi2html
d86ddaa0 79%{_datadir}/texi2html
467cf7fc 80%{_datadir}/texinfo/init/*.init
33b3b5ce 81%dir %{_datadir}/texinfo/html
d86ddaa0 82%doc %{_datadir}/texinfo/html/texi2html.html
467cf7fc
JB
83%{_mandir}/man1/texi2html*
84%{_infodir}/texi2html.info*
This page took 0.033724 seconds and 4 git commands to generate.