Created
March 10, 2015 05:13
-
-
Save mountkin/5175c213585d485db31e to your computer and use it in GitHub Desktop.
PHP redis extension RPM spec demo.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: php-redis | |
Version: 2.2.7 | |
Release: 1%{?dist} | |
Summary: PHP pecl redis | |
Group: cSphere.cn/demo | |
License: PHP License 3.0 | |
URL: http://pecl.php.net/redis | |
Source0: http://pecl.php.net/get/redis-2.2.7.tgz | |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) | |
BuildRequires: php-devel | |
Requires: php | |
%description | |
Demo packaging. | |
%prep | |
%setup -q -n redis-2.2.7 | |
%build | |
phpize | |
%configure | |
make %{?_smp_mflags} | |
%install | |
set -e | |
rm -rf %{buildroot} | |
make install INSTALL_ROOT=%{buildroot} | |
%clean | |
rm -rf %{buildroot} | |
%files | |
%defattr(-,root,root,-) | |
/usr/lib64/php/modules/redis.so | |
%doc | |
%changelog | |
* Tue Mar 10 2015 Shijiang Wei <mountkin@gmail.com> | |
- Initial RPM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment