[hyphen] fix hyphen.h

David Tardon dtardon at fedoraproject.org
Thu Jul 3 09:54:04 UTC 2014


commit c4eea863a003ff7ef16bb863fa30cc3bbd4f728e
Author: David Tardon <dtardon at redhat.com>
Date:   Thu Jul 3 11:54:03 2014 +0200

    fix hyphen.h

 0001-missing-include-for-FILE.patch |   25 +++++++++++++++++++++++++
 hyphen.spec                         |    8 +++++++-
 2 files changed, 32 insertions(+), 1 deletions(-)
---
diff --git a/0001-missing-include-for-FILE.patch b/0001-missing-include-for-FILE.patch
new file mode 100644
index 0000000..bc4f46e
--- /dev/null
+++ b/0001-missing-include-for-FILE.patch
@@ -0,0 +1,25 @@
+From d1e42f5a7166fc98595772ffdd3cfc75fcfa574d Mon Sep 17 00:00:00 2001
+From: David Tardon <dtardon at redhat.com>
+Date: Thu, 3 Jul 2014 11:51:53 +0200
+Subject: [PATCH] missing include for FILE
+
+---
+ hyphen.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/hyphen.h b/hyphen.h
+index 9aa057e..b3b8fae 100644
+--- a/hyphen.h
++++ b/hyphen.h
+@@ -51,6 +51,8 @@
+ #ifndef __HYPHEN_H__
+ #define __HYPHEN_H__
+ 
++#include <stdio.h>
++
+ #ifdef __cplusplus
+ extern "C" {
+ #endif /* __cplusplus */
+-- 
+1.9.3
+
diff --git a/hyphen.spec b/hyphen.spec
index dbdd127..e06296e 100644
--- a/hyphen.spec
+++ b/hyphen.spec
@@ -1,7 +1,7 @@
 Name:      hyphen
 Summary:   A text hyphenation library
 Version:   2.8.7
-Release:   1%{?dist}
+Release:   2%{?dist}
 Source:    http://downloads.sourceforge.net/hunspell/hyphen-%{version}.tar.gz
 Group:     System Environment/Libraries
 URL:       http://hunspell.sf.net
@@ -12,6 +12,8 @@ BuildRequires: perl, patch, autoconf, automake, libtool
 BuildRequires: valgrind
 %endif
 
+Patch0: 0001-missing-include-for-FILE.patch
+
 %description
 Hyphen is a library for high quality hyphenation and justification.
 
@@ -34,6 +36,7 @@ English hyphenation rules.
 
 %prep
 %setup -q
+%patch0 -p1 -b .missing-include-for-FILE.patch
 
 %build
 %configure --disable-static
@@ -84,6 +87,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_bindir}/substrings.pl
 
 %changelog
+* Thu Jul 03 2014 David Tardon <dtardon at redhat.com> - 2.8.7-2
+- fix hyphen.h
+
 * Fri Jun 27 2014 Caolán McNamara <caolanm at redhat.com> - 2.8.7-1
 - latest version
 


More information about the scm-commits mailing list