From 74b37978724df23b819470124c6cf96c38f400e7 Mon Sep 17 00:00:00 2001 From: xulchris Date: Nov 16 2006 04:05:55 +0000 Subject: auto-import php-pear-Structures-DataGrid-Renderer-Smarty-0.1.2-1 on branch devel from php-pear-Structures-DataGrid-Renderer-Smarty-0.1.2-1.src.rpm --- diff --git a/.cvsignore b/.cvsignore index e69de29..669435c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Structures_DataGrid_Renderer_Smarty-0.1.2.tgz diff --git a/php-pear-Structures-DataGrid-Renderer-Smarty.spec b/php-pear-Structures-DataGrid-Renderer-Smarty.spec new file mode 100644 index 0000000..46ede4f --- /dev/null +++ b/php-pear-Structures-DataGrid-Renderer-Smarty.spec @@ -0,0 +1,77 @@ +%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}} +%define pear_name Structures_DataGrid_Renderer_Smarty + +Name: php-pear-Structures-DataGrid-Renderer-Smarty +Version: 0.1.2 +Release: 1%{?dist} +Summary: Renderer driver using Smarty + +Group: Development/Libraries +License: PHP License +URL: http://pear.php.net/package/Structures_DataGrid_Renderer_Smarty +Source0: http://pear.php.net/get/%{pear_name}-%{version}.tgz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: php-pear >= 1:1.4.9-1.2 +Requires: php-pear(PEAR) php-pear(Structures_DataGrid_Renderer_Pager) +Requires: php-Smarty +Requires(post): %{__pear} +Requires(postun): %{__pear} +Provides: php-pear(%{pear_name}) = %{version} + +%description +This is a Rendering driver for Structures_DataGrid using Smarty. It adds the +necessary variables and functions to a Smarty instance, in order to build a +full-featured DataGrid within a Smarty template. + + +%prep +%setup -q -c +[ -f package2.xml ] || mv package.xml package2.xml +mv package2.xml %{pear_name}-%{version}/%{pear_name}.xml +cd %{pear_name}-%{version} + + +%build +cd %{pear_name}-%{version} +# Empty build section, most likely nothing required. + + +%install +cd %{pear_name}-%{version} +rm -rf $RPM_BUILD_ROOT docdir +%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{pear_name}.xml + +# Clean up unnecessary files +rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??* + +# Install XML package description +mkdir -p $RPM_BUILD_ROOT%{pear_xmldir} +install -pm 644 %{pear_name}.xml $RPM_BUILD_ROOT%{pear_xmldir} + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post +%{__pear} install --nodeps --soft --force --register-only \ + %{pear_xmldir}/%{pear_name}.xml >/dev/null || : + +%postun +if [ $1 -eq 0 ] ; then + %{__pear} uninstall --nodeps --ignore-errors --register-only \ + %{pear_name} >/dev/null || : +fi + + +%files +%defattr(-,root,root,-) +%{pear_xmldir}/%{pear_name}.xml +%{pear_phpdir}/Structures/DataGrid/Renderer/Smarty.php + + +%changelog +* Sun Oct 29 2006 Christopher Stone 0.1.2-1 +- Initial Release diff --git a/sources b/sources index e69de29..c9bc7b1 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a5e209d09588b82c3e46b6f4d7fef242 Structures_DataGrid_Renderer_Smarty-0.1.2.tgz