]> git.pld-linux.org Git - SPECS.git/blob - latex2man.spec
SPECS updated Tue 30 Apr 15:06:09 CEST 2024
[SPECS.git] / latex2man.spec
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
3 Name:           latex2man
4 Version:        1.26
5 Release:        2
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
14 Requires:       perl-base
15 Requires:       texlive-latex
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         texhash umask 022; [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2;
19
20 %description
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.
24
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.
29
30 %prep
31 %setup -q -n %{name}
32
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
40
41 %build
42 %{__make}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_infodir},%{_docdir}/html,%{_datadir}/texmf/tex/latex/latex2man}
47
48 %{__make} install \
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
55
56 # keep just man format
57 %{__rm} $RPM_BUILD_ROOT%{_infodir}/{latex2man.info,dir} \
58         $RPM_BUILD_ROOT%{_docdir}/html/latex2man.*
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %post
64 %texhash
65
66 %postun
67 %texhash
68
69 %files
70 %defattr(644,root,root,755)
71 %doc CHANGES README
72 %attr(755,root,root) %{_bindir}/latex2man
73 %{_datadir}/texmf/tex/latex/latex2man
74 %{_mandir}/man1/latex2man.1*
This page took 0.678475 seconds and 3 git commands to generate.