From c8a6a79feb5f0fadb9dc6298914f33106aa55de3 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Tue, 6 Mar 2001 17:06:22 +0000 Subject: [PATCH] - 1.1pl1 - adapted for PLD Changed files: C++2LaTeX.spec -> 1.1 --- C++2LaTeX.spec | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 C++2LaTeX.spec diff --git a/C++2LaTeX.spec b/C++2LaTeX.spec new file mode 100644 index 0000000..f063906 --- /dev/null +++ b/C++2LaTeX.spec @@ -0,0 +1,50 @@ +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/* -- 2.43.0