]> git.pld-linux.org Git - packages/C++2LaTeX.git/blob - C++2LaTeX.spec
fixed a small typo
[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 BuildRequires:  flex
11 Buildroot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13 %description
14 C++2LaTeX takes as input a C or C++ source file and outputs a LaTeX
15 file that is a beautified listing (optionally the output can contain
16 the 'documentstyle' header and so on).
17
18 %description -l pl
19 C++2LaTeX przyjmuje na wej¶cie kod ¼ród³owy w C lub C++, a na wyj¶cie
20 wysy³a plik w LaTeX-u z ³adnym listingiem.
21
22 %prep
23 %setup -q -n %{name}-%{ver}
24
25 %build
26 rm -f *.o c++2latex
27 %{__make} CFLAGS="%{rpmcflags} -DUSE_NAME"
28
29 %install
30 rm -rf $RPM_BUILD_ROOT
31
32 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
33
34 install c++2latex       $RPM_BUILD_ROOT%{_bindir}
35 install c++2latex.1     $RPM_BUILD_ROOT%{_mandir}/man1
36 ln -sf c++2latex        $RPM_BUILD_ROOT%{_bindir}/c2latex
37 echo '.so c++2latex.1' >$RPM_BUILD_ROOT%{_mandir}/man1/c2latex.1
38
39 gzip -9nf ChangeLog README
40
41 %clean
42 rm -rf $RPM_BUILD_ROOT
43
44 %files
45 %defattr(644,root,root,755)
46 %attr(755,root,root) %{_bindir}/*
47 %doc *.gz
48 %{_mandir}/man1/*
This page took 0.061386 seconds and 3 git commands to generate.