]> git.pld-linux.org Git - packages/php-symfony2-DependencyInjection.git/commitdiff
up to 2.4.8, use github source auto/th/php-symfony2-DependencyInjection-2.4.8-1
authorElan Ruusamäe <glen@delfi.ee>
Mon, 4 Aug 2014 10:02:15 +0000 (13:02 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 4 Aug 2014 10:02:15 +0000 (13:02 +0300)
php-symfony2-DependencyInjection.spec

index a070adc2de46e8886c5a112ead4d8372851e442e..8c281a07ba48c8996926e08fb48e7f276ccbccc4 100644 (file)
@@ -3,15 +3,14 @@
 %include       /usr/lib/rpm/macros.php
 Summary:       Symfony2 DependencyInjection Component
 Name:          php-symfony2-DependencyInjection
-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: b8884941cccbc8090198f97c3d700385
+Source0:       https://github.com/symfony/%{pearname}/archive/v%{version}/%{pearname}-%{version}.tar.gz
+# Source0-md5: 8657e364dcacef18b1bcf2096e7e2885
 URL:           http://symfony.com/doc/2.4/components/dependency_injection/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}
@@ -19,7 +18,6 @@ Requires:     php(dom)
 Requires:      php(pcre)
 Requires:      php(simplexml)
 Requires:      php(spl)
-Requires:      php-channel(pear.symfony.com)
 Requires:      php-pear >= 4:1.3.10
 Suggests:      php-symfony2-Config
 Suggests:      php-symfony2-ProxyManagerBridge
@@ -32,27 +30,23 @@ The Dependency Injection component allows you to standardize and
 centralize the way objects are constructed in your application.
 
 %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/DependencyInjection
 %{php_pear_dir}/Symfony/Component/DependencyInjection/*.php
 %{php_pear_dir}/Symfony/Component/DependencyInjection/Compiler
This page took 0.145254 seconds and 4 git commands to generate.