[packages/php-pecl-rrd] new, version 1.1.3
glen
glen at pld-linux.org
Sat Feb 15 21:01:17 CET 2014
commit eb03a8efee931cb0d91b01f7a8018835d1743c25
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Feb 15 22:00:31 2014 +0200
new, version 1.1.3
based on fedora packcage
04aca47e0628b5614c735ba3088ef88c9d3cb86e
php-pecl-rrd.spec | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 81 insertions(+)
---
diff --git a/php-pecl-rrd.spec b/php-pecl-rrd.spec
new file mode 100644
index 0000000..554e899
--- /dev/null
+++ b/php-pecl-rrd.spec
@@ -0,0 +1,81 @@
+#
+# Conditional build:
+%bcond_without tests # build without tests
+
+%define php_name php%{?php_suffix}
+%define modname rrd
+Summary: PHP Bindings for rrdtool
+Name: %{php_name}-pecl-%{modname}
+Version: 1.1.3
+Release: 1
+License: BSD
+Group: Development/Languages
+Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
+# Source0-md5: bde6c50fa2aa39090ed22e574ac71c5a
+URL: http://pecl.php.net/package/rrd
+BuildRequires: %{php_name}-devel >= 4:5.3.2
+BuildRequires: php-pear
+BuildRequires: rrdtool
+BuildRequires: rrdtool-devel >= 1.3.0
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Procedural and simple OO wrapper for rrdtool - data logging and
+graphing system for time series data.
+
+%prep
+%setup -qc
+mv %{modname}-%{version}/* .
+
+%build
+phpize
+%configure
+%{__make}
+
+%if %{with tests}
+%{__php} --no-php-ini \
+ --define extension=modules/%{modname}.so \
+ --modules | grep %{modname}
+%endif
+
+%{__make} -C tests/data clean
+%{__make} -C tests/data all
+%{__make} test NO_INTERACTION=1 | tee rpmtests.log
+
+if grep -q "FAILED TEST" rpmtests.log; then
+ for t in tests/*diff; do
+ echo "*** FAILED: $(basename $t .diff)"
+ diff -u tests/$(basename $t .diff).exp tests/$(basename $t .diff).out || :
+ done
+
+ exit 1
+fi
+
+%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-rrd.git/commitdiff/eb03a8efee931cb0d91b01f7a8018835d1743c25
More information about the pld-cvs-commit
mailing list