+Summary: Pretty-printer for converting C/C++ code to a LaTeX listing
+Summary(pl): Konwerter listingów C/C++ na LaTeX
+Name: C++2LaTeX
+%define ver 1_1pl1
+Version: 1.1pl1
+Release: 1
+License: GPL
+Group: Applications/Publishing/TeX
+Group(de): Applikationen/Publizieren/TeX
+Group(pl): Aplikacje/Publikowanie/TeX
+Source0: ftp://ftp.tex.ac.uk/tex-archive/support/%{name}-%{ver}.tar.gz
+Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRequires: flex
+
+%description
+C++2LaTeX takes as input a C or C++ source file and outputs a LaTeX
+file that is a beautified listing (optionally the output can contain
+the 'documentstyle' header and so on).
+
+%description -l pl
+C++2LaTeX przyjmuje na wej¶cie kod ¼ród³owy w C lub C++, a na wyj¶cie
+wysy³a plik w LaTeX-u z ³adnym listingiem.
+
+%prep
+%setup -q -n %{name}-%{ver}
+
+%build
+rm -f *.o c++2latex
+%{__make} CFLAGS="%{?debug:-O0 -g}%{!?debug:$RPM_OPT_FLAGS} -DUSE_NAME"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
+
+install c++2latex $RPM_BUILD_ROOT%{_bindir}
+install c++2latex.1 $RPM_BUILD_ROOT%{_mandir}/man1
+ln -sf c++2latex $RPM_BUILD_ROOT%{_bindir}/c2latex
+echo '.so c++2latex.1' >$RPM_BUILD_ROOT%{_mandir}/man1/c2latex.1
+
+gzip -9nf ChangeLog README
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/*
+%doc *.gz
+%{_mandir}/man1/*