1 | %bcond_with php5 |
---|
2 | %bcond_with php72 |
---|
3 | %bcond_without php73 |
---|
4 | |
---|
5 | %define modname clearsilver |
---|
6 | |
---|
7 | Summary: ClearSilver extension for PHP |
---|
8 | Summary(ja): PHP用ClearSilverモジュール |
---|
9 | Name: php-ext-%{modname} |
---|
10 | Version: 0.4 |
---|
11 | Release: 14%{_dist_release} |
---|
12 | URL: http://www.geodata.soton.ac.uk/software/php_clearsilver/ |
---|
13 | Source: php-%{modname}-%{version}.tar.gz |
---|
14 | Patch0: php-clearsilver-0.4-php5.6.0.patch |
---|
15 | Patch2: php-clearsilver-0.4-php7.2.0.patch |
---|
16 | License: The PHP License |
---|
17 | Group: Development/Languages |
---|
18 | BuildRequires: clearsilver, zlib-devel |
---|
19 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
20 | |
---|
21 | Vendor: Project Vine |
---|
22 | Distribution: Vine Linux |
---|
23 | Packager: tomop |
---|
24 | |
---|
25 | %description |
---|
26 | This module adds ClearSilver functions to PHP. |
---|
27 | |
---|
28 | %description -l ja |
---|
29 | このモジュールはPHPにClearSilverテンプレート機能を追加します。 |
---|
30 | |
---|
31 | %if %{with php5} |
---|
32 | %package -n php5-ext-%{modname} |
---|
33 | Summary: ClearSilver extension for PHP-5.6.x |
---|
34 | Summary(ja): PHP-5.6用ClearSilverモジュール |
---|
35 | Group: Development/Languages |
---|
36 | BuildRequires: php5-devel |
---|
37 | %if "%{?req_php5_api}" != "" |
---|
38 | Requires: %{req_php5_api} |
---|
39 | %endif |
---|
40 | Obsoletes: php-ext-clearsilver < 0.4-7 |
---|
41 | |
---|
42 | %description -n php5-ext-%{modname} |
---|
43 | This module adds ClearSilver functions to PHP. |
---|
44 | |
---|
45 | %description -n php5-ext-%{modname} -l ja |
---|
46 | このモジュールはPHPにClearSilverテンプレート機能を追加します。 |
---|
47 | |
---|
48 | %endif |
---|
49 | |
---|
50 | %if %{with php72} |
---|
51 | %package -n php72-ext-%{modname} |
---|
52 | Summary: ClearSilver extension for PHP-7.2 |
---|
53 | Summary(ja): PHP-7.2用ClearSilverモジュール |
---|
54 | Group: Development/Languages |
---|
55 | BuildRequires: php72-devel |
---|
56 | %if "%{?req_php72_api}" != "" |
---|
57 | Requires: %{req_php72_api} |
---|
58 | %endif |
---|
59 | |
---|
60 | %description -n php72-ext-%{modname} |
---|
61 | This module adds ClearSilver functions to PHP. |
---|
62 | |
---|
63 | %description -n php72-ext-%{modname} -l ja |
---|
64 | このモジュールはPHPにClearSilverテンプレート機能を追加します。 |
---|
65 | |
---|
66 | %endif |
---|
67 | |
---|
68 | %if %{with php73} |
---|
69 | %package -n php73-ext-%{modname} |
---|
70 | Summary: ClearSilver extension for PHP-7.3 |
---|
71 | Summary(ja): PHP-7.3用ClearSilverモジュール |
---|
72 | Group: Development/Languages |
---|
73 | BuildRequires: php73-devel |
---|
74 | %if "%{?req_php73_api}" != "" |
---|
75 | Requires: %{req_php73_api} |
---|
76 | %endif |
---|
77 | |
---|
78 | %description -n php73-ext-%{modname} |
---|
79 | This module adds ClearSilver functions to PHP. |
---|
80 | |
---|
81 | %description -n php73-ext-%{modname} -l ja |
---|
82 | このモジュールはPHPにClearSilverテンプレート機能を追加します。 |
---|
83 | |
---|
84 | %endif |
---|
85 | |
---|
86 | %prep |
---|
87 | %setup -q -c -n php-%{modname}-%{version} |
---|
88 | |
---|
89 | cp -a php-%{modname}-%{version}/{CREDITS,INSTALL,LICENSE,README,doc} ./ |
---|
90 | |
---|
91 | %if %{with php5} |
---|
92 | cp -a php-clearsilver-%{version} php-clearsilver-%{version}-php5 |
---|
93 | pushd php-clearsilver-%{version}-php5 |
---|
94 | %patch0 -p1 -b .php56 |
---|
95 | popd |
---|
96 | %endif |
---|
97 | |
---|
98 | %if %{with php72} |
---|
99 | cp -a php-clearsilver-%{version} php-clearsilver-%{version}-php72 |
---|
100 | pushd php-clearsilver-%{version}-php72 |
---|
101 | %patch0 -p1 -b .php56 |
---|
102 | %patch2 -p1 -b .php72 |
---|
103 | popd |
---|
104 | %endif |
---|
105 | |
---|
106 | %if %{with php73} |
---|
107 | cp -a php-clearsilver-%{version} php-clearsilver-%{version}-php73 |
---|
108 | pushd php-clearsilver-%{version}-php73 |
---|
109 | %patch0 -p1 -b .php56 |
---|
110 | %patch2 -p1 -b .php72 |
---|
111 | popd |
---|
112 | %endif |
---|
113 | |
---|
114 | %build |
---|
115 | %if %{with php5} |
---|
116 | pushd php-clearsilver-%{version}-php5 |
---|
117 | phpize5 |
---|
118 | aclocal |
---|
119 | autoconf |
---|
120 | libtoolize --copy --force |
---|
121 | %configure --with-php-config=/usr/bin/php-config5 |
---|
122 | %__make %{_smp_mflags} |
---|
123 | popd |
---|
124 | %endif |
---|
125 | |
---|
126 | %if %{with php72} |
---|
127 | pushd php-clearsilver-%{version}-php72 |
---|
128 | phpize72 |
---|
129 | aclocal |
---|
130 | autoconf |
---|
131 | libtoolize --copy --force |
---|
132 | %configure --with-php-config=/usr/bin/php-config72 |
---|
133 | %__make %{_smp_mflags} |
---|
134 | popd |
---|
135 | %endif |
---|
136 | |
---|
137 | %if %{with php73} |
---|
138 | pushd php-clearsilver-%{version}-php73 |
---|
139 | phpize73 |
---|
140 | aclocal |
---|
141 | autoconf |
---|
142 | libtoolize --copy --force |
---|
143 | %configure --with-php-config=/usr/bin/php-config73 |
---|
144 | %__make %{_smp_mflags} |
---|
145 | popd |
---|
146 | %endif |
---|
147 | |
---|
148 | %install |
---|
149 | rm -rf %{buildroot} |
---|
150 | %if %{with php5} |
---|
151 | pushd php-clearsilver-%{version}-php5 |
---|
152 | mkdir -p %{buildroot}%{_libdir}/php5/ |
---|
153 | mkdir -p %{buildroot}%{_sysconfdir}/php5/php.d |
---|
154 | |
---|
155 | install -m644 modules/%{modname}.so %{buildroot}%{_libdir}/php5/ |
---|
156 | |
---|
157 | cat > %{buildroot}%{_sysconfdir}/php5/php.d/%{modname}.ini <<EOF |
---|
158 | ; Enable %{modname} extension module |
---|
159 | extension=%{modname}.so |
---|
160 | EOF |
---|
161 | popd |
---|
162 | %endif |
---|
163 | |
---|
164 | %if %{with php72} |
---|
165 | pushd php-clearsilver-%{version}-php72 |
---|
166 | mkdir -p %{buildroot}%{_libdir}/php72/ |
---|
167 | mkdir -p %{buildroot}%{_sysconfdir}/php72/php.d |
---|
168 | |
---|
169 | install -m644 modules/%{modname}.so %{buildroot}%{_libdir}/php72/ |
---|
170 | |
---|
171 | cat > %{buildroot}%{_sysconfdir}/php72/php.d/%{modname}.ini <<EOF |
---|
172 | ; Enable %{modname} extension module |
---|
173 | extension=%{modname}.so |
---|
174 | EOF |
---|
175 | popd |
---|
176 | %endif |
---|
177 | |
---|
178 | %if %{with php73} |
---|
179 | pushd php-clearsilver-%{version}-php73 |
---|
180 | mkdir -p %{buildroot}%{_libdir}/php73/ |
---|
181 | mkdir -p %{buildroot}%{_sysconfdir}/php73/php.d |
---|
182 | |
---|
183 | install -m644 modules/%{modname}.so %{buildroot}%{_libdir}/php73/ |
---|
184 | |
---|
185 | cat > %{buildroot}%{_sysconfdir}/php73/php.d/%{modname}.ini <<EOF |
---|
186 | ; Enable %{modname} extension module |
---|
187 | extension=%{modname}.so |
---|
188 | EOF |
---|
189 | popd |
---|
190 | %endif |
---|
191 | |
---|
192 | %check |
---|
193 | |
---|
194 | %if %{with php5} |
---|
195 | pushd php-clearsilver-%{version}-php5 |
---|
196 | make test NO_INTERACTION=1 |
---|
197 | popd |
---|
198 | %endif |
---|
199 | |
---|
200 | %if %{with php72} |
---|
201 | pushd php-clearsilver-%{version}-php72 |
---|
202 | make test TEST_PHPDBG_EXECUTABLE=/usr/bin/phpdbg72 NO_INTERACTION=1 |
---|
203 | popd |
---|
204 | %endif |
---|
205 | |
---|
206 | %if %{with php73} |
---|
207 | pushd php-clearsilver-%{version}-php73 |
---|
208 | make test TEST_PHPDBG_EXECUTABLE=/usr/bin/phpdbg73 NO_INTERACTION=1 |
---|
209 | popd |
---|
210 | %endif |
---|
211 | |
---|
212 | %clean |
---|
213 | rm -rf %{buildroot} |
---|
214 | |
---|
215 | %if %{with php5} |
---|
216 | %files -n php5-ext-%{modname} |
---|
217 | %defattr(-,root,root) |
---|
218 | %doc CREDITS INSTALL LICENSE README doc |
---|
219 | %{_libdir}/php5/* |
---|
220 | %{_sysconfdir}/php5/php.d/* |
---|
221 | %endif |
---|
222 | |
---|
223 | %if %{with php72} |
---|
224 | %files -n php72-ext-%{modname} |
---|
225 | %defattr(-,root,root) |
---|
226 | %doc CREDITS INSTALL LICENSE README doc |
---|
227 | %{_libdir}/php72/* |
---|
228 | %{_sysconfdir}/php72/php.d/* |
---|
229 | %endif |
---|
230 | |
---|
231 | %if %{with php73} |
---|
232 | %files -n php73-ext-%{modname} |
---|
233 | %defattr(-,root,root) |
---|
234 | %doc CREDITS INSTALL LICENSE README doc |
---|
235 | %{_libdir}/php73/* |
---|
236 | %{_sysconfdir}/php73/php.d/* |
---|
237 | %endif |
---|
238 | |
---|
239 | %changelog |
---|
240 | * Wed Sep 04 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-14 |
---|
241 | - disabled php5/php72 support. |
---|
242 | |
---|
243 | * Sat Dec 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-13 |
---|
244 | - added php73 support. |
---|
245 | |
---|
246 | * Fri Dec 22 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-12 |
---|
247 | - updated Patch0. |
---|
248 | - updated Patch2. |
---|
249 | - dropped Patch1: included in Patch0. |
---|
250 | - enabled %%check. |
---|
251 | |
---|
252 | * Thu Dec 21 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-11 |
---|
253 | - updated Patch2. |
---|
254 | |
---|
255 | * Tue Dec 19 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-10 |
---|
256 | - dropped support for php71. |
---|
257 | - added support for php72. |
---|
258 | |
---|
259 | * Thu Mar 16 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-9 |
---|
260 | - added support for php71. |
---|
261 | |
---|
262 | * Thu Nov 5 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-8 |
---|
263 | - fixed summary. |
---|
264 | - fixed php70 stuff. |
---|
265 | |
---|
266 | * Thu Nov 5 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-7 |
---|
267 | - added CGI functions. |
---|
268 | - added support for php70. |
---|
269 | |
---|
270 | * Fri Apr 10 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-6 |
---|
271 | - rebuilt with php5-5.6.7. |
---|
272 | |
---|
273 | * Thu Jan 09 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-5 |
---|
274 | - rebuilt with current environment. |
---|
275 | |
---|
276 | * Tue Jun 25 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-4 |
---|
277 | - added a patch for PHP 5.5.0. |
---|
278 | |
---|
279 | * Sun Apr 29 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-3 |
---|
280 | - converted encoding to UTF-8. |
---|
281 | |
---|
282 | * Sat Apr 28 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-2 |
---|
283 | - added an API version macro to "Requires:". |
---|
284 | |
---|
285 | * Sat Dec 12 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-1 |
---|
286 | - new upstream release. |
---|
287 | |
---|
288 | * Fri Jul 10 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.1-2 |
---|
289 | - fixed for php-5.3.0. |
---|
290 | |
---|
291 | * Mon Apr 28 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 0.1-1 |
---|
292 | - initial build. |
---|
293 | |
---|