From: twittner Date: Sat, 23 Sep 2006 19:44:17 +0000 (+0000) Subject: - use instead of "foo.h" for system includes X-Git-Tag: auto/th/speak-1_14-1~2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fespeak.git;a=commitdiff_plain;h=2b3c2a38e1c16bece4b20e4a039d5bb11a0730ef - use instead of "foo.h" for system includes Changed files: espeak.spec -> 1.7 speak-sys_includes.patch -> 1.1 --- diff --git a/espeak.spec b/espeak.spec index 054e0f0..5de3663 100644 --- a/espeak.spec +++ b/espeak.spec @@ -12,6 +12,7 @@ Group: Applications Source0: http://dl.sourceforge.net/espeak/%{name}-%{version}-source.zip # Source0-md5: 9a52e2a00354474334adc36fe2fdd4c6 Patch0: %{name}-ac_am.patch +Patch1: %{name}-sys_includes.patch URL: http://espeak.sourceforge.net/ BuildRequires: autoconf BuildRequires: automake @@ -118,7 +119,8 @@ eSpeak - biblioteki statyczne. %prep %setup -q -n %{name}-%{version}-source -%patch -p1 +%patch0 -p1 +%patch1 -p1 # remove pernicious headers to avoid using them during build instead of /usr/include/portaudio.h system header rm -f src/portaudio{18,19,}.h diff --git a/speak-sys_includes.patch b/speak-sys_includes.patch new file mode 100644 index 0000000..e6bd438 --- /dev/null +++ b/speak-sys_includes.patch @@ -0,0 +1,89 @@ +diff -Nur o.speak-1.14-source/src/speak.cpp n.speak-1.14-source/src/speak.cpp +--- o.speak-1.14-source/src/speak.cpp 2006-09-22 19:17:56.000000000 +0200 ++++ n.speak-1.14-source/src/speak.cpp 2006-09-23 21:32:27.000000000 +0200 +@@ -27,7 +27,7 @@ + #include + #include + #include +-#include "sys/stat.h" ++#include + + #include "speech.h" + #include "voice.h" +diff -Nur o.speak-1.14-source/src/speak_lib.cpp n.speak-1.14-source/src/speak_lib.cpp +--- o.speak-1.14-source/src/speak_lib.cpp 2006-09-16 03:59:29.000000000 +0200 ++++ n.speak-1.14-source/src/speak_lib.cpp 2006-09-23 21:33:35.000000000 +0200 +@@ -19,14 +19,14 @@ + ***************************************************************************/ + + +-#include "stdio.h" +-#include "ctype.h" +-#include "string.h" +-#include "stdlib.h" +-#include "wchar.h" +-#include "locale.h" ++#include ++#include ++#include ++#include ++#include ++#include + +-#include "sys/stat.h" ++#include + #ifndef __WIN32__ + #include + #endif +diff -Nur o.speak-1.14-source/src/speech.h n.speak-1.14-source/src/speech.h +--- o.speak-1.14-source/src/speech.h 2006-09-21 20:00:41.000000000 +0200 ++++ n.speak-1.14-source/src/speech.h 2006-09-23 19:54:14.000000000 +0200 +@@ -36,7 +36,10 @@ + #endif + + // will look for espeak_data directory here, and also in user's home directory ++#include "config.h" ++#ifndef PATH_ESPEAK_DATA + #define PATH_ESPEAK_DATA "/usr/share/espeak-data" ++#endif + + typedef unsigned short USHORT; + typedef unsigned char UCHAR; +diff -Nur o.speak-1.14-source/src/voices.cpp n.speak-1.14-source/src/voices.cpp +--- o.speak-1.14-source/src/voices.cpp 2006-09-21 20:00:42.000000000 +0200 ++++ n.speak-1.14-source/src/voices.cpp 2006-09-23 21:34:46.000000000 +0200 +@@ -18,15 +18,15 @@ + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ + +-#include "stdio.h" +-#include "ctype.h" +-#include "wctype.h" +-#include "string.h" +-#include "stdlib.h" +-#include "speech.h" ++#include ++#include ++#include ++#include ++#include ++#include + + #ifndef PLATFORM_RISCOS +-#include "dirent.h" ++#include + #endif + + #include "voice.h" +diff -Nur o.speak-1.14-source/src/wavegen.cpp n.speak-1.14-source/src/wavegen.cpp +--- o.speak-1.14-source/src/wavegen.cpp 2006-09-21 20:00:42.000000000 +0200 ++++ n.speak-1.14-source/src/wavegen.cpp 2006-09-23 21:35:11.000000000 +0200 +@@ -33,7 +33,7 @@ + #include "synthesize.h" + + #ifdef USE_PORTAUDIO +-#include "portaudio.h" ++#include + #undef USE_PORTAUDIO + // determine portaudio version by looking for a #define which is not in V18 + #ifdef paNeverDropInput