]> git.pld-linux.org Git - packages/php-symfony2-Intl.git/commitdiff
new, version 2.3.4
authorElan Ruusamäe <glen@delfi.ee>
Mon, 23 Sep 2013 19:51:41 +0000 (22:51 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 23 Sep 2013 20:39:58 +0000 (23:39 +0300)
php-symfony2-Intl.spec [new file with mode: 0644]

diff --git a/php-symfony2-Intl.spec b/php-symfony2-Intl.spec
new file mode 100644 (file)
index 0000000..ca611d5
--- /dev/null
@@ -0,0 +1,71 @@
+%define                pearname        Intl
+%define                php_min_version 5.3.3
+%include       /usr/lib/rpm/macros.php
+Summary:       Symfony2 Intl Component
+Name:          php-symfony2-Intl
+Version:       2.3.4
+Release:       1
+License:       MIT
+Group:         Development/Languages/PHP
+Source0:       http://pear.symfony.com/get/%{pearname}-%{version}.tgz
+# Source0-md5: ba9335048f0b3fbe7625e58771bd6bdc
+URL:           http://symfony.com/doc/current/components/intl.html
+BuildRequires: php-channel(pear.symfony.com)
+BuildRequires: php-pear-PEAR
+BuildRequires: rpm-php-pearprov >= 4.4.2-11
+BuildRequires: rpmbuild(macros) >= 1.674
+Requires:      php(core) >= %{php_min_version}
+Requires:      php-channel(pear.symfony.com)
+Requires:      php-pear >= 4:1.3.10
+# Icu not available via PEAR channel, only in git: https://github.com/symfony/Icu
+#Requires:     php-symfony2-Icu
+Suggests:      php(intl)
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A PHP replacement layer for the C intl extension that also provides
+access to the localization data of the ICU library.
+
+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
+
+# 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 .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{php_pear_dir}
+%pear_package_install
+
+%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
+%dir %{php_pear_dir}/Symfony/Component/Intl
+%{php_pear_dir}/Symfony/Component/Intl/*.php
+%{php_pear_dir}/Symfony/Component/Intl/Collator
+%{php_pear_dir}/Symfony/Component/Intl/DateFormatter
+%{php_pear_dir}/Symfony/Component/Intl/Exception
+%{php_pear_dir}/Symfony/Component/Intl/Globals
+%{php_pear_dir}/Symfony/Component/Intl/Locale
+%{php_pear_dir}/Symfony/Component/Intl/NumberFormatter
+%{php_pear_dir}/Symfony/Component/Intl/ResourceBundle
+%{php_pear_dir}/Symfony/Component/Intl/Util
+
+%dir %{php_pear_dir}/Symfony/Component/Intl/Resources
+%{php_pear_dir}/Symfony/Component/Intl/Resources/stubs
This page took 0.086093 seconds and 4 git commands to generate.