From c305a79ed52eec31ee4865d32d94934cb1109738 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 21 Aug 2012 16:08:25 +0200 Subject: php-pear-HTML_Template_PHPLIB: update to 1.5.2 --- php-pear-HTML_Template_PHPLIB.spec | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/php-pear-HTML_Template_PHPLIB.spec b/php-pear-HTML_Template_PHPLIB.spec index 3290fd1..145b86d 100644 --- a/php-pear-HTML_Template_PHPLIB.spec +++ b/php-pear-HTML_Template_PHPLIB.spec @@ -2,19 +2,22 @@ %global pear_name HTML_Template_PHPLIB Name: php-pear-HTML_Template_PHPLIB -Version: 1.4.0 -Release: 6%{?dist} +Version: 1.5.2 +Release: 1%{?dist} Summary: PHP template system based on preg_* Group: Development/Libraries License: LGPLv2 URL: http://pear.php.net/package/%{pear_name} 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 +BuildRequires: php-pear(PEAR) + Requires: php-pear(PEAR) -Requires(post): %{__pear} -Requires(postun): %{__pear} +Requires(post): %{__pear} +Requires(postun): %{__pear} + Provides: php-pear(%{pear_name}) = %{version} %description @@ -27,28 +30,24 @@ contains some features not currently found in the original version. mv package2.xml %{pear_name}-%{version}/%{pear_name}.xml cd %{pear_name}-%{version} +sed -e '/README/s/role="data"/role="doc"/' \ + -i %{pear_name}.xml %build # Empty build section nothing to do here %install +rm -rf $RPM_BUILD_ROOT cd %{pear_name}-%{version} -rm -rf $RPM_BUILD_ROOT docdir %{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{pear_name}.xml -# Move documentation -mkdir -p docdir -mv $RPM_BUILD_ROOT%{pear_docdir}/* docdir + # 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} -# I could not do this in prep as it breaks the pear install due to md5 checks. -iconv -f iso8859-1 -t utf-8 %{_builddir}/%{name}-%{version}/%{pear_name}-%{version}/docdir/%{pear_name}/examples/README > \ -%{_builddir}/%{name}-%{version}/%{pear_name}-%{version}/docdir/%{pear_name}/examples/README.conv && \ -mv -f %{_builddir}/%{name}-%{version}/%{pear_name}-%{version}/docdir/%{pear_name}/examples/README.conv \ -%{_builddir}/%{name}-%{version}/%{pear_name}-%{version}/docdir/%{pear_name}/examples/README %clean @@ -68,13 +67,16 @@ fi %files %defattr(-,root,root,-) -%doc %{pear_name}-%{version}/docdir/%{pear_name}/* +%doc %{pear_docdir}/%{pear_name} %{pear_xmldir}/%{pear_name}.xml %{pear_testdir}/%{pear_name} %{pear_phpdir}/HTML/Template %{_bindir}/* %changelog +* Tue Aug 21 2012 Remi Collet - 1.5.2-1 +- update to 1.5.2 + * Tue Aug 14 2012 Remi Collet - 1.4.0-6 - rebuilt for new pear_testdir -- cgit