Logoj0ke.net Open Build Service > Projects > internetx:php7:EL7 > php-pecl-sphinx > Changes
Sign Up | Log In

Changes of Revision 2

[-] Added php-pecl-sphinx.changes
x
 
1
@@ -0,0 +1,15 @@
2
+-------------------------------------------------------------------
3
+Fri Apr 22 07:03:44 UTC 2016 - cs@linux-administrator.com
4
+
5
+- update to 1.4.0-dev
6
+
7
+-------------------------------------------------------------------
8
+Tue Aug  4 08:46:47 UTC 2015 - cs@linux-administrator.com
9
+
10
+- update to release 1.3.3
11
+
12
+-------------------------------------------------------------------
13
+Tue May 13 18:50:53 UTC 2014 - cs@linux-administrator.com
14
+
15
+- update to release 1.3.2
16
+
17
[+] Deleted php5-sphinx.changes ^
[-] Added php-pecl-sphinx.spec ^
158
 
1
@@ -0,0 +1,156 @@
2
+%global __pecl %{_bindir}/pecl
3
+
4
+%global php_zendabiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP Extension => //p') | tail -1)
5
+%global php_version %((echo 0; php-config --version 2>/dev/null) | tail -1)
6
+%global basepkg php
7
+%global pecl_name sphinx
8
+%global with_zts  0%{?__ztsphp:1}
9
+
10
+# norootforbuild
11
+%define pkg_name    sphinx
12
+%define pkg_version 1.3.99.1
13
+%define php_version %(php-config --version 2>/dev/null)
14
+#
15
+Name:      php-pecl-sphinx
16
+Version:   %{pkg_version}
17
+Release:   1
18
+#
19
+License:   PHP
20
+Group:     Productivity/Networking/Web/Servers
21
+#
22
+BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build
23
+BuildRequires: php-devel libsphinxclient-devel gcc gcc-c++
24
+Requires:  php = %{php_version}
25
+#
26
+URL:       http://pecl.php.net/
27
+Source:        http://pecl.php.net/package/%{pkg_name}/%{pkg_name}-%{version}.tgz
28
+Summary:   This extension provides bindings for libsphinxclient, client library for Sphinx
29
+Provides:       php-pecl(%{pecl_name}) = %{version}
30
+
31
+Requires(post): %{__pecl}
32
+Requires(postun): %{__pecl}
33
+
34
+%description
35
+This extension provides bindings for libsphinxclient, client library for Sphinx.
36
+
37
+Authors:
38
+---------
39
+
40
+       Antony Dovgal 
41
+
42
+%debug_package
43
+
44
+%prep
45
+%setup -n %{pkg_name}-%{version}
46
+
47
+%{__mkdir} %{name}
48
+
49
+%build
50
+%if %{with_zts}
51
+cp -r %{pecl_name}-%{version} %{pecl_name}-%{version}-zts
52
+%endif
53
+
54
+%build
55
+pushd %{pecl_name}-%{version}
56
+%{_bindir}/phpize
57
+%configure --with-sphinx=%{_prefix} --with-php-config=%{_bindir}/php-config
58
+%{__make} %{?_smp_mflags}
59
+popd
60
+
61
+%if %{with_zts}
62
+pushd %{pecl_name}-%{version}-zts
63
+%{_bindir}/zts-phpize
64
+%configure --with-sphinx=%{_prefix} --with-php-config=%{_bindir}/zts-php-config
65
+%{__make} %{?_smp_mflags}
66
+popd
67
+%endif
68
+
69
+%install
70
+%{__rm} -rf %{buildroot}
71
+
72
+pushd %{pecl_name}-%{version}
73
+%{__make} install INSTALL_ROOT=%{buildroot}
74
+
75
+popd
76
+
77
+%if %{with_zts}
78
+pushd %{pecl_name}-%{version}-zts
79
+%{__make} install INSTALL_ROOT=%{buildroot}
80
+popd
81
+
82
+%endif
83
+
84
+# Install the package XML file
85
+%{__mkdir_p} %{buildroot}%{pecl_xmldir}
86
+%{__install} -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
87
+
88
+# Drop in the bit of configuration
89
+%{__mkdir_p} %{buildroot}%{php_inidir}
90
+%{__cat} > %{buildroot}%{php_inidir}/sphinx.ini << 'EOF'
91
+; Enable apcu extension module
92
+extension = sphinx.so
93
+EOF
94
+
95
+%if %{with_zts}
96
+%{__mkdir_p} %{buildroot}%{php_ztsinidir}
97
+%{__cp} %{buildroot}%{php_inidir}/apcu.ini %{buildroot}%{php_ztsinidir}/apcu.ini
98
+%endif
99
+
100
+%check
101
+pushd %{pecl_name}-%{version}
102
+TEST_PHP_EXECUTABLE=$(which php) php run-tests.php \
103
+    -n -q -d extension_dir=modules \
104
+    -d extension=sphinx.so
105
+popd
106
+
107
+%if %{with_zts}
108
+pushd %{pecl_name}-%{version}-zts
109
+TEST_PHP_EXECUTABLE=$(which zts-php) zts-php run-tests.php \
110
+    -n -q -d extension_dir=modules \
111
+    -d extension=sphinx.so
112
+popd
113
+%endif
114
+
115
+%if 0%{?pecl_install:1}
116
+%post
117
+%{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
118
+%endif
119
+
120
+%if 0%{?pecl_uninstall:1}
121
+%postun
122
+if [ $1 -eq 0 ] ; then
123
+    %{pecl_uninstall} %{pecl_name} >/dev/null || :
124
+fi
125
+%endif
126
+
127
+%clean
128
+%{__rm} -rf %{buildroot}
129
+
130
+%files
131
+%defattr(-,root,root,-)
132
+%config(noreplace) %{php_inidir}/sphinx.ini
133
+%{php_extdir}/sphinx.so
134
+%{pecl_xmldir}/%{name}.xml
135
+
136
+%if %{with_zts}
137
+%config(noreplace) %{php_ztsinidir}/sphinx.ini
138
+%{php_ztsextdir}/sphinx.so
139
+%endif
140
+%doc CREDITS
141
+
142
+%changelog
143
+* Thu Apr 04 2013 Carsten Schoene <cs@linux-administrator.com> - 1.3.0-1
144
+- update to release 1.3.0
145
+
146
+* Sun Apr 09 2012 Carsten Schoene <cs@linux-administrator.com> - 1.2.0-1
147
+- update to release 1.2.0
148
+
149
+* Tue Jan 12 2010 Carsten Schoene <cs@linux-administrator.com> - 1.0.3-0
150
+- update to release 1.0.3
151
+ - Added support for open(), close(), status() and setOverride() available in sphinx 0.9.9 new API
152
+
153
+* Sun Dec 20 2009 Carsten Schoene <cs@linux-administrator.com> - 1.0.2-0
154
+- update to release 1.0.2
155
+
156
+* Sat Jan 31 2009 Carsten Schoene <cs@linux-administrator.com>
157
+- initial build version 1.0.0
158
[+] Deleted php5-sphinx.spec ^
Deleted sphinx-1.0.0.tgz ^
Deleted sphinx-1.0.2.tgz ^
Deleted sphinx-1.0.3.tgz ^
Deleted sphinx-1.2.0.tgz ^
Deleted sphinx-1.3.0.tgz ^
Deleted sphinx-1.3.2.tgz ^