Logoj0ke.net Open Build Service > Projects > internetx:php7:extensions > php7-pecl_http > Changes
Sign Up | Log In

Difference Between Revision 15 and internetx:php5:extensions / php5-pecl_http

[-] Changed php5-pecl_http.spec
x
 
1
@@ -2,20 +2,21 @@
2
 %define        pkg_name    pecl_http
3
 %define        pkg_version %(php-config --version | awk -F. '{print $1"."$2 }' 2>/dev/null || echo PHPCONFIG_NOT_FOUND)
4
 %define        php_version %(php-config --version 2>/dev/null)
5
-%if "%{pkg_version}" >= "5.6"
6
-%define        my_version 2.4.3
7
+%if "%{pkg_version}" >= "7.0"
8
+%define        my_version 3.1.0
9
 %define        upstream 1
10
 BuildRequires: libevent-devel
11
-BuildRequires: php5-raphf
12
-BuildRequires: php5-propro
13
-Requires:  php5-raphf
14
-Requires:  php5-propro
15
+BuildRequires: php7-raphf
16
+BuildRequires: php7-propro
17
+Requires:  php7-raphf
18
+Requires:  php7-propro
19
+BuildRequires: libevent2 libopenssl-devel
20
 %else
21
 %define        my_version 1.7.6
22
 %define        upstream 0
23
 %endif
24
 #
25
-Name:      php5-pecl_http
26
+Name:      php7-pecl_http
27
 Version:   %{my_version}
28
 Release:   0
29
 #
30
@@ -27,8 +28,8 @@
31
 #yes, PHP modules are required for build, as configure tests it's precence, to enable
32
 #or disable features.
33
 BuildRequires: php-devel curl-devel file-devel libevent php-iconv php-hash
34
+Requires:  php7 = %{php_version} php-iconv php-hash
35
 BuildRequires: pkg-config libevent-devel libidn-devel libicu-devel
36
-Requires:  php5 = %{php_version} php-iconv php-hash
37
 #
38
 URL:       http://pecl.php.net/pecl_http
39
 Source:        http://pecl.php.net/package/pecl_http/%{pkg_name}-%{my_version}.tar.bz2
40
@@ -37,7 +38,8 @@
41
 %else
42
 Source1:   http-2.4.3.ini
43
 %endif
44
-Patch0:        pecl_http-2.4.3_debug.patch
45
+#Patch0:       pecl_http-2.4.3_debug.patch
46
+#Patch0:       pecl_http-3.0.1_debug.patch
47
 Summary:   Extended HTTP Support
48
 
49
 %description
50
@@ -49,9 +51,9 @@
51
     Michael Wallner <mike@php.net>
52
 
53
 %package        devel
54
-Summary:        Include files of php5-pecl_http
55
+Summary:        Include files of php7-pecl_http
56
 Group:          Development/Libraries/C and C++
57
-Requires:       %{name} = %{my_version} php5-devel curl-devel file-devel libevent
58
+Requires:       %{name} = %{my_version} php7-devel curl-devel file-devel libevent
59
 
60
 %description   devel
61
 
62
@@ -64,17 +66,17 @@
63
 
64
 %prep
65
 %setup -q -n %{pkg_name}-%{my_version}
66
-%if "%{upstream}" == "1"
67
-%patch0
68
-%endif
69
+#if "%{upstream}" == "1"
70
+#patch0
71
+#endif
72
 
73
 #%{__mkdir} %{name}
74
 
75
 %build
76
 if [ -x /usr/bin/php ] ; then
77
 export PHP_EXECUTABLE="/usr/bin/php"
78
-elif [ -x /usr/bin/php5 ] ; then
79
-export PHP_EXECUTABLE="/usr/bin/php5"
80
+elif [ -x /usr/bin/php7 ] ; then
81
+export PHP_EXECUTABLE="/usr/bin/php7"
82
 else
83
 export PHP_EXECUTABLE="/usr/local/bin/php"
84
 fi
85
@@ -118,14 +120,14 @@
86
 %install
87
 
88
 %makeinstall INSTALL_ROOT=%{buildroot}
