SPECS: php-gnutls.spec (NEW) - initial revision

baggins baggins at pld-linux.org
Sat Sep 22 01:50:23 CEST 2007


Author: baggins                      Date: Fri Sep 21 23:50:23 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial revision

---- Files affected:
SPECS:
   php-gnutls.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/php-gnutls.spec
diff -u /dev/null SPECS/php-gnutls.spec:1.1
--- /dev/null	Sat Sep 22 01:50:23 2007
+++ SPECS/php-gnutls.spec	Sat Sep 22 01:50:18 2007
@@ -0,0 +1,69 @@
+# $Revision$, $Date$
+%define		_modname	gnutls
+Summary:	GnuTLS PHP Module
+Name:		php-%{_modname}
+Version:	0.3
+%define	_pre	rc1
+Release:	0.%{_pre}.1
+License:	GPL
+Group:		Development/Languages/PHP
+Source0:	http://files.openvcp.org/modphp-%{_modname}-%{version}-%{_pre}.tar.gz
+# Source0-md5:	2a52affb9b2a5271558ffc2baaf9aa56
+URL:		http://www.openvcp.org/
+BuildRequires:	autoconf
+BuildRequires:	gnutls-devel
+BuildRequires:	php-devel >= 3:5.0.0
+BuildRequires:	rpmbuild(macros) >= 1.344
+%{?requires_php_extension}
+Requires:	php-common >= 4:5.0.4
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+GnuTLS PHP Module.
+
+%prep
+%setup -q -n modphp-%{_modname}-%{version}-%{_pre}
+
+%build
+%{__autoconf}
+%configure \
+	--with-phpsrc=/usr/include/php
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{php_extensiondir},%{php_sysconfdir}/conf.d}
+
+install %{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
+
+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)
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
+%attr(755,root,root) %{php_extensiondir}/%{_modname}.so
+
+%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  2007/09/21 23:50:18  baggins
+- initial revision
+
================================================================


More information about the pld-cvs-commit mailing list