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

index c779bac270264d66891e48ccf389d071c9c46a86..b71177f77c45e8f0780f2fc0c6e5220d6bf8ef10 100644 (file)
@@ -3,15 +3,14 @@
 %include       /usr/lib/rpm/macros.php
 Summary:       Symfony2 Form Component
 Name:          php-symfony2-Form
-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: e7ac20ab517fb7c90694f24260ca600d
+Source0:       https://github.com/symfony/%{pearname}/archive/v%{version}/%{pearname}-%{version}.tar.gz
+# Source0-md5: 2169f46f036028001723ed6e7a125c40
 URL:           http://symfony.com/doc/2.4/components/form/index.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}
@@ -23,7 +22,6 @@ Requires:     php(mbstring)
 Requires:      php(pcre)
 Requires:      php(session)
 Requires:      php(spl)
-Requires:      php-channel(pear.symfony.com)
 Requires:      php-pear >= 4:1.3.10
 Requires:      php-symfony2-EventDispatcher >= 2.1
 Requires:      php-symfony2-Intl >= 2.3
@@ -42,28 +40,24 @@ data to related models. Furthermore it provides integration with the
 Validation component.
 
 %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}/Test .
-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
+rm -r $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/%{pearname}/Test
 
 %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/Form
 %{php_pear_dir}/Symfony/Component/Form/*.php
 %{php_pear_dir}/Symfony/Component/Form/Exception
This page took 0.091295 seconds and 4 git commands to generate.