]> git.pld-linux.org Git - packages/php-phalcon.git/commitdiff
new 1.2.3
authorElan Ruusamäe <glen@delfi.ee>
Tue, 10 Sep 2013 08:30:14 +0000 (11:30 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 10 Sep 2013 08:30:14 +0000 (11:30 +0300)
php-phalcon.spec [new file with mode: 0644]

diff --git a/php-phalcon.spec b/php-phalcon.spec
new file mode 100644 (file)
index 0000000..1c279e2
--- /dev/null
@@ -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
This page took 0.264712 seconds and 4 git commands to generate.