summaryrefslogtreecommitdiffstats
path: root/zephir-parser.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-07-30 20:04:57 +0200
committerRemi Collet <fedora@famillecollet.com>2016-07-30 20:04:57 +0200
commit786d8944169e5c7f5508f14eb9a223ec13ba2248 (patch)
treeca5ec90b82e6093a1968e0f23f9b350dad388a5c /zephir-parser.spec
parent8b6e70a12d34db25d68c5ccc7a81450e133094c7 (diff)
zephir-parser: cleanup
Diffstat (limited to 'zephir-parser.spec')
-rw-r--r--zephir-parser.spec43
1 files changed, 21 insertions, 22 deletions
diff --git a/zephir-parser.spec b/zephir-parser.spec
index f2342bb..148d96c 100644
--- a/zephir-parser.spec
+++ b/zephir-parser.spec
@@ -25,7 +25,7 @@
Name: %{?scl_prefix}%{gh_project}-parser
Version: 0.9.3
-Release: 1%{?gh_date:.%{gh_date}git%{gh_short}}%{?dist}
+Release: 1%{?gh_date:.%{gh_date}git%{gh_short}}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
Summary: Zephir parser extension
Group: Development/Libraries
@@ -66,27 +66,6 @@ Group: Development/Languages
BuildArch: noarch
%endif
-%description -n %{?scl_prefix}%{gh_project}
-Zephir - Ze(nd Engine) Ph(p) I(nt)r(mediate) - is a high level language
-that eases the creation and maintainability of extensions for PHP.
-Zephir extensions are exported to C code that can be compiled and
-optimized by major C compilers such as gcc/clang/vc++. Functionality
-is exposed to the PHP language.
-
-Main features:
-* Both dynamic/static typing
-* Reduced execution overhead compared with full interpretation
-* Restricted procedural programming, promoting OOP
-* Memory safety
-* Ahead-of-time (AOT) compiler to provide predictable performance
-
-Compiler design goals:
-* Multi-pass compilation
-* Type speculation/inference
-* Allow runtime profile-guided optimizations, pseudo-constant propagation
- and indirect/virtual function inlining
-
-
Requires: %{?scl_prefix}php-cli
Requires: %{name} = %{version}-%{release}
# From composer.json, "require"
@@ -109,6 +88,26 @@ Requires: %{?scl_prefix}php-xml
Provides: %{?scl_prefix}php-composer(%{gh_owner}/%{gh_project}) = %{version}
+%description -n %{?scl_prefix}%{gh_project}
+Zephir - Ze(nd Engine) Ph(p) I(nt)r(mediate) - is a high level language
+that eases the creation and maintainability of extensions for PHP.
+Zephir extensions are exported to C code that can be compiled and
+optimized by major C compilers such as gcc/clang/vc++. Functionality
+is exposed to the PHP language.
+
+Main features:
+* Both dynamic/static typing
+* Reduced execution overhead compared with full interpretation
+* Restricted procedural programming, promoting OOP
+* Memory safety
+* Ahead-of-time (AOT) compiler to provide predictable performance
+
+Compiler design goals:
+* Multi-pass compilation
+* Type speculation/inference
+* Allow runtime profile-guided optimizations, pseudo-constant propagation
+ and indirect/virtual function inlining
+
%prep
%setup -q -n %{gh_project}-%{gh_commit}