commit 826fd2f0cf9fc9e9a579a03e44019972ca977b9c Author: Elan Ruusamäe <g...@delfi.ee> Date: Fri Jul 11 08:46:27 2014 +0300
php multiversion support; default to php 5.5 lasso.spec | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) --- diff --git a/lasso.spec b/lasso.spec index 067efa2..cd8191e 100644 --- a/lasso.spec +++ b/lasso.spec @@ -11,11 +11,15 @@ %bcond_without python # Python 2.x bindings %bcond_without static_libs # static library +%if "%{?php_suffix}" == "" +%define php_suffix 55 +%endif +%define php_name php%{?php_suffix} Summary: Liberty Alliance Single Sign On Summary(pl.UTF-8): Implementacja Liberty Alliance Single Sign On Name: lasso Version: 2.4.0 -Release: 1 +Release: 2 License: GPL v2+ Group: Libraries Source0: http://dev.entrouvert.org/lasso/%{name}-%{version}.tar.gz @@ -41,7 +45,7 @@ BuildRequires: xmlsec1-openssl-devel >= 1.2.6 BuildRequires: zlib-devel %if %{with php} BuildRequires: expat-devel -BuildRequires: php-devel >= 5 +BuildRequires: %{php_name}-devel >= 5 BuildRequires: python %endif %if %{with perl} @@ -130,17 +134,18 @@ library. %description -n java-%{name} -l pl.UTF-8 Wiązania Javy do biblioteki lasso (Liberty Alliance Single Sign On). -%package -n php-%{name} +%package -n %{php_name}-%{name} Summary: Liberty Alliance Single Sign On (lasso) PHP bindings Summary(pl.UTF-8): Wiązania PHP do Liberty Alliance Single Sign On (lasso) Group: Development/Languages/PHP Requires: %{name} = %{version}-%{release} +%{?requires_php_extension} -%description -n php-%{name} +%description -n %{php_name}-%{name} PHP language bindings for the lasso (Liberty Alliance Single Sign On) library. -%description -n php-%{name} -l pl.UTF-8 +%description -n %{php_name}-%{name} -l pl.UTF-8 Wiązania PHP do biblioteki lasso (Liberty Alliance Single Sign On). %package -n python-%{name} @@ -267,7 +272,7 @@ rm -rf $RPM_BUILD_ROOT %endif %if %{with php} -%files -n php-%{name} +%files -n %{php_name}-%{name} %defattr(644,root,root,755) %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/lasso.ini %attr(755,root,root) %{php_extensiondir}/lasso.so ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/lasso.git/commitdiff/826fd2f0cf9fc9e9a579a03e44019972ca977b9c _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit