osc copypac from project:devel:languages:php:php8 package:php8-pear revision:3
OBS-URL: https://build.opensuse.org/package/show/devel:languages:php/php8-pear?expand=0&rev=1
This commit is contained in:
commit
1b5b07bf00
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
99370
install-pear-nozlib.phar
Normal file
99370
install-pear-nozlib.phar
Normal file
File diff suppressed because it is too large
Load Diff
BIN
install-pear-nozlib.phar.sig
Normal file
BIN
install-pear-nozlib.phar.sig
Normal file
Binary file not shown.
70
php8-pear.changes
Normal file
70
php8-pear.changes
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 12 07:37:54 UTC 2021 - Arjen de Korte <suse+build@de-korte.org>
|
||||||
|
|
||||||
|
- (Build)Require php8-cli instead of php8
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jan 9 20:41:12 UTC 2021 - Arjen de Korte <suse+build@de-korte.org>
|
||||||
|
|
||||||
|
- Build for PHP8
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 19 18:40:31 UTC 2020 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- provides and obsoletes php7-pear-Archive_Tar, former location
|
||||||
|
of PEAR/Archive/Tar.php
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Apr 19 18:42:17 UTC 2020 - Arjen de Korte <suse+build@de-korte.org>
|
||||||
|
|
||||||
|
- Update to version 1.10.19
|
||||||
|
- PEAR 1.10.12
|
||||||
|
* adjust dependencies based on new releases
|
||||||
|
- XML_Util 1.4.5
|
||||||
|
* fix Trying to access array offset on value of type int
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 10 20:17:07 UTC 2020 - Arjen de Korte <suse+build@de-korte.org>
|
||||||
|
|
||||||
|
- Update to version 1.10.18
|
||||||
|
- Remove pear-cacheid-array-check.patch (upstreamed)
|
||||||
|
- Contents of .filemap are now sorted internally
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 28 08:33:14 UTC 2020 - Arjen de Korte <suse+build@de-korte.org>
|
||||||
|
|
||||||
|
- Sort contents of .filemap to make build reproducible
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Dec 7 22:57:56 UTC 2019 - Arjen de Korte <suse+build@de-korte.org>
|
||||||
|
|
||||||
|
- Apply upstream patch for https://bugs.php.net/78890
|
||||||
|
+ pear-cacheid-array-check.patch
|
||||||
|
- Recommend php7-openssl to allow https sources to be used
|
||||||
|
- Modify metadata_dir for system configuration only
|
||||||
|
- Add /var/lib/pear directory where xml files are stored
|
||||||
|
- Cleanup %files section
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 26 20:22:08 UTC 2019 - Arjen de Korte <suse+build@de-korte.org>
|
||||||
|
|
||||||
|
- Only use the GPG keys of Chuck Burgess. Extracted from the
|
||||||
|
Release Manager public keys.
|
||||||
|
- Add release versions of PEAR modules
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 26 12:14:33 UTC 2019 - Arjen de Korte <suse+build@de-korte.org>
|
||||||
|
|
||||||
|
- Install metadata files (registry, filemap, channels, ...) in
|
||||||
|
/var/lib/pear/ instead of /usr/share/php7/PEAR/
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
- Update to version 1.10.17
|
||||||
|
- Package separately, as builtin PEAR was deprecated in PHP-7.4
|
56
php8-pear.keyring
Normal file
56
php8-pear.keyring
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
|
||||||
|
mQGiBEbYUA8RBAC5B+RSyTku1ml0uFONZIX6zLvHXMgJ8FfBWHdataU0aluW6/zk
|
||||||
|
P6CHoWT/P2Wgb5RaW5i+Lkx43Amp4et7UaS5guIXD7+rQIdkQWzeBEtskfj5c10l
|
||||||
|
yAROK5/iH+Dk+BvFTZiEBFmT3r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Z9Y6VvtinOwrmvIVGdIK
|
||||||
|
JL60lILTw6WiKvohW1N1uqoFA3kXyq+pH7V52bCjIGF/4jI8N1KJ4PaikA4rLWk9
|
||||||
|
3In4gRMlmxc0xDfI482kPxKO0dZMi4XVZs6i5NMKHStRoznn0KZxqXuGxFVRKeMm
|
||||||
|
bGu2vKtWbNco0ycgh/U+xGeEfz3xEuYchjnbxCg8TvwRzI20gmr82EwdBTQbuU2u
|
||||||
|
/7quhrReETcHaVv7JsgjbQP7cSXCUrp2y5slRSMJj2kRehJpB4LCDNOlIlfA5TlE
|
||||||
|
M8XfJgI81Dvxj3G2+4hJBBgRAgAJBQJG2FAWAhsMAAoJEHKjIbrCRfF1s5UAoM8E
|
||||||
|
nj2WuBU4cV+H72T7R8WjkXxaAKDO2dB5epfQNOxMtmQ7SSTzNIq1EA==
|
||||||
|
=bewc
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
5
php8-pear.rpmlintrc
Normal file
5
php8-pear.rpmlintrc
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Channel files in metadata_dir
|
||||||
|
addFilter("hidden-file-or-dir /var/lib/pear/.")
|
||||||
|
addFilter("zero-length /var/lib/pear/.")
|
||||||
|
# Forgot to add category?
|
||||||
|
addFilter("non-standard-group Development/Libraries/PHP")
|
139
php8-pear.spec
Normal file
139
php8-pear.spec
Normal file
@ -0,0 +1,139 @@
|
|||||||
|
#
|
||||||
|
# spec file for package php8-pear
|
||||||
|
#
|
||||||
|
# Copyright (c) 2021 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%global peardir %{_datadir}/php/PEAR
|
||||||
|
%global oldpear %{_datadir}/php7/PEAR
|
||||||
|
%global metadir %{_localstatedir}/lib/pear
|
||||||
|
|
||||||
|
%define pear_module_version(m) %(sed -n 's/.*=>.*%{1}-\\(.*\\)\\.tar.*/\\1/p' %{SOURCE0})
|
||||||
|
|
||||||
|
Name: php8-pear
|
||||||
|
Version: 1.10.19
|
||||||
|
Release: 0
|
||||||
|
Summary: PHP Extension and Application Repository
|
||||||
|
License: BSD-2-Clause
|
||||||
|
Group: Development/Libraries/PHP
|
||||||
|
URL: https://pear.php.net/package/pearweb_phars
|
||||||
|
Source0: https://github.com/pear/pearweb_phars/raw/v%{version}/install-pear-nozlib.phar
|
||||||
|
Source1: https://github.com/pear/pearweb_phars/raw/v%{version}/install-pear-nozlib.sig#/install-pear-nozlib.phar.sig
|
||||||
|
Source2: %{name}.keyring
|
||||||
|
Source3: %{name}.rpmlintrc
|
||||||
|
BuildRequires: php8-cli
|
||||||
|
BuildRequires: php8-phar
|
||||||
|
Requires: php8-cli
|
||||||
|
Requires: php8-openssl
|
||||||
|
Requires: php8-phar
|
||||||
|
Provides: php-pear(Archive_Tar) = %pear_module_version Archive_Tar
|
||||||
|
Provides: php-pear(Console_Getopt) = %pear_module_version Console_Getopt
|
||||||
|
Provides: php-pear(PEAR) = %pear_module_version PEAR
|
||||||
|
Provides: php-pear(Structures_Graph) = %pear_module_version Structures_Graph
|
||||||
|
Provides: php-pear(XML_Util) = %pear_module_version XML_Util
|
||||||
|
Provides: php-pear = %{version}
|
||||||
|
Obsoletes: php-pear < %{version}
|
||||||
|
%if 0%{?suse_version} <= 1500
|
||||||
|
Provides: php7-pear-Archive_Tar
|
||||||
|
Obsoletes: php7-pear-Archive_Tar
|
||||||
|
%endif
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
PEAR is a code repository for PHP extensions and PHP library code
|
||||||
|
similar to TeX's CTAN and Perl's CPAN. This package provides an access
|
||||||
|
to the repository.
|
||||||
|
|
||||||
|
See https://pear.php.net/manual for more details.
|
||||||
|
|
||||||
|
%package -n php8-pecl
|
||||||
|
Summary: PHP Extension Community Library
|
||||||
|
Group: Development/Libraries/PHP
|
||||||
|
Requires: autoconf
|
||||||
|
Requires: automake
|
||||||
|
Requires: gcc-c++
|
||||||
|
Requires: libtool
|
||||||
|
Requires: php8-pear = %{version}
|
||||||
|
Provides: php-pecl = %{version}
|
||||||
|
Obsoletes: php-pecl < %{version}
|
||||||
|
Conflicts: php-devel < 7.4
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description -n php8-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
|
||||||
|
|
||||||
|
%build
|
||||||
|
# Empty build section, nothing to build
|
||||||
|
|
||||||
|
%install
|
||||||
|
export PHP_PEAR_INSTALL_DIR=%{peardir}
|
||||||
|
export PHP_PEAR_METADATA_DIR=%{metadir}
|
||||||
|
export PHP_PEAR_SIG_BIN=%{_bindir}/gpg
|
||||||
|
export PHP_PEAR_SYSCONF_DIR=%{_sysconfdir}/php8/cli
|
||||||
|
export INSTALL_ROOT=%{buildroot}
|
||||||
|
|
||||||
|
install -d %{buildroot}%{_localstatedir}/{cache,lib}/pear
|
||||||
|
|
||||||
|
php -d date.timezone=UTC -d memory_limit=64M -d short_open_tag=0 -d safe_mode=0 \
|
||||||
|
-d 'error_reporting=E_ALL&~E_DEPRECATED' -d detect_unicode=0 %{SOURCE0} \
|
||||||
|
--force \
|
||||||
|
--bin %{_bindir} \
|
||||||
|
--cache %{_localstatedir}/cache/pear \
|
||||||
|
--dir %{peardir} \
|
||||||
|
--man %{_mandir} \
|
||||||
|
--metadata %{metadir} \
|
||||||
|
--www %{peardir}/htdocs
|
||||||
|
|
||||||
|
%pre
|
||||||
|
if [ -d %{oldpear}/.registry -a ! -d %{metadir}/.registry ]; then
|
||||||
|
mkdir -p %{metadir}
|
||||||
|
cp -af %{oldpear}/{.channels,.registry} %{metadir}
|
||||||
|
fi
|
||||||
|
if [ -d %{oldpear} -a ! -d %{peardir} ]; then
|
||||||
|
mkdir -p %{peardir}
|
||||||
|
cp -af %{oldpear}/* %{peardir}
|
||||||
|
fi
|
||||||
|
|
||||||
|
%posttrans
|
||||||
|
mdir=$(%{_bindir}/pear config-get metadata_dir system)
|
||||||
|
if [ "${mdir}" != "%{metadir}" -a -d %{metadir}/.registry ]; then
|
||||||
|
%{_bindir}/pear config-set metadata_dir %{metadir} system
|
||||||
|
rm -rf %{oldpear}/{.channels,.registry}
|
||||||
|
fi
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_bindir}/pear
|
||||||
|
%config(noreplace) %{_sysconfdir}/php8/cli/pear.conf
|
||||||
|
%dir %{_localstatedir}/cache/pear
|
||||||
|
%dir %{_localstatedir}/lib/pear
|
||||||
|
%dir %{peardir}
|
||||||
|
%docdir %{peardir}/doc
|
||||||
|
%{peardir}/*
|
||||||
|
%{metadir}/.??*
|
||||||
|
%exclude %{_bindir}/peardev
|
||||||
|
%exclude %{peardir}/doc/PEAR/INSTALL
|
||||||
|
%exclude %{peardir}/test
|
||||||
|
|
||||||
|
%files -n php8-pecl
|
||||||
|
%{_bindir}/pecl
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user