1 Summary: Pretty-printer for converting C/C++ code to a LaTeX listing
2 Summary(pl.UTF-8): Konwerter listingów C/C++ na LaTeX
8 Group: Applications/Publishing/TeX
9 Source0: ftp://ftp.tex.ac.uk/tex-archive/support/%{name}-%{ver}.tar.gz
10 # Source0-md5: 439cf4f33983848f5d6761c6f605f631
12 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 C++2LaTeX takes as input a C or C++ source file and outputs a LaTeX
16 file that is a beautified listing (optionally the output can contain
17 the 'documentstyle' header and so on).
19 %description -l pl.UTF-8
20 C++2LaTeX przyjmuje na wejście kod źródłowy w C lub C++, a na wyjście
21 wysyła plik w LaTeXu z ładnym listingiem.
24 %setup -q -n %{name}-%{ver}
29 CFLAGS="%{rpmcflags} -DUSE_NAME"
32 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
36 install c++2latex $RPM_BUILD_ROOT%{_bindir}
37 install c++2latex.1 $RPM_BUILD_ROOT%{_mandir}/man1
38 ln -sf c++2latex $RPM_BUILD_ROOT%{_bindir}/c2latex
39 echo '.so c++2latex.1' >$RPM_BUILD_ROOT%{_mandir}/man1/c2latex.1
42 rm -rf $RPM_BUILD_ROOT
45 %defattr(644,root,root,755)
47 %attr(755,root,root) %{_bindir}/*