Accepting request 750869 from home:adkorte:branches:devel:languages:php
- Create php7-pecl subpackage for PECL builds OBS-URL: https://build.opensuse.org/request/show/750869 OBS-URL: https://build.opensuse.org/package/show/devel:languages:php/php7-pear?expand=0&rev=2
This commit is contained in:
parent
f138cabbfd
commit
797a162dd7
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 25 19:20:08 UTC 2019 - Arjen de Korte <suse+build@de-korte.org>
|
||||
|
||||
- Create php7-pecl subpackage for PECL builds
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 23 13:22:51 UTC 2019 - Arjen de Korte <suse+build@de-korte.org>
|
||||
|
||||
|
@ -31,6 +31,7 @@ Source2: %{name}.keyring
|
||||
Source3: %{name}.rpmlintrc
|
||||
BuildRequires: php7
|
||||
BuildRequires: php7-phar
|
||||
Requires: php7
|
||||
Provides: php-pear(PEAR) = %{version}
|
||||
Provides: php-pear = %{version}
|
||||
Obsoletes: php-pear < %{version}
|
||||
@ -43,6 +44,24 @@ to the repository.
|
||||
|
||||
See https://pear.php.net/manual for more details.
|
||||
|
||||
%package -n php7-pecl
|
||||
Summary: PHP Extension Community Library
|
||||
Requires: autoconf
|
||||
Requires: automake
|
||||
Requires: gcc-c++
|
||||
Requires: libtool
|
||||
Requires: php7-pear
|
||||
Provides: php-pecl = %{version}
|
||||
Obsoletes: php-pecl < %{version}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n php7-pecl
|
||||
PECL is a repository for PHP Extensions, providing a directory of
|
||||
all known extensions and hosting facilities for downloading and
|
||||
development of PHP extensions.
|
||||
|
||||
See https://pecl.php.net for more details.
|
||||
|
||||
%prep
|
||||
# Empty prep section, nothing to prepare
|
||||
|
||||
@ -56,7 +75,6 @@ export PHP_PEAR_SIG_BIN=%{_bindir}/gpg
|
||||
export PHP_PEAR_INSTALL_DIR=%{peardir}
|
||||
export PHP_PEAR_CACHE_DIR=%{_localstatedir}/cache/pear
|
||||
export PHP_PEAR_TEMP_DIR=%{_localstatedir}/tmp
|
||||
|
||||
export INSTALL_ROOT=%{buildroot}
|
||||
|
||||
install -d %{buildroot}%{_localstatedir}/cache/pear
|
||||
@ -73,13 +91,24 @@ php -d date.timezone=UTC -d memory_limit=64M -d short_open_tag=0 -d safe_mode=0
|
||||
--temp /tmp/pear/temp \
|
||||
--www %{peardir}/htdocs
|
||||
|
||||
rm -rf %{buildroot}/{.depdb,.depdblock}
|
||||
|
||||
%files
|
||||
%{_bindir}/*
|
||||
%{_bindir}/pear
|
||||
%config(noreplace) %{_sysconfdir}/php7/cli/pear.conf
|
||||
%dir %{peardir}
|
||||
%{peardir}
|
||||
%dir %{_localstatedir}/cache/pear
|
||||
%exclude %{_bindir}/peardev
|
||||
%exclude %{peardir}/{.depdblock,.lock,test}
|
||||
%exclude %{peardir}/.channels/.alias/pecl.txt
|
||||
%exclude %{peardir}/.channels/pecl.php.net.reg
|
||||
%exclude %{peardir}/.registry/.channel.pecl.php.net
|
||||
|
||||
%files -n php7-pecl
|
||||
%{_bindir}/pecl
|
||||
%{peardir}/.channels/.alias/pecl.txt
|
||||
%{peardir}/.channels/pecl.php.net.reg
|
||||
%{peardir}/.registry/.channel.pecl.php.net
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user