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

index 8fbb30da1730ed9a1b81a198483ef32f5112e52f..3b94bf7ec2b3f7b961330391966ce15097356d95 100644 (file)
@@ -3,15 +3,14 @@
 %include       /usr/lib/rpm/macros.php
 Summary:       Symfony2 Templating Component
 Name:          php-symfony2-Templating
-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: 77af7081ded9fda7e3b6b4e7de8f67ab
+Source0:       https://github.com/symfony/%{pearname}/archive/v%{version}/%{pearname}-%{version}.tar.gz
+# Source0-md5: 684b9a946e7dd6dc8a2e32c12fa45039
 URL:           http://symfony.com/doc/2.4/components/templating.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(hash)
 Requires:      php(mbstring)
 Requires:      php(pcre)
 Requires:      php(spl)
-Requires:      php-channel(pear.symfony.com)
 Requires:      php-pear >= 4:1.3.10
 Suggests:      php-psr-Log
 BuildArch:     noarch
@@ -30,27 +28,23 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Provides all the tools needed to build any kind of template system.
 
 %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/Templating
 %{php_pear_dir}/Symfony/Component/Templating/*.php
 %{php_pear_dir}/Symfony/Component/Templating/Asset
This page took 0.126558 seconds and 4 git commands to generate.