|
@@ -1,6 +1,6 @@
|
|
|
%bcond_with php5
|
|
|
-%bcond_without php73
|
|
|
%bcond_without php74
|
|
|
+%bcond_without php80
|
|
|
|
|
|
%define modname clearsilver
|
|
|
|
|
@@ -8,13 +8,14 @@ Summary: ClearSilver extension for PHP
|
|
|
Summary(ja): PHP用ClearSilverモジュール
|
|
|
Name: php-ext-%{modname}
|
|
|
Version: 0.4
|
|
|
-Release: 15%{_dist_release}
|
|
|
+Release: 16%{_dist_release}
|
|
|
URL: http://www.geodata.soton.ac.uk/software/php_clearsilver/
|
|
|
Source: php-%{modname}-%{version}.tar.gz
|
|
|
Patch0: php-clearsilver-0.4-php5.6.0.patch
|
|
|
Patch2: php-clearsilver-0.4-php7.2.0.patch
|
|
|
+Patch3: php-clearsilver-0.4-php8.0.0.patch
|
|
|
License: The PHP License
|
|
|
-Group: Development/Languages
|
|
|
+Group: programming
|
|
|
BuildRequires: clearsilver, zlib-devel
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
@@ -28,11 +29,12 @@ This module adds ClearSilver functions to PHP.
|
|
|
%description -l ja
|
|
|
このモジュールはPHPにClearSilverテンプレート機能を追加します。
|
|
|
|
|
|
+
|
|
|
%if %{with php5}
|
|
|
%package -n php5-ext-%{modname}
|
|
|
Summary: ClearSilver extension for PHP-5.6.x
|
|
|
Summary(ja): PHP-5.6用ClearSilverモジュール
|
|
|
-Group: Development/Languages
|
|
|
+Group: programming
|
|
|
BuildRequires: php5-devel
|
|
|
%if "%{?req_php5_api}" != ""
|
|
|
Requires: %{req_php5_api}
|
|
@@ -47,11 +49,12 @@ This module adds ClearSilver functions to PHP.
|
|
|
|
|
|
%endif
|
|
|
|
|
|
+
|
|
|
%if %{with php74}
|
|
|
%package -n php74-ext-%{modname}
|
|
|
Summary: ClearSilver extension for PHP-7.4
|
|
|
Summary(ja): PHP-7.4用ClearSilverモジュール
|
|
|
-Group: Development/Languages
|
|
|
+Group: programming
|
|
|
BuildRequires: php74-devel
|
|
|
%if "%{?req_php74_api}" != ""
|
|
|
Requires: %{req_php74_api}
|
|
@@ -65,24 +68,29 @@ This module adds ClearSilver functions to PHP.
|
|
|
|
|
|
%endif
|
|
|
|
|
|
-%if %{with php73}
|
|
|
-%package -n php73-ext-%{modname}
|
|
|
-Summary: ClearSilver extension for PHP-7.3
|
|
|
-Summary(ja): PHP-7.3用ClearSilverモジュール
|
|
|
-Group: Development/Languages
|
|
|
-BuildRequires: php73-devel
|
|
|
-%if "%{?req_php73_api}" != ""
|
|
|
-Requires: %{req_php73_api}
|
|
|
+
|
|
|
+%if %{with php80}
|
|
|
+%package -n php80-ext-%{modname}
|
|
|
+Summary: ClearSilver extension for PHP-8.0
|
|
|
+Summary(ja): PHP-8.0用ClearSilverモジュール
|
|
|
+Group: programming
|
|
|
+BuildRequires: php80-devel
|
|
|
+%if "%{?req_php80_api}" != ""
|
|
|
+Requires: %{req_php80_api}
|
|
|
%endif
|
|
|
|
|
|
-%description -n php73-ext-%{modname}
|
|
|
+%description -n php80-ext-%{modname}
|
|
|
This module adds ClearSilver functions to PHP.
|
|
|
|
|
|
-%description -n php73-ext-%{modname} -l ja
|
|
|
+%description -n php80-ext-%{modname} -l ja
|
|
|
このモジュールはPHPにClearSilverテンプレート機能を追加します。
|
|
|
|
|
|
%endif
|
|
|
|
|
|
+
|
|
|
+%debug_package
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q -c -n php-%{modname}-%{version}
|
|
|
|
|
@@ -103,14 +111,14 @@ pushd php-clearsilver-%{version}-php74
|
|
|
popd
|
|
|
%endif
|
|
|
|
|
|
-%if %{with php73}
|
|
|
-cp -a php-clearsilver-%{version} php-clearsilver-%{version}-php73
|
|
|
-pushd php-clearsilver-%{version}-php73
|
|
|
-%patch0 -p1 -b .php56
|
|
|
-%patch2 -p1 -b .php72
|
|
|
+%if %{with php80}
|
|
|
+cp -a php-clearsilver-%{version} php-clearsilver-%{version}-php80
|
|
|
+pushd php-clearsilver-%{version}-php80
|
|
|
+%patch3 -p1 -b .php80
|
|
|
popd
|
|
|
%endif
|
|
|
|
|
|
+
|
|
|
%build
|
|
|
%if %{with php5}
|
|
|
pushd php-clearsilver-%{version}-php5
|
|
@@ -131,15 +139,16 @@ aclocal
|
|
|
popd
|
|
|
%endif
|
|
|
|
|
|
-%if %{with php73}
|
|
|
-pushd php-clearsilver-%{version}-php73
|
|
|
-phpize73
|
|
|
+%if %{with php80}
|
|
|
+pushd php-clearsilver-%{version}-php80
|
|
|
+phpize80
|
|
|
aclocal
|
|
|
-%configure --with-php-config=/usr/bin/php-config73
|
|
|
+%configure --with-php-config=/usr/bin/php-config80
|
|
|
%__make %{_smp_mflags}
|
|
|
popd
|
|
|
%endif
|
|
|
|
|
|
+
|
|
|
%install
|
|
|
rm -rf %{buildroot}
|
|
|
%if %{with php5}
|
|
@@ -170,22 +179,22 @@ EOF
|
|
|
popd
|
|
|
%endif
|
|
|
|
|
|
-%if %{with php73}
|
|
|
-pushd php-clearsilver-%{version}-php73
|
|
|
-mkdir -p %{buildroot}%{_libdir}/php73/
|
|
|
-mkdir -p %{buildroot}%{_sysconfdir}/php73/php.d
|
|
|
+%if %{with php80}
|
|
|
+pushd php-clearsilver-%{version}-php80
|
|
|
+mkdir -p %{buildroot}%{_libdir}/php80/
|
|
|
+mkdir -p %{buildroot}%{_sysconfdir}/php80/php.d
|
|
|
|
|
|
-install -m644 modules/%{modname}.so %{buildroot}%{_libdir}/php73/
|
|
|
+install -m644 modules/%{modname}.so %{buildroot}%{_libdir}/php80/
|
|
|
|
|
|
-cat > %{buildroot}%{_sysconfdir}/php73/php.d/%{modname}.ini <<EOF
|
|
|
+cat > %{buildroot}%{_sysconfdir}/php80/php.d/%{modname}.ini <<EOF
|
|
|
; Enable %{modname} extension module
|
|
|
extension=%{modname}.so
|
|
|
EOF
|
|
|
popd
|
|
|
%endif
|
|
|
|
|
|
-%check
|
|
|
|
|
|
+%check
|
|
|
%if %{with php5}
|
|
|
pushd php-clearsilver-%{version}-php5
|
|
|
make test NO_INTERACTION=1
|
|
@@ -198,15 +207,17 @@ make test TEST_PHPDBG_EXECUTABLE=/usr/bin/phpdbg74 NO_INTERACTION=1
|
|
|
popd
|
|
|
%endif
|
|
|
|
|
|
-%if %{with php73}
|
|
|
-pushd php-clearsilver-%{version}-php73
|
|
|
-make test TEST_PHPDBG_EXECUTABLE=/usr/bin/phpdbg73 NO_INTERACTION=1
|
|
|
+%if %{with php80}
|
|
|
+pushd php-clearsilver-%{version}-php80
|
|
|
+make test TEST_PHPDBG_EXECUTABLE=/usr/bin/phpdbg80 NO_INTERACTION=1
|
|
|
popd
|
|
|
%endif
|
|
|
|
|
|
+
|
|
|
%clean
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
+
|
|
|
%if %{with php5}
|
|
|
%files -n php5-ext-%{modname}
|
|
|
%defattr(-,root,root)
|
|
@@ -223,15 +234,20 @@ rm -rf %{buildroot}
|
|
|
%{_sysconfdir}/php74/php.d/*
|
|
|
%endif
|
|
|
|
|
|
-%if %{with php73}
|
|
|
-%files -n php73-ext-%{modname}
|
|
|
+%if %{with php80}
|
|
|
+%files -n php80-ext-%{modname}
|
|
|
%defattr(-,root,root)
|
|
|
%doc CREDITS INSTALL LICENSE README doc
|
|
|
-%{_libdir}/php73/*
|
|
|
-%{_sysconfdir}/php73/php.d/*
|
|
|
+%{_libdir}/php80/*
|
|
|
+%{_sysconfdir}/php80/php.d/*
|
|
|
%endif
|
|
|
|
|
|
+
|
|
|
%changelog
|
|
|
+* Sat Dec 19 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-16
|
|
|
+- added php80 support.
|
|
|
+- dropped php73 support.
|
|
|
+
|
|
|
* Thu Dec 19 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-15
|
|
|
- added php74 support.
|
|
|
|