[packages/php-pecl-uri_template] new, version 0.99.2

glen glen at pld-linux.org
Sun Sep 1 11:24:18 CEST 2013


commit 4a3fd69bbd86d47e108aef04a607d17f60c85973
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Sep 1 12:23:55 2013 +0300

    new, version 0.99.2

 php-pecl-uri_template.spec | 66 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)
---
diff --git a/php-pecl-uri_template.spec b/php-pecl-uri_template.spec
new file mode 100644
index 0000000..287cc60
--- /dev/null
+++ b/php-pecl-uri_template.spec
@@ -0,0 +1,66 @@
+#
+# Conditional build:
+%bcond_without	tests		# build without tests
+
+%define		php_name	php%{?php_suffix}
+%define		modname	uri_template
+Summary:	Implementation of URI Template(RFC6570) specification for PHP
+Name:		%{php_name}-pecl-%{modname}
+Version:	0.99.2
+Release:	1
+License:	PHP 3.01
+Group:		Development/Languages/PHP
+Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
+# Source0-md5:	3fd801376e1182e22e0040e68f129588
+URL:		http://pecl.php.net/package/uri_template
+BuildRequires:	%{php_name}-devel >= 4:5.3.1
+BuildRequires:	rpmbuild(macros) >= 1.666
+%{?requires_php_extension}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+URI Template PHP Extension implementation of RFC-6570.
+
+%prep
+%setup -qc
+mv %{modname}-%{version}/* .
+
+%build
+phpize
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
+install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
+install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir},%{_examplesdir}/%{name}-%{version}}
+
+%{__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
+
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%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
+%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-uri_template.git/commitdiff/4a3fd69bbd86d47e108aef04a607d17f60c85973



More information about the pld-cvs-commit mailing list