]> git.pld-linux.org Git - packages/C++2LaTeX.git/blob - C++2LaTeX.spec
- s/TeX-a/TeXa/ i podobne
[packages/C++2LaTeX.git] / C++2LaTeX.spec
1 Summary:        Pretty-printer for converting C/C++ code to a LaTeX listing
2 Summary(pl):    Konwerter listingów C/C++ na LaTeX
3 Name:           C++2LaTeX
4 %define         ver     1_1pl1
5 Version:        1.1pl1
6 Release:        2
7 License:        GPL
8 Group:          Applications/Publishing/TeX
9 Source0:        ftp://ftp.tex.ac.uk/tex-archive/support/%{name}-%{ver}.tar.gz
10 # Source0-md5:  439cf4f33983848f5d6761c6f605f631
11 BuildRequires:  flex
12 Buildroot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 C++2LaTeX takes as input a C or C++ source file and outputs a LaTeX
16 file that is a beautified listing (optionally the output can contain
17 the 'documentstyle' header and so on).
18
19 %description -l pl
20 C++2LaTeX przyjmuje na wej¶cie kod ¼ród³owy w C lub C++, a na wyj¶cie
21 wysy³a plik w LaTeXu z ³adnym listingiem.
22
23 %prep
24 %setup -q -n %{name}-%{ver}
25
26 %build
27 rm -f *.o c++2latex
28 %{__make} CFLAGS="%{rpmcflags} -DUSE_NAME"
29
30 %install
31 rm -rf $RPM_BUILD_ROOT
32
33 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
34
35 install c++2latex       $RPM_BUILD_ROOT%{_bindir}
36 install c++2latex.1     $RPM_BUILD_ROOT%{_mandir}/man1
37 ln -sf c++2latex        $RPM_BUILD_ROOT%{_bindir}/c2latex
38 echo '.so c++2latex.1' >$RPM_BUILD_ROOT%{_mandir}/man1/c2latex.1
39
40 %clean
41 rm -rf $RPM_BUILD_ROOT
42
43 %files
44 %defattr(644,root,root,755)
45 %doc ChangeLog README
46 %attr(755,root,root) %{_bindir}/*
47 %{_mandir}/man1/*
This page took 0.069605 seconds and 3 git commands to generate.