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

Changes of Revision 4

[-] Added php5-pecl_http.spec
x
 
1
@@ -0,0 +1,122 @@
2
+# norootforbuild
3
+%define pkg_name    pecl_http
4
+%define php_version %(php-config --version 2>/dev/null)
5
+#
6
+Name: php5-pecl_http
7
+Version: 1.6.0
8
+Release: 0
9
+#
10
+License: BSD
11
+Group: Productivity/Networking/Web/Servers
12
+#
13
+BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build
14
+
15
+#yes, PHP modules are required for build, as configure tests it's precence, to enable
16
+#or disable features.
17
+BuildRequires: php5-devel curl-devel file-devel libevent php5-iconv php5-hash
18
+Requires: php5 = %{php_version} php5-iconv php5-hash
19
+#
20
+URL: http://pecl.php.net/pecl_http
21
+Source: http://pecl.php.net/package/pecl_http/%{pkg_name}-%{version}.tgz
22
+Source1: http.ini
23
+Summary: Extended HTTP Support
24
+
25
+%description
26
+
27
+Extended HTTP Support
28
+
29
+Authors:
30
+---------
31
+    Michael Wallner <mike@php.net>
32
+
33
+%package         devel
34
+Summary:        Include files of php5-pecl_http
35
+Group:          Development/Libraries/C and C++
36
+Requires:       %{name} = %{version} php5-devel curl-devel file-devel libevent
37
+
38
+%description   devel
39
+
40
+Extended HTTP Support
41
+
42
+Authors:
43
+---------
44
+    Michael Wallner <mike@php.net>
45
+
46
+
47
+%prep
48
+%setup -q -n %{pkg_name}-%{version}
49
+
50
+
51
+#%{__mkdir} %{name}
52
+
53
+%build
54
+/usr/bin/phpize
55
+#pushd %{name}
56
+
57
+CFLAGS="%{optflags} -fno-strict-aliasing"
58
+CXXFLAGS="%{optflags} -fno-strict-aliasing"
59
+
60
+%if 0%{?suse_version} > 1000
61
+CFLAGS="$CFLAGS -fstack-protector"
62
+CXXFLAGS="$CXXFLAGS -fstack-protector"
63
+%endif
64
+
65
+export CFLAGS
66
+export CXXFLAGS
67
+
68
+export PHP_EXECUTABLE="/usr/bin/php5"
69
+
70
+%configure \
71
+--with-http-magic-mime=%{_usr} \
72
+--with-http-zlib-compression=%{_usr} \
73
+--with-http-curl-requests=%{_usr} \
74
+--with-http-shared-deps \
75
+--with-libdir=%{_lib}
76
+
77
+%{__make} %{?jobs:-j%jobs}
78
+
79
+export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
80
+
81
+%{__make} test
82
+
83
+unset NO_INTERACTION REPORT_EXIT_STATUS MALLOC_CHECK_
84
+
85
+%install
86
+
87
+%makeinstall INSTALL_ROOT=%{buildroot}
88
+%{__mkdir_p} %{buildroot}%{_sysconfdir}/php5/conf.d
89
+%{__install} -m 644 %{S:1} %{buildroot}%{_sysconfdir}/php5/conf.d/http.ini
90
+
91
+%clean
92
+
93
+%{__rm} -rf %{buildroot}
94
+
95
+%files
96
+%defattr(-,root,root,-)
97
+%{_libdir}/php5/extensions/http.so
98
+%config(noreplace) %{_sysconfdir}/php5/conf.d/http.ini
99
+
100
+%files devel
101
+%defattr(-,root,root,-)
102
+%dir %{_includedir}/php5/ext/http
103
+%dir %{_includedir}/php5/ext/http/phpstr
104
+%{_includedir}/php5/ext/http/*.h
105
+%{_includedir}/php5/ext/http/phpstr/*.h
106
+
107
+%doc lib LICENSE CREDITS KnownIssues.txt
108
+
109
+%changelog -n php5-pecl_http
110
+* Sun Feb 25 2007 - judas_iscariote@shorewall.net
111
+- version bump to 1.5.2 
112
+* Wed Feb 21 2007 - judas_iscariote@shorewall.net
113
+- version 1.5.1 solves compile problems in older PHP versions.
114
+* Tue Feb 20 2007 - judas_iscariote@shorewall.net
115
+- update to version 1.5.0
116
+* Sun Jan 29 2007 - judas_iscariote@shorewall.net
117
+- update to 1.4.1
118
+* Tue Jan 23 2007 - judas_iscariote@shorewall.net
119
+- Update to 1.4.0 final.
120
+* Mon Dec 11 2006 - judas_iscariote@shorewall.net
121
+- we need to export php executable name and add php5-hash and php5-iconv to BuildRequires
122
+* Thu Nov 09 2006 - soporte@onfocus.cl
123
+- very first build
124