]> git.pld-linux.org Git - packages/php-pecl-event.git/commitdiff
- new
authorAdam Gołębiowski <adamg@pld-linux.org>
Mon, 13 Dec 2004 14:46:00 +0000 (14:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-pecl-event.spec -> 1.1

php-pecl-event.spec [new file with mode: 0644]

diff --git a/php-pecl-event.spec b/php-pecl-event.spec
new file mode 100644 (file)
index 0000000..3f8be5a
--- /dev/null
@@ -0,0 +1,75 @@
+%define                _modname        event
+%define                _status         beta
+
+Summary:       %{_modname} - Event Scheduling Engine
+Summary(pl):   %{_modname} - Silnik do Planowania Zdarzeniamie
+Name:          php-pecl-%{_modname}
+Version:       0.9
+Release:       1
+License:       PHP
+Group:         Development/Languages/PHP
+Source0:       http://pecl.php.net/get/%{_modname}-%{version}.tgz
+# Source0-md5: 21609efd43e0b80ed88880595faf6a25
+Patch0:                %{name}-tsrm_fix.patch
+URL:           http://pecl.php.net/package/event/
+BuildRequires: libtool
+BuildRequires: php-devel >= 3:5.0.0
+Requires:      php-common >= 3:5.0.0
+Obsoletes:     php-pear-%{_modname}
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _sysconfdir     /etc/php
+%define                extensionsdir   %{_libdir}/php
+
+%description
+This is an extension to efficiently schedule IO, time and signal based
+events using the best available IO notification mechanism for your
+system.
+
+This is a port of libevent to the PHP infrastructure; the API is
+similar but not identical.
+
+In PECL status of this extension is: %{_status}.
+
+%description -l pl
+To rozszerzenie pozwala na efektywne planowanie We/Wy, czasem oraz
+bazowanymi na sygna³ach zdarzeniami za pomoc± najlepszego dostêpnego
+dla systemu mechanizmu powiadamiania.
+
+Jest to port biblioteki libevent do infrastruktury PHP; API jest
+podobne, jednak nie identyczne.
+
+To rozszerzenie ma w PECL status: %{_status}.
+
+%prep
+%setup -q -c
+cd %{_modname}-%{version}
+%patch0 -p2
+
+%build
+cd %{_modname}-%{version}
+phpize
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{extensionsdir}
+
+install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%{_sbindir}/php-module-install install %{_modname} %{_sysconfdir}/php-cgi.ini
+
+%preun
+if [ "$1" = "0" ]; then
+       %{_sbindir}/php-module-install remove %{_modname} %{_sysconfdir}/php-cgi.ini
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc %{_modname}-%{version}/{CREDITS,EXPERIMENTAL}
+%attr(755,root,root) %{extensionsdir}/%{_modname}.so
This page took 0.076275 seconds and 4 git commands to generate.