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 Group(de): Applikationen/Publizieren/TeX
10 Group(pl): Aplikacje/Publikowanie/TeX
11 Source0: ftp://ftp.tex.ac.uk/tex-archive/support/%{name}-%{ver}.tar.gz
12 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 C++2LaTeX takes as input a C or C++ source file and outputs a LaTeX
17 file that is a beautified listing (optionally the output can contain
18 the 'documentstyle' header and so on).
21 C++2LaTeX przyjmuje na wej¶cie kod ¼ród³owy w C lub C++, a na wyj¶cie
22 wysy³a plik w LaTeX-u z ³adnym listingiem.
25 %setup -q -n %{name}-%{ver}
29 %{__make} 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
41 gzip -9nf ChangeLog README
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
48 %attr(755,root,root) %{_bindir}/*