[packages/php-pecl-yaf] new, version 2.2.9

glen glen at pld-linux.org
Tue Sep 3 14:12:49 CEST 2013


commit bd43596a1dbf1511e17d556c27e2a966b3392397
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Sep 1 12:44:08 2013 +0300

    new, version 2.2.9

 php-pecl-yaf.spec | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
---
diff --git a/php-pecl-yaf.spec b/php-pecl-yaf.spec
new file mode 100644
index 0000000..fcf903c
--- /dev/null
+++ b/php-pecl-yaf.spec
@@ -0,0 +1,61 @@
+#
+# Conditional build:
+%bcond_without	tests		# build without tests
+
+%define		php_name	php%{?php_suffix}
+%define		modname	yaf
+Summary:	PHP Framework in PHP extension
+Name:		%{php_name}-pecl-%{modname}
+Version:	2.2.9
+Release:	1
+License:	PHP 3.01
+Group:		Development/Languages/PHP
+Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
+# Source0-md5:	f8ad38653199e40b2bfd3b9435a617d6
+URL:		http://pecl.php.net/package/yaf
+BuildRequires:	%{php_name}-devel >= 4:5.2
+BuildRequires:	rpmbuild(macros) >= 1.666
+%{?requires_php_extension}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Yaf is a PHP framework similar to Zend Framework, which is written in
+C and built as PHP extension.
+
+%prep
+%setup -qc
+mv %{modname}-%{version}/* .
+
+%build
+phpize
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	EXTENSION_DIR=%{php_extensiondir} \
+	INSTALL_ROOT=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
+cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
+; Enable %{modname} extension module
+extension=%{modname}.so
+EOF
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%php_webserver_restart
+
+%postun
+if [ "$1" = 0 ]; then
+	%php_webserver_restart
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc CREDITS LICENSE
+%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-yaf.git/commitdiff/bd43596a1dbf1511e17d556c27e2a966b3392397



More information about the pld-cvs-commit mailing list