- 1.1pl1 C++2LaTeX-1_1pl1-1
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 6 Mar 2001 17:06:22 +0000 (17:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- adapted for PLD

Changed files:
    C++2LaTeX.spec -> 1.1

C++2LaTeX.spec [new file with mode: 0644]

diff --git a/C++2LaTeX.spec b/C++2LaTeX.spec
new file mode 100644 (file)
index 0000000..f063906
--- /dev/null
@@ -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/*
This page took 0.071372 seconds and 4 git commands to generate.