[packages/php-pecl-selinux] support building for multiple php versions
glen
glen at pld-linux.org
Fri Jun 21 19:26:34 CEST 2013
commit bbf7bc283ba043c8952e12d3b6635216291fee25
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Jun 21 20:18:40 2013 +0300
support building for multiple php versions
php-pecl-selinux.spec | 29 +++++++++++++++--------------
1 file changed, 15 insertions(+), 14 deletions(-)
---
diff --git a/php-pecl-selinux.spec b/php-pecl-selinux.spec
index 8776f40..7fe891f 100644
--- a/php-pecl-selinux.spec
+++ b/php-pecl-selinux.spec
@@ -1,18 +1,19 @@
-%define _modname selinux
-%define _status devel
+%define php_name php%{?php_suffix}
+%define modname selinux
+%define status devel
Summary: SELinux binding for PHP script language
Summary(pl.UTF-8): Dowiązania PHP do SELinuksa
-Name: php-pecl-%{_modname}
+Name: %{php_name}-pecl-%{modname}
Version: 0.3.1
Release: 5
License: PHP 3.01
Group: Development/Languages/PHP
-Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
+Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
# Source0-md5: 54857a8908e199113d128b8a652f5121
URL: http://pecl.php.net/package/selinux/
BuildRequires: libselinux-devel >= 2.0.80
-BuildRequires: php-devel >= 3:5.0.0
-BuildRequires: rpmbuild(macros) >= 1.344
+BuildRequires: %{php_name}-devel >= 3:5.0.0
+BuildRequires: rpmbuild(macros) >= 1.650
%{?requires_php_extension}
Requires: php(core) >= 5.0.4
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -23,7 +24,7 @@ SELinux and PHP script language. It contains functions to get/set
security context of processes and other objects, to get/set system
booleans, to make a query for in-kernel security server and so on.
-In PECL status of this extension is: %{_status}.
+In PECL status of this extension is: %{status}.
%description -l pl.UTF-8
Rozszerzenie to udostępnia zestaw interfejsów do komunikacji pomiędzy
@@ -32,11 +33,11 @@ ustawiania kontekstów bezpieczeństwa procesów czy innych obiektów,
wartości logicznych, odpytywania wbudowanego w kernel wserwera
bezpieczeństwa itp.
-To rozszerzenie ma w PECL status: %{_status}.
+To rozszerzenie ma w PECL status: %{status}.
%prep
%setup -q -c
-mv %{_modname}-%{version}/* .
+mv %{modname}-%{version}/* .
%build
phpize
@@ -50,9 +51,9 @@ install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
%{__make} install \
INSTALL_ROOT=$RPM_BUILD_ROOT \
EXTENSION_DIR=%{php_extensiondir}
-cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
-; Enable %{_modname} extension module
-extension=%{_modname}.so
+cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
+; Enable %{modname} extension module
+extension=%{modname}.so
EOF
%clean
@@ -69,5 +70,5 @@ fi
%files
%defattr(644,root,root,755)
%doc README
-%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
-%attr(755,root,root) %{php_extensiondir}/%{_modname}.so
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
+%attr(755,root,root) %{php_extensiondir}/%{modname}.so
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-selinux.git/commitdiff/bbf7bc283ba043c8952e12d3b6635216291fee25
More information about the pld-cvs-commit
mailing list