89
-%{__mkdir_p} %{buildroot}%{_sysconfdir}/php5/conf.d
90
-%{__install} -m 644 %{S:1} %{buildroot}%{_sysconfdir}/php5/conf.d/http.ini
91
+%{__mkdir_p} %{buildroot}%{_sysconfdir}/php7/conf.d
92
+%{__install} -m 644 %{S:1} %{buildroot}%{_sysconfdir}/php7/conf.d/http.ini
93
 
94
 %clean
95
 %{__rm} -rf %{buildroot}
96
 
97
 %post
98
-for file in /etc/php5/conf.d/propro.ini /etc/php5/conf.d/raphf.ini ; do
99
+for file in /etc/php7/conf.d/propro.ini /etc/php7/conf.d/raphf.ini ; do
100
  if [ -f ${file} ] ; then
101
   sed -i -r s@"^(extension\s?=.*)"@";\1"@ ${file}
102
  fi
103
@@ -133,46 +135,20 @@
104
 
105
 %files
106
 %defattr(-,root,root,-)
107
-%{_libdir}/php5/extensions/http.so
108
-%config(noreplace) %{_sysconfdir}/php5/conf.d/http.ini
109
+%{_libdir}/php7/extensions/http.so
110
+%config(noreplace) %{_sysconfdir}/php7/conf.d/http.ini
111
 
112
 %files devel
113
 %defattr(-,root,root,-)
114
-%dir %{_includedir}/php5/ext/http
115
+%dir %{_includedir}/php7/ext/http
116
 %if "%{upstream}" == "0"
117
-%dir %{_includedir}/php5/ext/http/phpstr
118
-%{_includedir}/php5/ext/http/*.h
119
-%{_includedir}/php5/ext/http/phpstr/*.h
120
+%dir %{_includedir}/php7/ext/http/phpstr
121
+%{_includedir}/php7/ext/http/*.h
122
+%{_includedir}/php7/ext/http/phpstr/*.h
123
 %doc lib
124
 %else
125
-%{_includedir}/php5/ext/http/php_*.h
126
+%{_includedir}/php7/ext/http/php_*.h
127
 %endif
128
 %doc LICENSE CREDITS KnownIssues.txt
129
 
130
-%changelog -n php5-pecl_http
131
-* Thu Dec 10 2009 Carsten Schoene <cs@linux-administrator.com> - 1.6.6-0
132
-- new release 1.6.6
133
-* Fri Aug 14 2009 Carsten Schoene <cs@linux-administrator.com> - 1.6.5-0
134
-- new release 1.6.5
135
-* Fri Jul 24 2009 Carsten Schoene <cs@linux-administrator.com> - 1.6.4-0
136
-- new release 1.6.4
137
-* Thu Feb 12 2009 Carsten Schoene <cs@linux-administrator.com>
138
-- new release 1.6.3
139
-* Fri Dec 05 2008 Carsten Schoene <cs@linux-administrator.com>
140
-- version bump to 1.6.2
141
-* Wed Jul 23 2008 Carsten Schoene <cs@linux-administrator.com>
142
-- version bump to 1.6.1
143
-* Sun Feb 25 2007 - judas_iscariote@shorewall.net
144
-- version bump to 1.5.2 
145
-* Wed Feb 21 2007 - judas_iscariote@shorewall.net
146
-- version 1.5.1 solves compile problems in older PHP versions.
147
-* Tue Feb 20 2007 - judas_iscariote@shorewall.net
148
-- update to version 1.5.0
149
-* Sun Jan 29 2007 - judas_iscariote@shorewall.net
150
-- update to 1.4.1
151
-* Tue Jan 23 2007 - judas_iscariote@shorewall.net
152
-- Update to 1.4.0 final.
153
-* Mon Dec 11 2006 - judas_iscariote@shorewall.net
154
-- we need to export php executable name and add php5-hash and php5-iconv to BuildRequires
155
-* Thu Nov 09 2006 - soporte@onfocus.cl
156
-- very first build
157
+%changelog
158
[+] Added pecl_http-3.0.1_debug.patch ^
[+] Added package.xml ^