[packages/php-symfony2-Intl] up to 2.4.8, use github source
glen
glen at pld-linux.org
Mon Aug 4 12:43:24 CEST 2014
commit d896cacc1ce8faf95496d8d249af52969c7129e6
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Aug 4 13:43:22 2014 +0300
up to 2.4.8, use github source
php-symfony2-Intl.spec | 34 +++++++++++++---------------------
1 file changed, 13 insertions(+), 21 deletions(-)
---
diff --git a/php-symfony2-Intl.spec b/php-symfony2-Intl.spec
index 5f846e3..a9230a4 100644
--- a/php-symfony2-Intl.spec
+++ b/php-symfony2-Intl.spec
@@ -3,15 +3,14 @@
%include /usr/lib/rpm/macros.php
Summary: Symfony2 Intl Component
Name: php-symfony2-Intl
-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: f72b77e4f7166108d8eab27f16cc89f9
+Source0: https://github.com/symfony/%{pearname}/archive/v%{version}/%{pearname}-%{version}.tar.gz
+# Source0-md5: cee0e1e9ace6b9651c6d940ab6988a03
URL: http://symfony.com/doc/2.4/components/intl.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.674
Requires: php(core) >= %{php_min_version}
@@ -19,7 +18,6 @@ Requires: php(date)
Requires: php(pcre)
Requires: php(simplexml)
Requires: php(spl)
-Requires: php-channel(pear.symfony.com)
Requires: php-pear >= 4:1.3.10
Requires: php-symfony2-Icu >= 1.0
Suggests: php(intl)
@@ -34,31 +32,25 @@ The replacement layer is limited to the locale "en". If you want to
use other locales, you should install the intl extension instead.
%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 .
-
-# dev tools
-mv .%{php_pear_dir}/Symfony/Component/Intl/Resources/bin .
-
-# fixups
-mv docs/%{pearname}/Symfony/Component/%{pearname}/* .
-mv .%{php_pear_dir}/Symfony/Component/Intl/CONTRIBUTING.md .
+%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
+# dev tools for Intl package maintainer
+rm -r $RPM_BUILD_ROOT%{php_pear_dir}/Symfony/Component/%{pearname}/Resources/bin
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc LICENSE README.md CONTRIBUTING.md install.log
-%{php_pear_dir}/.registry/.channel.*/*.reg
+%doc LICENSE README.md CONTRIBUTING.md
%dir %{php_pear_dir}/Symfony/Component/Intl
%{php_pear_dir}/Symfony/Component/Intl/*.php
%{php_pear_dir}/Symfony/Component/Intl/Collator
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-symfony2-Intl.git/commitdiff/d896cacc1ce8faf95496d8d249af52969c7129e6
More information about the pld-cvs-commit
mailing list