[packages/php-symfony2-Console] up to 2.4.8, use github source
glen
glen at pld-linux.org
Mon Aug 4 11:36:40 CEST 2014
commit 4557217fe62ed7fe69fdfb077a289820a7390639
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Aug 4 12:36:35 2014 +0300
up to 2.4.8, use github source
php-symfony2-Console.spec | 31 +++++++++++--------------------
1 file changed, 11 insertions(+), 20 deletions(-)
---
diff --git a/php-symfony2-Console.spec b/php-symfony2-Console.spec
index e30e1b1..998e405 100644
--- a/php-symfony2-Console.spec
+++ b/php-symfony2-Console.spec
@@ -3,15 +3,14 @@
%include /usr/lib/rpm/macros.php
Summary: Symfony2 Console Component
Name: php-symfony2-Console
-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: 394b8ceced25a98d569ec96088eef9f1
+Source0: https://github.com/symfony/Console/archive/v%{version}/%{pearname}-%{version}.tar.gz
+# Source0-md5: 334a06f0e45ebcf93e7265d08889dc3e
URL: http://symfony.com/doc/2.4/components/console/index.html
-BuildRequires: php-channel(pear.symfony.com)
-BuildRequires: php-pear-PEAR
+BuildRequires: phpab
BuildRequires: rpm-php-pearprov >= 4.4.2-11
BuildRequires: rpmbuild(macros) >= 1.610
Requires: php(core) >= %{php_min_version}
@@ -20,7 +19,6 @@ Requires: php(json)
Requires: php(mbstring)
Requires: php(pcre)
Requires: php(spl)
-Requires: php-channel(pear.symfony.com)
Requires: php-pear >= 1.3.10
Suggests: php(posix)
Suggests: php-symfony2-EventDispatcher
@@ -32,29 +30,22 @@ The Console component eases the creation of beautiful and testable
command line interfaces.
%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 .
-
-# bad os
-rm .%{php_pear_dir}/Symfony/Component/Console/Resources/bin/hiddeninput.exe
-
-# 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/%{pearname}
+cp -a *.php */ $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/%{pearname}
+rm -rf $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/%{pearname}/Tests
%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/Console
%{php_pear_dir}/Symfony/Component/Console/*.php
%{php_pear_dir}/Symfony/Component/Console/Command
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-symfony2-Console.git/commitdiff/4557217fe62ed7fe69fdfb077a289820a7390639
More information about the pld-cvs-commit
mailing list