diff options
author | Remi Collet <fedora@famillecollet.com> | 2012-08-21 16:08:25 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2012-08-21 16:08:25 +0200 |
commit | c305a79ed52eec31ee4865d32d94934cb1109738 (patch) | |
tree | 934974b0dd411adb0fce44650862699f27a33953 | |
parent | 493062df84ea9224b3f3586f6f8ef72a887f29e7 (diff) |
php-pear-HTML_Template_PHPLIB: update to 1.5.2
-rw-r--r-- | php-pear-HTML_Template_PHPLIB.spec | 32 |
1 files 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 <RPMS@FamilleCollet.com> - 1.5.2-1 +- update to 1.5.2 + * Tue Aug 14 2012 Remi Collet <remi@fedoraproject.org> - 1.4.0-6 - rebuilt for new pear_testdir |