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

glen glen at pld-linux.org
Mon Aug 4 12:20:26 CEST 2014


commit 19e1587d965e5680edd064d0dffe58f7370a8bc0
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Aug 4 13:20:24 2014 +0300

    up to 2.4.8, use github source

 php-symfony2-Filesystem.spec | 27 +++++++++++----------------
 1 file changed, 11 insertions(+), 16 deletions(-)
---
diff --git a/php-symfony2-Filesystem.spec b/php-symfony2-Filesystem.spec
index ed2a282..4768bf4 100644
--- a/php-symfony2-Filesystem.spec
+++ b/php-symfony2-Filesystem.spec
@@ -3,21 +3,19 @@
 %include	/usr/lib/rpm/macros.php
 Summary:	Symfony2 Filesystem Component
 Name:		php-symfony2-Filesystem
-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:	f8928d8c4e3c168df8c56fcbfc104304
+Source0:	https://github.com/symfony/%{pearname}/archive/v%{version}/%{pearname}-%{version}.tar.gz
+# Source0-md5:	be85b95d252d62e59c19e7c75dfc0e15
 URL:		http://symfony.com/doc/2.4/components/filesystem.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}
 Requires:	php(ctype)
 Requires:	php(spl)
-Requires:	php-channel(pear.symfony.com)
 Requires:	php-pear >= 4:1.3.10
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -26,27 +24,24 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 The Filesystem components provides basic utilities for the filesystem.
 
 %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/Filesystem
 %{php_pear_dir}/Symfony/Component/Filesystem/*.php
 %{php_pear_dir}/Symfony/Component/Filesystem/Exception
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-symfony2-Filesystem.git/commitdiff/19e1587d965e5680edd064d0dffe58f7370a8bc0



More information about the pld-cvs-commit mailing list