1 Summary: Latex2man - translate UNIX manual pages written with LaTeX
2 Summary(pl.UTF-8): Latex2man - tłumaczenie uniksowych stron podręcznika napisanych w LaTeXu
6 License: LaTeX Project Public License
7 Group: Applications/Text
8 Source0: http://mirror.ctan.org/support/%{name}.zip
9 # Source0-md5: 2b170c92f2e7a70fc29c7e53b8d6f459
10 URL: ftp://tug.ctan.org/pub/tex-archive/help/Catalogue/entries/latex2man.html
11 BuildRequires: rpm-perlprov
12 BuildRequires: sed >= 4.0
13 Requires(post,postun): /usr/bin/texhash
15 Requires: texlive-latex
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define texhash umask 022; [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2;
21 Latex2man is a tool to translate UNIX manual pages written with LaTeX
22 into a format understood by the UNIX man(1) command. Alternatively
23 HTML, TexInfo, or LaTeX code can be produced too.
25 %description -l pl.UTF-8
26 Latex2man to narzędzie do tłumaczenia uniksowych stron podręcznika
27 napisanych w LaTeXu do formatu rozumianego przez uniksowe polecenie
28 man(1). Alternatywnie może być tworzony kod HTML, TexInfo lub LaTeXa.
33 # disable install-info
34 %{__sed} -i -e '/install-info/d' Makefile
35 # remove bogus cleaning on every stage (removes some files to be installed)
36 %{__sed} -i -e '/\$(MAKE) clean/d;s/install: realclean all/install: all/' Makefile
37 # kill /usr/bin/env wrapper (and ensure perl shebang is left)
38 %{__sed} -i -e '1d' latex2man
39 grep -q '^#!/usr/bin/perl' latex2man
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_infodir},%{_docdir}/html,%{_datadir}/texmf/tex/latex/latex2man}
49 BIN_DIR=$RPM_BUILD_ROOT%{_bindir} \
50 MAN_DIR=$RPM_BUILD_ROOT%{_mandir} \
51 HTML_DIR=$RPM_BUILD_ROOT%{_docdir}/html \
52 INFO_DIR=$RPM_BUILD_ROOT%{_infodir} \
53 CFG_DIR=$RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/latex2man \
54 TEX_DIR=$RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/latex2man
56 # keep just man format
57 %{__rm} $RPM_BUILD_ROOT%{_infodir}/{latex2man.info,dir} \
58 $RPM_BUILD_ROOT%{_docdir}/html/latex2man.*
61 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
72 %attr(755,root,root) %{_bindir}/latex2man
73 %{_datadir}/texmf/tex/latex/latex2man
74 %{_mandir}/man1/latex2man.1*