diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..236bb0b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +webcpp-0.8.4-src.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/sources b/sources new file mode 100644 index 0000000..0938eb9 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +201306053f50857e70dca6a4748ebf07 webcpp-0.8.4-src.tar.gz diff --git a/webcpp-0.8.4-gcc43.patch b/webcpp-0.8.4-gcc43.patch new file mode 100644 index 0000000..9b32671 --- /dev/null +++ b/webcpp-0.8.4-gcc43.patch @@ -0,0 +1,11 @@ +diff -urp webcpp-0.8.4-src.orig/webcpp/main.cpp webcpp-0.8.4-src/webcpp/main.cpp +--- webcpp-0.8.4-src.orig/webcpp/main.cpp 2004-01-05 01:52:47.000000000 +0100 ++++ webcpp-0.8.4-src/webcpp/main.cpp 2008-03-08 10:45:17.000000000 +0100 +@@ -24,6 +24,7 @@ + + #include "driver.h" + #include ++#include + using namespace std; + + int main(int argc, char **argv) { diff --git a/webcpp-0.8.4-typo.patch b/webcpp-0.8.4-typo.patch new file mode 100644 index 0000000..1028905 --- /dev/null +++ b/webcpp-0.8.4-typo.patch @@ -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 @@ + \n\ +
\ + web c plus plus
\n\ +-
\n\\n
\n"; ++\n\n
\n"; + + *IO << made; + } diff --git a/webcpp.spec b/webcpp.spec new file mode 100644 index 0000000..90022e5 --- /dev/null +++ b/webcpp.spec @@ -0,0 +1,89 @@ +Name: webcpp +Version: 0.8.4 +Release: 15%{?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 +Patch1: webcpp-0.8.4-gcc43.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 +%patch1 -p1 -b .gcc43 + +%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 Feb 05 2016 Fedora Release Engineering - 0.8.4-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Jun 19 2015 Fedora Release Engineering - 0.8.4-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat May 02 2015 Kalev Lember - 0.8.4-13 +- Rebuilt for GCC 5 C++11 ABI change + +* Mon Aug 18 2014 Fedora Release Engineering - 0.8.4-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sun Jun 08 2014 Fedora Release Engineering - 0.8.4-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 0.8.4-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Feb 15 2013 Fedora Release Engineering - 0.8.4-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sun Jul 22 2012 Fedora Release Engineering - 0.8.4-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue Feb 28 2012 Fedora Release Engineering - 0.8.4-7 +- Rebuilt for c++ ABI breakage + +* Sat Jan 14 2012 Fedora Release Engineering - 0.8.4-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Feb 07 2011 Fedora Release Engineering - 0.8.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Jul 27 2009 Fedora Release Engineering - 0.8.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 0.8.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sat Mar 08 2008 Michal Fabry - 0.8.4-2 +- fix build with gcc 4.3 + +* Fri Nov 23 2007 Michal Fabry - 0.8.4-1 +- First build +