]>
Commit | Line | Data |
---|---|---|
c8a6a79f | 1 | Summary: Pretty-printer for converting C/C++ code to a LaTeX listing |
ffde19e8 | 2 | Summary(pl.UTF-8): Konwerter listingów C/C++ na LaTeX |
c8a6a79f JB |
3 | Name: C++2LaTeX |
4 | %define ver 1_1pl1 | |
5 | Version: 1.1pl1 | |
20c4cf0d | 6 | Release: 3 |
c8a6a79f JB |
7 | License: GPL |
8 | Group: Applications/Publishing/TeX | |
c8a6a79f | 9 | Source0: ftp://ftp.tex.ac.uk/tex-archive/support/%{name}-%{ver}.tar.gz |
5c11536b | 10 | # Source0-md5: 439cf4f33983848f5d6761c6f605f631 |
c8a6a79f | 11 | BuildRequires: flex |
5cbdfaa3 | 12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c8a6a79f JB |
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 | ||
1207db13 JR |
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. | |
c8a6a79f JB |
22 | |
23 | %prep | |
24 | %setup -q -n %{name}-%{ver} | |
25 | ||
26 | %build | |
27 | rm -f *.o c++2latex | |
e91bb50c | 28 | %{__make} \ |
29 | CFLAGS="%{rpmcflags} -DUSE_NAME" | |
c8a6a79f JB |
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 | ||
c8a6a79f JB |
41 | %clean |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %files | |
45 | %defattr(644,root,root,755) | |
97d2957d | 46 | %doc ChangeLog README |
c8a6a79f | 47 | %attr(755,root,root) %{_bindir}/* |
c8a6a79f | 48 | %{_mandir}/man1/* |