[nntpgrab] fix build with PHP 5.4
Dan Horák
sharkcz at fedoraproject.org
Wed May 16 15:40:49 UTC 2012
commit c7a4ecfe19a7418bff0717334ba1f6d6a1643fa3
Author: Dan Horák <dan at danny.cz>
Date: Wed May 16 17:40:44 2012 +0200
fix build with PHP 5.4
nntpgrab-0.7.1-php54.patch | 12 ++++++++++++
nntpgrab.spec | 7 ++++++-
2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/nntpgrab-0.7.1-php54.patch b/nntpgrab-0.7.1-php54.patch
new file mode 100644
index 0000000..c451949
--- /dev/null
+++ b/nntpgrab-0.7.1-php54.patch
@@ -0,0 +1,12 @@
+diff -up nntpgrab-0.7.1/client/web/module/nntpgrab.c.php54 nntpgrab-0.7.1/client/web/module/nntpgrab.c
+--- nntpgrab-0.7.1/client/web/module/nntpgrab.c.php54 2012-05-16 16:53:47.000000000 +0200
++++ nntpgrab-0.7.1/client/web/module/nntpgrab.c 2012-05-16 16:53:54.000000000 +0200
+@@ -14,7 +14,7 @@
+ #include "nntpgrab_glue.h"
+ #include "nntpgrab_utils.h"
+
+-static function_entry nntpgrab_functions[] = {
++static zend_function_entry nntpgrab_functions[] = {
+ PHP_FE(nntpgrab_connect, NULL)
+ PHP_FE(nntpgrab_get_is_connected, NULL)
+ PHP_FE(nntpgrab_get_connect_errmsg, NULL)
diff --git a/nntpgrab.spec b/nntpgrab.spec
index 670f691..24ec339 100644
--- a/nntpgrab.spec
+++ b/nntpgrab.spec
@@ -1,11 +1,12 @@
Summary: Download files from the usenet
Name: nntpgrab
Version: 0.7.1
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPLv2+
Group: Applications/Internet
Source0: http://www.nntpgrab.nl/releases/nntpgrab-%{version}.tar.bz2
Source1: nntpgrab_php.ini
+Patch0: %{name}-0.7.1-php54.patch
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
URL: http://www.nntpgrab.nl
@@ -163,6 +164,7 @@ embedded webinterface which doesn't require this package to be installed
%prep
%setup -q
+%patch0 -p1 -b .php54
%build
@@ -373,6 +375,9 @@ install -m 644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/php.d/nntpgrab.ini
%changelog
+* Wed May 16 2012 Dan Horák <dan[at]danny.cz> - 0.7.1-3
+- fix build with PHP 5.4
+
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.7.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
More information about the scm-commits
mailing list