[packages/php-symfony2-BrowserKit] up to 2.4.8, use github source
glen
glen at pld-linux.org
Mon Aug 4 11:27:39 CEST 2014
commit 2d1ed101a74f1fa382a014a3b5ad756ef43681c3
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Aug 4 12:27:37 2014 +0300
up to 2.4.8, use github source
php-symfony2-BrowserKit.spec | 26 ++++++++++----------------
1 file changed, 10 insertions(+), 16 deletions(-)
---
diff --git a/php-symfony2-BrowserKit.spec b/php-symfony2-BrowserKit.spec
index d03989c..539a0e7 100644
--- a/php-symfony2-BrowserKit.spec
+++ b/php-symfony2-BrowserKit.spec
@@ -3,15 +3,14 @@
%include /usr/lib/rpm/macros.php
Summary: Symfony2 BrowserKit Component
Name: php-symfony2-BrowserKit
-Version: 2.4.4
+Version: 2.4.8
Release: 1
License: MIT
Group: Development/Languages/PHP
-Source0: http://pear.symfony.com/get/%{pearname}-%{version}.tgz
-# Source0-md5: 72cac84eabb375fb3d380bb2e2471f19
+Source0: https://github.com/symfony/BrowserKit/archive/v%{version}/%{pearname}-%{version}.tar.gz
+# Source0-md5: 6e62981664ca7449fd4e2796b8ee9221
URL: http://symfony.com/components/BrowserKit
-BuildRequires: php-channel(pear.symfony.com)
-BuildRequires: php-pear-PEAR >= 1:1.4.0
+BuildRequires: phpab
BuildRequires: rpm-php-pearprov >= 4.4.2-11
BuildRequires: rpmbuild(macros) >= 1.610
Requires: php(core) >= %{php_min_version}
@@ -32,26 +31,21 @@ The component only provide an abstract client and does not provide any
"default" backend for the HTTP layer.
%prep
-%pear_package_setup
+%setup -q -n %{pearname}-%{version}
-# no packaging of tests
-mv .%{php_pear_dir}/Symfony/Component/%{pearname}/Tests .
-mv .%{php_pear_dir}/Symfony/Component/%{pearname}/phpunit.xml.dist .
-
-# fixups
-mv docs/%{pearname}/Symfony/Component/%{pearname}/* .
+%build
+phpab -n -e '*/Tests/*' -o autoload.php .
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{php_pear_dir}
-%pear_package_install
+install -d $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/BrowserKit
+cp -a *.php $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/BrowserKit
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc CHANGELOG.md LICENSE README.md install.log
-%{php_pear_dir}/.registry/.channel.*/*.reg
+%doc CHANGELOG.md LICENSE README.md
%dir %{php_pear_dir}/Symfony/Component/BrowserKit
%{php_pear_dir}/Symfony/Component/BrowserKit/*.php
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-symfony2-BrowserKit.git/commitdiff/2d1ed101a74f1fa382a014a3b5ad756ef43681c3
More information about the pld-cvs-commit
mailing list