1 Summary: Pretty-printer for converting C/C++ code to a LaTeX listing
2 Summary(pl): 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
11 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14 C++2LaTeX takes as input a C or C++ source file and outputs a LaTeX
15 file that is a beautified listing (optionally the output can contain
16 the 'documentstyle' header and so on).
19 C++2LaTeX przyjmuje na wej¶cie kod ¼ród³owy w C lub C++, a na wyj¶cie
20 wysy³a plik w LaTeX-u z ³adnym listingiem.
23 %setup -q -n %{name}-%{ver}
27 %{__make} CFLAGS="%{rpmcflags} -DUSE_NAME"
30 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
34 install c++2latex $RPM_BUILD_ROOT%{_bindir}
35 install c++2latex.1 $RPM_BUILD_ROOT%{_mandir}/man1
36 ln -sf c++2latex $RPM_BUILD_ROOT%{_bindir}/c2latex
37 echo '.so c++2latex.1' >$RPM_BUILD_ROOT%{_mandir}/man1/c2latex.1
39 gzip -9nf ChangeLog README
42 rm -rf $RPM_BUILD_ROOT
45 %defattr(644,root,root,755)
46 %attr(755,root,root) %{_bindir}/*