Browse Source

php-ext-clearsilver-0.4-9

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@10940 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 7 years ago
parent
commit
aa5fb5a6c1
1 changed files with 31 additions and 28 deletions
  1. 31 28
      p/php-ext-clearsilver/php-ext-clearsilver-vl.spec

+ 31 - 28
p/php-ext-clearsilver/php-ext-clearsilver-vl.spec

@@ -1,5 +1,5 @@
 %bcond_without php5
-%bcond_with php70
+%bcond_without php71
 
 %define modname clearsilver
 
@@ -7,7 +7,7 @@ Summary: ClearSilver extension for PHP
 Summary(ja): PHP用ClearSilverモジュール
 Name: php-ext-%{modname}
 Version: 0.4
-Release: 8%{_dist_release}
+Release: 9%{_dist_release}
 URL: http://www.geodata.soton.ac.uk/software/php_clearsilver/
 Source: php-%{modname}-%{version}.tar.gz
 Patch0: php-clearsilver-0.4-php5.5.0.patch
@@ -22,8 +22,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
 BuildRequires: php5-devel
 %endif
 
-%if %{with php70}
-BuildRequires: php70-devel
+%if %{with php71}
+BuildRequires: php71-devel
 %endif
 
 Vendor: Project Vine
@@ -54,19 +54,19 @@ This module adds ClearSilver functions to PHP.
 
 %endif
 
-%if %{with php70}
-%package -n php70-ext-%{modname}
+%if %{with php71}
+%package -n php71-ext-%{modname}
 Summary: ClearSilver extension for PHP-7.0.x
 Summary(ja): PHP-7.0.x用ClearSilverモジュール
 Group: Development/Languages
-%if "%{?req_php70_api}" != ""
-Requires: %{req_php70_api}
+%if "%{?req_php71_api}" != ""
+Requires: %{req_php71_api}
 %endif
 
-%description -n php70-ext-%{modname}
+%description -n php71-ext-%{modname}
 This module adds ClearSilver functions to PHP.
 
-%description -n php70-ext-%{modname} -l ja
+%description -n php71-ext-%{modname} -l ja
 このモジュールはPHPにClearSilverテンプレート機能を追加します。
 
 %endif
@@ -84,12 +84,12 @@ pushd php-clearsilver-%{version}-php5
 popd
 %endif
 
-%if %{with php70}
-cp -a php-clearsilver-%{version} php-clearsilver-%{version}-php70
-pushd php-clearsilver-%{version}-php70
+%if %{with php71}
+cp -a php-clearsilver-%{version} php-clearsilver-%{version}-php7
+pushd php-clearsilver-%{version}-php7
 %patch0 -p1 -b .php55
 %patch1 -p1 -b .cgifunctions
-%patch2 -p1 -b .php70
+%patch2 -p1 -b .php7
 popd
 %endif
 
@@ -105,13 +105,13 @@ libtoolize --copy --force
 popd
 %endif
 
-%if %{with php70}
-pushd php-clearsilver-%{version}-php70
+%if %{with php71}
+pushd php-clearsilver-%{version}-php7
 aclocal
 autoconf
-phpize70
+phpize71
 libtoolize --copy --force
-%configure --with-php-config=/usr/bin/php-config70
+%configure --with-php-config=/usr/bin/php-config71
 %__make %{_smp_mflags}
 popd
 %endif
@@ -132,14 +132,14 @@ EOF
 popd
 %endif
 
-%if %{with php70}
-pushd php-clearsilver-%{version}-php70
-mkdir -p %{buildroot}%{_libdir}/php70/
-mkdir -p %{buildroot}%{_sysconfdir}/php70/php.d
+%if %{with php71}
+pushd php-clearsilver-%{version}-php7
+mkdir -p %{buildroot}%{_libdir}/php71/
+mkdir -p %{buildroot}%{_sysconfdir}/php71/php.d
 
-install -m644 modules/%{modname}.so %{buildroot}%{_libdir}/php70/
+install -m644 modules/%{modname}.so %{buildroot}%{_libdir}/php71/
 
-cat > %{buildroot}%{_sysconfdir}/php70/php.d/%{modname}.ini <<EOF
+cat > %{buildroot}%{_sysconfdir}/php71/php.d/%{modname}.ini <<EOF
 ; Enable %{modname} extension module
 extension=%{modname}.so
 EOF
@@ -157,15 +157,18 @@ rm -rf %{buildroot}
 %{_sysconfdir}/php5/php.d/*
 %endif
 
-%if %{with php70}
-%files -n php70-ext-%{modname}
+%if %{with php71}
+%files -n php71-ext-%{modname}
 %defattr(-,root,root)
 %doc CREDITS INSTALL LICENSE README doc
-%{_libdir}/php70/*
-%{_sysconfdir}/php70/php.d/*
+%{_libdir}/php71/*
+%{_sysconfdir}/php71/php.d/*
 %endif
 
 %changelog
+* Thu Mar 16 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-9
+- added support for php71.
+
 * Thu Nov  5 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-8
 - fixed summary.
 - fixed php70 stuff.