File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ FROM centos:8
2+
3+ RUN dnf module enable -y php:7.3
4+ RUN dnf install -y php php-devel gcc rpm-build rpm-devel rpmlint make bash diffutils patch rpmdevtools
5+ RUN rpmdev-setuptree
6+
7+ CMD cd /data;./indocker.sh
8+
Original file line number Diff line number Diff line change 1+ # /bin/bash
2+ docker build -t rpmbuilder ./
3+ docker run -v $( pwd) :/data rpmbuilder
Original file line number Diff line number Diff line change 1+ # /bin/bash
2+ spectool -g -R ./php-redis.spec
3+ rpmbuild -ba php-redis.spec
4+ cp -r /root/rpmbuild/RPMS/* /data/
Original file line number Diff line number Diff line change 22%global php_extdir %(php-config --extension-dir 2> /dev/null || echo "undefined")
33%global php_version %(php-config --version 2> /dev/null || echo 0)
44
5- Name: php-redis
6- Version: 2.2.5
5+ Name: phpredis
6+ Version: 5.3.2
77Release: 1%{?dist }
88Summary: The phpredis extension provides an API for communicating with the Redis key-value store.
99
1010Group: Development/Languages
1111License: PHP
12- URL: https://github.com/nicolasff /phpredis
13- Source0: https://github.com/nicolasff /phpredis/tarball/master
14- Source1: redis.ini
12+ URL: https://github.com/phpredis /phpredis
13+ Source0: https://github.com/phpredis /phpredis/archive/%{ version }.tar.gz
14+ Source1: https://raw.githubusercontent.com/phpredis/phpredis/develop/rpm/ redis.ini
1515BuildRoot: %{_tmppath }/%{name }-%{version }-%{release }-root-%(%{__id_u} -n)
1616
1717BuildRequires: php-devel
@@ -22,7 +22,7 @@ Requires: php(api) = %{php_apiver}
2222The phpredis extension provides an API for communicating with the Redis key-value store.
2323
2424%prep
25- %setup -q -n nicolasff-phpredis-43bc590
25+ %setup -q
2626
2727%build
2828%{_bindir }/phpize
You can’t perform that action at this time.
0 commit comments