Accepting request 751205 from home:adkorte
Extract version of PEAR modules from the sources OBS-URL: https://build.opensuse.org/request/show/751205 OBS-URL: https://build.opensuse.org/package/show/devel:languages:php/php7-pear?expand=0&rev=6
This commit is contained in:
parent
189403a05d
commit
e718f14966
@ -15,21 +15,11 @@
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%define v_Archive_Tar 1.4.8
|
||||
%define v_Console_Getopt 1.4.3
|
||||
%define v_PEAR 1.10.10
|
||||
%define v_Structures_Graph 1.1.1
|
||||
%define v_XML_Util 1.4.3
|
||||
|
||||
%global peardir %{_datadir}/php7/PEAR
|
||||
%global metadir %{_localstatedir}/lib/pear
|
||||
|
||||
%define pear_version_check(m,n) \
|
||||
v=$(sed -n 's/.*=>.*%{1}-\\(.*\\)\\.tar.*/\\1/p' %{SOURCE0}) \
|
||||
if test "x${v}" != "x%{2}"; then \
|
||||
: ERROR: Upstream %{1} version is now ${v}, expecting %{2}. \
|
||||
exit 1 \
|
||||
fi
|
||||
%define pear_module_version(m) %(sed -n 's/.*=>.*%{1}-\\(.*\\)\\.tar.*/\\1/p' %{SOURCE0})
|
||||
|
||||
Name: php7-pear
|
||||
Version: 1.10.17
|
||||
@ -45,11 +35,11 @@ Source3: %{name}.rpmlintrc
|
||||
BuildRequires: php7
|
||||
BuildRequires: php7-phar
|
||||
Requires: php7
|
||||
Provides: php-pear(Archive_Tar) = %{v_Archive_Tar}
|
||||
Provides: php-pear(Console_Getopt) = %{v_Console_Getopt}
|
||||
Provides: php-pear(PEAR) = %{v_PEAR}
|
||||
Provides: php-pear(Structures_Graph) = %{v_Structures_Graph}
|
||||
Provides: php-pear(XML_Util) = %{v_XML_Util}
|
||||
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}
|
||||
BuildArch: noarch
|
||||
@ -80,11 +70,7 @@ development of PHP extensions.
|
||||
See https://pecl.php.net for more details.
|
||||
|
||||
%prep
|
||||
%pear_version_check Archive_Tar %{v_Archive_Tar}
|
||||
%pear_version_check Console_Getopt %{v_Console_Getopt}
|
||||
%pear_version_check PEAR %{v_PEAR}
|
||||
%pear_version_check Structures_Graph %{v_Structures_Graph}
|
||||
%pear_version_check XML_Util %{v_XML_Util}
|
||||
# Empty prep section, nothing to prepare
|
||||
|
||||
%build
|
||||
# Empty build section, nothing to build
|
||||
|
Loading…
x
Reference in New Issue
Block a user