[packages/php-phalcon] new 1.2.3

glen glen at pld-linux.org
Tue Sep 10 10:30:38 CEST 2013


commit 42ebc4eb93c2087db5b739fd15ae0d8e25a76ace
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Sep 10 11:30:14 2013 +0300

    new 1.2.3

 php-phalcon.spec | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)
---
diff --git a/php-phalcon.spec b/php-phalcon.spec
new file mode 100644
index 0000000..1c279e2
--- /dev/null
+++ b/php-phalcon.spec
@@ -0,0 +1,70 @@
+# NOTE:
+# - not in pecl because php devs are morons: https://github.com/phalcon/cphalcon/issues/194
+#
+# Conditional build:
+%bcond_without	tests		# build without tests
+
+%define		php_name	php%{?php_suffix}
+%define		modname	phalcon
+Summary:	Web framework delivered as a C-extension for PHP
+Name:		%{php_name}-%{modname}
+Version:	1.2.3
+Release:	1
+License:	PHP 3.01
+Group:		Development/Languages/PHP
+Source0:	https://github.com/phalcon/cphalcon/archive/v%{version}/%{modname}-%{version}.tar.gz
+# Source0-md5:	4f112e65c5ea101bd2924ac0d1549500
+URL:		http://phalconphp.com/
+BuildRequires:	%{php_name}-devel
+BuildRequires:	rpmbuild(macros) >= 1.666
+%{?requires_php_extension}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%ifarch %{ix86}
+%define	barch 32bits
+%endif
+%ifarch %{x8664}
+%define	barch 64bits
+%endif
+
+%description
+Phalcon is a web framework implemented as a C extension offering high
+performance and lower resource consumption.
+
+%prep
+%setup -qn cphalcon-%{version}
+
+%build
+cd build/%{barch}
+phpize
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} -C build/%{barch} 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 docs/DOCUMENTATION.txt docs/LICENSE.txt
+%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-phalcon.git/commitdiff/42ebc4eb93c2087db5b739fd15ae0d8e25a76ace



More information about the pld-cvs-commit mailing list