commit 5398032128801613f9d4812ac122a1f2f7741f17
Author: Elan Ruusamäe <[email protected]>
Date:   Sat Aug 18 16:39:13 2012 +0300

    new

 php-pecl-dbus.spec | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)
---
diff --git a/php-pecl-dbus.spec b/php-pecl-dbus.spec
new file mode 100644
index 0000000..11f2c47
--- /dev/null
+++ b/php-pecl-dbus.spec
@@ -0,0 +1,57 @@
+%define                modname dbus
+Summary:       Extension for interaction with DBUS busses
+Name:          php-pecl-%{modname}
+Version:       0.1.1
+Release:       1
+License:       PHP 3.01
+Group:         Development/Languages/PHP
+Source0:       http://pecl.php.net/get/%{modname}-%{version}.tgz
+# Source0-md5: 18505c41fb1ca2a2b5024c50c0de719f
+URL:           http://pecl.php.net/package/DBus
+BuildRequires: php-devel >= 4:5.2.0
+BuildRequires: rpmbuild(macros) >= 1.519
+BuildRequires: dbus-devel
+%{?requires_php_extension}
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This extension allows you to talk to DBUS services on a system, and also act
+as a DBUS service.
+
+%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
+%config(noreplace) %verify(not md5 mtime size) 
%{php_sysconfdir}/conf.d/%{modname}.ini
+%attr(755,root,root) %{php_extensiondir}/%{modname}.so
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to