mirror of
https://github.com/php-win-ext/phpredis.git
synced 2026-03-24 00:52:16 +01:00
Update rpm packer for phpredis (#1904)
This commit is contained in:
3
rpm/README.md
Normal file
3
rpm/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
You can find and up to date version of this RPM builder here :
|
||||
|
||||
https://src.fedoraproject.org/rpms/php-pecl-redis5/tree/master
|
||||
@@ -1,48 +0,0 @@
|
||||
%global php_apiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1)
|
||||
%global php_extdir %(php-config --extension-dir 2>/dev/null || echo "undefined")
|
||||
%global php_version %(php-config --version 2>/dev/null || echo 0)
|
||||
|
||||
Name: php-redis
|
||||
Version: 2.2.5
|
||||
Release: 1%{?dist}
|
||||
Summary: The phpredis extension provides an API for communicating with the Redis key-value store.
|
||||
|
||||
Group: Development/Languages
|
||||
License: PHP
|
||||
URL: https://github.com/nicolasff/phpredis
|
||||
Source0: https://github.com/nicolasff/phpredis/tarball/master
|
||||
Source1: redis.ini
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: php-devel
|
||||
Requires: php(zend-abi) = %{php_zend_api}
|
||||
Requires: php(api) = %{php_apiver}
|
||||
|
||||
%description
|
||||
The phpredis extension provides an API for communicating with the Redis key-value store.
|
||||
|
||||
%prep
|
||||
%setup -q -n nicolasff-phpredis-43bc590
|
||||
|
||||
%build
|
||||
%{_bindir}/phpize
|
||||
%configure
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
|
||||
# install configuration
|
||||
%{__mkdir} -p $RPM_BUILD_ROOT%{_sysconfdir}/php.d
|
||||
%{__cp} %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/php.d/redis.ini
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc CREDITS
|
||||
%config(noreplace) %{_sysconfdir}/php.d/redis.ini
|
||||
%{php_extdir}/redis.so
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
extension=redis.so
|
||||
Reference in New Issue
Block a user