%define extname phpredis Summary: A redis extension for PHP Summary(ja): PHP用redis拡張 Name: php-ext-phpredis Version: 5.3.2 Release: 1%{_dist_release} Group: programming Vendor: Project Vine Distribution: Vine Linux Packager: tomop Source: https://github.com/phpredis/phpredis/archive/%{version}.tar.gz#/phpredis-%{version}.tgz License: The PHP License BuildRoot: %{_tmppath}/%{name}-%{version}-root %description The phpredis extension provides an API for communicating with the Redis key-value store. %description -l ja  phpredis拡張は、Redis KVSと通信するためのAPIを提供します。 %package -n php80-ext-phpredis Summary: A redis extension for PHP Summary(ja): PHP用redis拡張 Group: programming BuildRequires: php80-devel %if "%{?req_php80_api}" != "" Requires: %{req_php80_api} %endif %description -n php80-ext-phpredis The phpredis extension provides an API for communicating with the Redis key-value store. %description -n php80-ext-phpredis -l ja  phpredis拡張は、Redis KVSと通信するためのAPIを提供します。 %package -n php74-ext-phpredis Summary: A redis extension for PHP Summary(ja): PHP用redis拡張 Group: programming BuildRequires: php74-devel %if "%{?req_php74_api}" != "" Requires: %{req_php74_api} %endif %description -n php74-ext-phpredis The phpredis extension provides an API for communicating with the Redis key-value store. %description -n php74-ext-phpredis -l ja  phpredis拡張は、Redis KVSと通信するためのAPIを提供します。 %debug_package %prep %setup -q -c -n phpredis-%{version} cp %{extname}-%{version}/{COPYING,CREDITS,Changelog.md,*.markdown} ./ cp -a %{extname}-%{version} php80 pushd php80 phpize80 popd cp -a %{extname}-%{version} php74 pushd php74 phpize74 popd %build pushd php80 %configure --with-php-config=%{_bindir}/php-config80 %__make %{?_smp_mflags} popd pushd php74 %configure --with-php-config=%{_bindir}/php-config74 %__make %{?_smp_mflags} popd %install rm -rf %{buildroot} pushd php80 mkdir -p %{buildroot}%{_libdir}/php80/ mkdir -p %{buildroot}%{_sysconfdir}/php80/php.d %makeinstall INSTALL_ROOT=%{buildroot} cat > %{buildroot}%{_sysconfdir}/php80/php.d/redis.ini < %{buildroot}%{_sysconfdir}/php74/php.d/redis.ini < 5.3.2-1 - new upstream release. - added php80 support. * Thu Dec 19 2019 Tomohiro "Tomo-p" KATO 5.1.1-1 - new upstream release. - built for php74. * Thu Aug 22 2019 Tomohiro "Tomo-p" KATO 5.0.2-1 - initial build for Vine Linux.