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

index 3093b443cb7acb691f0ed52fbba6b66bb035258c..462e188d0b0ab9c3240113a3a93ddcb0f6139426 100644 (file)
@@ -3,22 +3,20 @@
 %include       /usr/lib/rpm/macros.php
 Summary:       Symfony2 PropertyAccess Component
 Name:          php-symfony2-PropertyAccess
-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: 2207bfaa356e240dfcba03060f5c1f83
+Source0:       https://github.com/symfony/%{pearname}/archive/v%{version}/%{pearname}-%{version}.tar.gz
+# Source0-md5: 6b980d0e20f360a85f2b661642f0cb4d
 URL:           http://symfony.com/doc/2.4/components/property_access/introduction.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(pcre)
 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)
@@ -28,25 +26,22 @@ Provides function to read and write from/to an object or array using a
 simple string notation.
 
 %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}
 
 %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
-%{php_pear_dir}/Symfony/Component/PropertyAccess
+%doc CHANGELOG.md LICENSE README.md
+%dir %{php_pear_dir}/Symfony/Component/PropertyAccess
+%{php_pear_dir}/Symfony/Component/PropertyAccess/*.php
+%{php_pear_dir}/Symfony/Component/PropertyAccess/Exception
This page took 0.091179 seconds and 4 git commands to generate.