File: webcpp.spec

package info (click to toggle)
webcpp 0.8.4-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,588 kB
  • ctags: 590
  • sloc: sh: 10,801; cpp: 2,557; perl: 1,882; makefile: 300; xml: 13
file content (48 lines) | stat: -rw-r--r-- 1,612 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# This spec file was generated using Kpp
# If you find any problems with this spec file please report
# the error to ian geiser <geiseri@msoe.edu>
Summary:   Converts syntax highlighted HTML from source code.
Name:      webcpp
Version:   0.8.3
Release:   0
Copyright: GPL
Vendor:    Jeffrey Bakker <jeff.bakker@shaw.ca>
Url:       http://webcpp.sourceforge.net

Packager:  Jeffrey Bakker <jeff.bakker@shaw.ca>
Group:     Development/Tools
Source:    webcpp-0.8.3.tar.gz
BuildRoot: /home/rpmbuild

%description
Webcpp is a utility that takes source code and converts it into an HTML file, using syntax highlighting and themes. It supports Ada95, Assembler, ASP, Basic, C, C#, C++, Cg, CLIPS, DOS Batch, EMF, Euphoria, Fortran, Haskell, Java, Javascript, Markup, Modula2, Objective C, Pascal, Perl, PHP, Power Builder, Python, RenderMan, Ruby, SQL, Tcl, Unix shell, & VHDL.

%prep
%setup
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \
                 \
                $LOCALFLAGS
%build
# Setup for parallel builds
numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :`
if [ "$numprocs" = "0" ]; then
  numprocs=1
fi

make -j$numprocs

%install
make install-strip DESTDIR=$RPM_BUILD_ROOT

cd $RPM_BUILD_ROOT
find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.webcpp
find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.webcpp
find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.webcpp

%clean
rm -rf $RPM_BUILD_ROOT/*
rm -rf $RPM_BUILD_DIR/webcpp
rm -rf ../file.list.webcpp


%files -f ../file.list.webcpp