[packages/php-symfony2-HttpKernel] up to 2.4.8, use github source

glen glen at pld-linux.org
Mon Aug 4 12:37:15 CEST 2014


commit a2390a7b94f1f06bc26e3e78dad3894615df3a19
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Aug 4 13:37:13 2014 +0300

    up to 2.4.8, use github source

 php-symfony2-HttpKernel.spec | 28 +++++++++++-----------------
 1 file changed, 11 insertions(+), 17 deletions(-)
---
diff --git a/php-symfony2-HttpKernel.spec b/php-symfony2-HttpKernel.spec
index 157e477..2cc0a37 100644
--- a/php-symfony2-HttpKernel.spec
+++ b/php-symfony2-HttpKernel.spec
@@ -3,15 +3,14 @@
 %include	/usr/lib/rpm/macros.php
 Summary:	Symfony2 HttpKernel Component
 Name:		php-symfony2-HttpKernel
-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:	8bf815533398b6a0d61455ea6aa88076
+Source0:	https://github.com/symfony/%{pearname}/archive/v%{version}/%{pearname}-%{version}.tar.gz
+# Source0-md5:	d808e3c915adace99d6dcbc9cd2f1eae
 URL:		http://symfony.com/doc/2.4/components/http_kernel/introduction.html
-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}
@@ -22,7 +21,6 @@ Requires:	php(pcre)
 Requires:	php(session)
 Requires:	php(spl)
 Requires:	php(tokenizer)
-Requires:	php-channel(pear.symfony.com)
 Requires:	php-pear >= 4:1.3.10
 Requires:	php-psr-Log >= 1.0
 Requires:	php-symfony2-Debug >= 2.3
@@ -44,27 +42,23 @@ flexible enough to create a full-stack framework (Symfony), a
 micro-framework (Silex) or an advanced CMS system (Drupal).
 
 %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/%{pearname}
+cp -a *.php */ $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/%{pearname}
+rm -r $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/HttpKernel
 %{php_pear_dir}/Symfony/Component/HttpKernel/*.php
 %{php_pear_dir}/Symfony/Component/HttpKernel/Bundle
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-symfony2-HttpKernel.git/commitdiff/a2390a7b94f1f06bc26e3e78dad3894615df3a19



More information about the pld-cvs-commit mailing list