summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-04-20 17:27:12 +0200
committerRemi Collet <remi@remirepo.net>2021-04-20 17:27:12 +0200
commitd4cf1facd08da90758f634383b5bd62781029467 (patch)
tree170eaaad3f2c4e7aa2c8e408222ce373b09d5eef
parenta8020b09b055f7a60e4ab5e575ae12ceb4b59a04 (diff)
cleanup
-rw-r--r--php-ast.spec7
1 files 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