-%define status stable
%define pearname DomCrawler
%define php_min_version 5.3.3
%include /usr/lib/rpm/macros.php
-Summary: %{pearname} - Symfony2 DomCrawler Component
+Summary: Symfony2 DomCrawler Component
Name: php-symfony2-DomCrawler
-Version: 2.1.6
+Version: 2.3.4
Release: 1
License: MIT
Group: Development/Languages/PHP
Source0: http://pear.symfony.com/get/%{pearname}-%{version}.tgz
-# Source0-md5: 1e17efd20f8097e55494ddfed6304fcf
+# Source0-md5: 913d34b617d90aa74c6789b0ad48ba89
URL: http://symfony.com/doc/current/components/dom_crawler.html
BuildRequires: php-channel(pear.symfony.com)
BuildRequires: php-pear-PEAR
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Symfony2 DomCrawler Component
+The DomCrawler Component eases DOM navigation for HTML and XML
+documents.
-In PEAR status of this package is: %{status}.
+While possible, the DomCrawler component is not designed for
+manipulation of the DOM or re-dumping HTML/XML.
%prep
%pear_package_setup
# no packaging of tests
-rm -r .%{php_pear_dir}/Symfony/Component/%{pearname}/Tests
-rm .%{php_pear_dir}/Symfony/Component/%{pearname}/phpunit.xml.dist
+mv .%{php_pear_dir}/Symfony/Component/%{pearname}/Tests .
+mv .%{php_pear_dir}/Symfony/Component/%{pearname}/phpunit.xml.dist .
# fixups
-mv .%{php_pear_dir}/Symfony/Component/%{pearname}/CHANGELOG.md .
-rm .%{php_pear_dir}/Symfony/Component/%{pearname}/.gitattributes
-rm .%{php_pear_dir}/Symfony/Component/%{pearname}/.gitignore
mv docs/%{pearname}/Symfony/Component/%{pearname}/* .
%install