]> git.pld-linux.org Git - packages/C++2LaTeX.git/blob - C++2LaTeX.spec
- dropped pre-cvs changelog
[packages/C++2LaTeX.git] / C++2LaTeX.spec
1 Summary:        Pretty-printer for converting C/C++ code to a LaTeX listing
2 Summary(pl.UTF-8):      Konwerter listingów C/C++ na LaTeX
3 Name:           C++2LaTeX
4 %define         ver     1_1pl1
5 Version:        1.1pl1
6 Release:        3
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.UTF-8
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} \
29         CFLAGS="%{rpmcflags} -DUSE_NAME"
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
33
34 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
35
36 install c++2latex       $RPM_BUILD_ROOT%{_bindir}
37 install c++2latex.1     $RPM_BUILD_ROOT%{_mandir}/man1
38 ln -sf c++2latex        $RPM_BUILD_ROOT%{_bindir}/c2latex
39 echo '.so c++2latex.1' >$RPM_BUILD_ROOT%{_mandir}/man1/c2latex.1
40
41 %clean
42 rm -rf $RPM_BUILD_ROOT
43
44 %files
45 %defattr(644,root,root,755)
46 %doc ChangeLog README
47 %attr(755,root,root) %{_bindir}/*
48 %{_mandir}/man1/*
This page took 0.077477 seconds and 3 git commands to generate.