SPECS: php4-rrdtool.spec (NEW) - new, based on php-rrdtool.spec

glen glen at pld-linux.org
Wed Sep 7 03:02:07 CEST 2005


Author: glen                         Date: Wed Sep  7 01:02:07 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new, based on php-rrdtool.spec

---- Files affected:
SPECS:
   php4-rrdtool.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/php4-rrdtool.spec
diff -u /dev/null SPECS/php4-rrdtool.spec:1.1
--- /dev/null	Wed Sep  7 03:02:07 2005
+++ SPECS/php4-rrdtool.spec	Wed Sep  7 03:02:02 2005
@@ -0,0 +1,93 @@
+# $Revision$, $Date$
+%define		_modname	rrdtool
+%define		_sysconfdir	/etc/php4
+%define		extensionsdir	%(php-config --extension-dir 2>/dev/null)
+Summary:	RRDtool PHP module
+Summary(pl):	Moduł PHP RRDtool
+Name:		php4-rrdtool
+Version:	1.0.50
+Release:	0.2
+License:	GPL
+Group:		Applications/Databases
+Source0:	http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool-1.0.x/rrdtool-%{version}.tar.gz
+# Source0-md5:	c466e2e7df95fa8e318e46437da87686
+Patch0:		rrdtool-php-config.patch
+URL:		http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
+BuildRequires:	autoconf >= 2.59
+BuildRequires:	automake
+BuildRequires:	cgilibc-devel
+BuildRequires:	php4-devel
+BuildRequires:	rpmbuild(macros) >= 1.230
+BuildRequires:	rrdtool-devel
+BuildRequires:	gd-devel
+Requires(post,preun):	php4-common
+Requires:	%{_sysconfdir}/conf.d
+%requires_eq_to php4-common php4-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package includes a dynamic shared object (DSO) that adds RRDtool
+bindings to the PHP HTML-embedded scripting language.
+
+%description -l pl
+Moduł RRDtool dla PHP.
+
+%prep
+%setup -q -n rrdtool-%{version}
+%patch0 -p0
+
+%build
+cd contrib/php4
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%configure \
+	--with-openssl \
+	--includedir="%{_includedir}/php"
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/conf.d,%{_examplesdir}/%{name}-%{version}}
+
+cd contrib/php4
+%{__make} install \
+	INSTALL_ROOT=$RPM_BUILD_ROOT
+
+cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_modname}.ini
+; Enable %{_modname} extension module
+extension=%{_modname}.so
+EOF
+
+cp -a examples/*.php $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart
+[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service -q httpd restart
+
+%postun
+if [ "$1" = 0 ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php4.conf ] || %service -q httpd restart
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc contrib/php4/USAGE
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/%{_modname}.ini
+%attr(755,root,root) %{extensionsdir}/%{_modname}.so
+%{_examplesdir}/%{name}-%{version}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2005/09/07 01:02:02  glen
+- new, based on php-rrdtool.spec
+
================================================================



More information about the pld-cvs-commit mailing list