[packages/rtf-converter] - added includes patch (missing header for strcmp)
qboosh
qboosh at pld-linux.org
Mon Jul 15 21:41:00 CEST 2024
commit f84cd74268ada0eb952980b9da3749ae962c1144
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Jul 15 21:32:47 2024 +0200
- added includes patch (missing header for strcmp)
rtf-converter-includes.patch | 20 ++++++++++++++++++++
rtf-converter.spec | 7 +++++--
2 files changed, 25 insertions(+), 2 deletions(-)
---
diff --git a/rtf-converter.spec b/rtf-converter.spec
index faa3fe5..a084dec 100644
--- a/rtf-converter.spec
+++ b/rtf-converter.spec
@@ -7,8 +7,9 @@ License: GPL
Group: Applications/Text
Source0: http://www.kaitiaki.org.nz/download/%{name}_%{version}.tar.gz
# Source0-md5: 224c2855e68d1aea5c4f0230cbc1879b
-URL: http://www.kaitiaki.org.nz/download/
Patch0: %{name}-cflags.patch
+Patch1: %{name}-includes.patch
+URL: http://www.kaitiaki.org.nz/download/
BuildRequires: libstdc++-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -27,10 +28,12 @@ z HTML 4.0 (strict).
%prep
%setup -q -n rtf
%patch0 -p1
+%patch1 -p1
%build
%{__make} \
- CXXFLAGS="%{rpmcflags}"
+ CXX="%{__cxx}" \
+ CXXFLAGS="%{rpmcxxflags}"
%install
rm -rf $RPM_BUILD_ROOT
diff --git a/rtf-converter-includes.patch b/rtf-converter-includes.patch
new file mode 100644
index 0000000..2187129
--- /dev/null
+++ b/rtf-converter-includes.patch
@@ -0,0 +1,20 @@
+--- rtf/rtftohtml.cpp.orig 2001-05-12 14:18:42.000000000 +0200
++++ rtf/rtftohtml.cpp 2024-07-15 21:28:40.741126946 +0200
+@@ -16,6 +16,7 @@
+ */
+ // rtftohtml.cpp
+
++#include <cstring>
+ #include <string>
+ #include <vector>
+ #include <stack>
+--- rtf/tokeniser.cpp.orig 2003-05-25 11:09:26.000000000 +0200
++++ rtf/tokeniser.cpp 2024-07-15 21:29:25.427551525 +0200
+@@ -17,6 +17,7 @@
+ // tokeniser.cpp: implementation of the Tokeniser class.
+ //
+ //////////////////////////////////////////////////////////////////////
++#include <cstring>
+ #include <string>
+
+ using namespace std ;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rtf-converter.git/commitdiff/f2a08d260d5f834cf274ac30571cc135a8602793
More information about the pld-cvs-commit
mailing list