source: projects/specs/trunk/p/php-ext-clearsilver/php-ext-clearsilver-vl.spec @ 12516

Revision 12516, 7.2 KB checked in by tomop, 20 months ago (diff)

updated 4 packages

php-ext-clearsilver-0.4-16

php-ext-mailparse-3.1.1-1

php-ext-memcached-3.1.5.git20201219-1

php-ext-phpredis-5.3.2-1

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