]> git.pld-linux.org Git - packages/C++2LaTeX.git/blob - C++2LaTeX.spec
perl -pi -e "s/pld-list\@pld.org.pl/feedback\@pld.org.pl/"
[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:        1
7 License:        GPL
8 Group:          Applications/Publishing/TeX
9 Group(de):      Applikationen/Publizieren/TeX
10 Group(pl):      Aplikacje/Publikowanie/TeX
11 Source0:        ftp://ftp.tex.ac.uk/tex-archive/support/%{name}-%{ver}.tar.gz
12 Buildroot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13 BuildRequires:  flex
14
15 %description
16 C++2LaTeX takes as input a C or C++ source file and outputs a LaTeX
17 file that is a beautified listing (optionally the output can contain
18 the 'documentstyle' header and so on).
19
20 %description -l pl
21 C++2LaTeX przyjmuje na wej¶cie kod ¼ród³owy w C lub C++, a na wyj¶cie
22 wysy³a plik w LaTeX-u z ³adnym listingiem.
23
24 %prep
25 %setup -q -n %{name}-%{ver}
26
27 %build
28 rm -f *.o c++2latex
29 %{__make} 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 gzip -9nf ChangeLog README
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %files
47 %defattr(644,root,root,755)
48 %attr(755,root,root) %{_bindir}/*
49 %doc *.gz
50 %{_mandir}/man1/*
This page took 0.038979 seconds and 3 git commands to generate.