From d4cf1facd08da90758f634383b5bd62781029467 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 20 Apr 2021 17:27:12 +0200 Subject: cleanup --- php-ast.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/php-ast.spec b/php-ast.spec index 512bcfb..0ac839f 100644 --- a/php-ast.spec +++ b/php-ast.spec @@ -13,6 +13,7 @@ %global gh_owner nikic %global gh_project php-ast #global gh_date 20160608 + %global pecl_name ast %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} # After 20-tokenizer.ini @@ -27,11 +28,11 @@ Release: 0.7.%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__ph Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} %endif License: BSD -URL: https://github.com/%{gh_owner}/%{gh_project} +URL: https://pecl.php.net/package/ast %if 0%{?gh_date} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz %else -Source0: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz +Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz %endif BuildRequires: make @@ -83,7 +84,7 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO mv %{gh_project}-%{gh_commit} NTS mv NTS/package.xml . %else -mv %{pecl_name}-%{version}%{?prever} NTS +mv %{pecl_name}-%{version} NTS %endif # Don't install/register tests -- cgit