Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0568ae062e | ||
|
|
e5a63e67e0 | ||
|
|
9e587c3f95 | ||
| e115400f65 |
6 changed files with 58 additions and 21 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
webcpp-0.8.4-src.tar.gz
|
||||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
||||||
# Makefile for source rpm: webcpp
|
|
||||||
# $Id$
|
|
||||||
NAME := webcpp
|
|
||||||
SPECFILE = $(firstword $(wildcard *.spec))
|
|
||||||
|
|
||||||
define find-makefile-common
|
|
||||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
||||||
|
|
||||||
ifeq ($(MAKEFILE_COMMON),)
|
|
||||||
# attept a checkout
|
|
||||||
define checkout-makefile-common
|
|
||||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(MAKEFILE_COMMON)
|
|
||||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
||||||
|
201306053f50857e70dca6a4748ebf07 webcpp-0.8.4-src.tar.gz
|
||||||
11
webcpp-0.8.4-typo.patch
Normal file
11
webcpp-0.8.4-typo.patch
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
--- webcpp-0.8.4-src/webcpp/engine.cpp.orig 2004-01-05 00:52:47.000000000 +0000
|
||||||
|
+++ webcpp-0.8.4-src/webcpp/engine.cpp 2007-11-23 01:07:06.000000000 +0000
|
||||||
|
@@ -1005,7 +1005,7 @@
|
||||||
|
</tr><tr><td colspan=6>\n\
|
||||||
|
<a href=\"http://webcpp.sf.net\"><center><b>\
|
||||||
|
<font color=#ffffff>web c plus plus</font></b></center>\n\
|
||||||
|
-</a></td></tr>\n\</table>\n<br>\n</center>";
|
||||||
|
+</a></td></tr>\n</table>\n<br>\n</center>";
|
||||||
|
|
||||||
|
*IO << made;
|
||||||
|
}
|
||||||
45
webcpp.spec
Normal file
45
webcpp.spec
Normal file
|
|
@ -0,0 +1,45 @@
|
||||||
|
Name: webcpp
|
||||||
|
Version: 0.8.4
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Convert C++ code to HTML
|
||||||
|
License: GPLv2
|
||||||
|
Group: Development/Tools
|
||||||
|
URL: http://webcpp.sourceforge.net
|
||||||
|
Source: http://prdownloads.sourceforge.net/webcpp/%{name}-%{version}-src.tar.gz
|
||||||
|
Patch0: webcpp-0.8.4-typo.patch
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
|
%description
|
||||||
|
Web C Plus Plus is a command line utility that takes your source
|
||||||
|
code, and converts it into an HTML file using a fully customizable
|
||||||
|
syntax highlighting engine and colour schemes. This is useful if
|
||||||
|
you want to post your code online and make it easier to read, or
|
||||||
|
to make online programming tutorials.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -qn %{name}-%{version}-src
|
||||||
|
%patch0 -p1 -b .typo
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
install -Dpm 755 %{name}/webcpp $RPM_BUILD_ROOT%{_bindir}/webcpp
|
||||||
|
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc README docs.html
|
||||||
|
%{_bindir}/webcpp
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Nov 23 2007 Michal Fabry <furby@fedoraproject.org> - 0.8.4-1
|
||||||
|
- First build
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue