]> git.pld-linux.org Git - packages/C++2LaTeX.git/blame - C++2LaTeX.spec
- converted to UTF-8
[packages/C++2LaTeX.git] / C++2LaTeX.spec
CommitLineData
c8a6a79f 1Summary: Pretty-printer for converting C/C++ code to a LaTeX listing
1207db13 2Summary(pl.UTF-8): Konwerter listingów C/C++ na LaTeX
c8a6a79f
JB
3Name: C++2LaTeX
4%define ver 1_1pl1
5Version: 1.1pl1
20c4cf0d 6Release: 3
c8a6a79f
JB
7License: GPL
8Group: Applications/Publishing/TeX
c8a6a79f 9Source0: ftp://ftp.tex.ac.uk/tex-archive/support/%{name}-%{ver}.tar.gz
5c11536b 10# Source0-md5: 439cf4f33983848f5d6761c6f605f631
c8a6a79f 11BuildRequires: flex
5cbdfaa3 12BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
c8a6a79f
JB
13
14%description
15C++2LaTeX takes as input a C or C++ source file and outputs a LaTeX
16file that is a beautified listing (optionally the output can contain
17the 'documentstyle' header and so on).
18
1207db13
JR
19%description -l pl.UTF-8
20C++2LaTeX przyjmuje na wejście kod źródłowy w C lub C++, a na wyjście
21wysyła plik w LaTeXu z ładnym listingiem.
c8a6a79f
JB
22
23%prep
24%setup -q -n %{name}-%{ver}
25
26%build
27rm -f *.o c++2latex
e91bb50c 28%{__make} \
29 CFLAGS="%{rpmcflags} -DUSE_NAME"
c8a6a79f
JB
30
31%install
32rm -rf $RPM_BUILD_ROOT
33
34install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
35
36install c++2latex $RPM_BUILD_ROOT%{_bindir}
37install c++2latex.1 $RPM_BUILD_ROOT%{_mandir}/man1
38ln -sf c++2latex $RPM_BUILD_ROOT%{_bindir}/c2latex
39echo '.so c++2latex.1' >$RPM_BUILD_ROOT%{_mandir}/man1/c2latex.1
40
c8a6a79f
JB
41%clean
42rm -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/*
This page took 0.158731 seconds and 4 git commands to generate.