[xdrawchem] Fix build error by including needed header
Mamoru Tasaka
mtasaka at fedoraproject.org
Wed Aug 1 07:09:41 UTC 2012
commit 1bf52c84257fd2bdd7d7c05fea7bb4c913805e15
Author: TASAKA Mamoru <mtasaka at localhost.localdomain>
Date: Wed Aug 1 16:09:36 2012 +0900
Fix build error by including needed header
xdrawchem-include-header.patch | 10 ++++++++++
xdrawchem.spec | 7 ++++++-
2 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/xdrawchem-include-header.patch b/xdrawchem-include-header.patch
new file mode 100644
index 0000000..f1c34b6
--- /dev/null
+++ b/xdrawchem-include-header.patch
@@ -0,0 +1,10 @@
+--- xdrawchem-1.9.9/xdrawchem/application.cpp.compile 2005-11-16 12:01:55.000000000 +0900
++++ xdrawchem-1.9.9/xdrawchem/application.cpp 2012-08-01 15:57:31.545768999 +0900
+@@ -14,6 +14,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <errno.h>
++#include <unistd.h>
+
+ using std::cout;
+ using std::endl;
diff --git a/xdrawchem.spec b/xdrawchem.spec
index 2340702..cd86fc4 100644
--- a/xdrawchem.spec
+++ b/xdrawchem.spec
@@ -1,12 +1,13 @@
Name: xdrawchem
Version: 1.9.9
-Release: 18%{?dist}
+Release: 19%{?dist}
Summary: 2D chemical structures drawing tool
Source0: http://downloads.sourceforge.net/sourceforge/xdrawchem/%{name}-%{version}.tar.gz
Source1: %{name}.desktop
Patch0: %{name}-gcc43.patch
Patch1: %{name}-ob22.patch
Patch2: %{name}-warn.patch
+Patch3: %{name}-include-header.patch
URL: http://xdrawchem.sourceforge.net/
License: GPLv2+
Group: Applications/Engineering
@@ -28,6 +29,7 @@ XDrawChem and other chemistry applications.
%patch0 -p1 -b .gcc43
%patch1 -p1 -b .ob
%patch2 -p1 -b .warn
+%patch3 -p1 -b .include
%build
%configure \
@@ -72,6 +74,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_datadir}/icons/hicolor/*/apps/xdrawchem.png
%changelog
+* Wed Aug 1 2012 Mamoru Tasaka <mtasaka at fedoraproject.org> - 1.9.9-19
+- Fix build error by including needed header
+
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.9.9-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
More information about the scm-commits
mailing list