+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+
# TODO
# - check Zend/Pdf/FileParser/Image/Jpeg.php and Zend/Pdf/FileParser/Image/Tiff.php
# presence in Zend/Pdf/Image.php after update [not implemented in 1.10.2)
Summary: Zend Framework
Summary(pl.UTF-8): Szkielet Zend
Name: ZendFramework
-Version: 1.10.2
-Release: 2
+Version: 1.11.12
+Release: 1
License: New BSD License
Group: Development/Languages/PHP
Source0: http://framework.zend.com/releases/%{name}-%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 0d14bb2ecc13c7963f8e64fea40d0a2e
+# Source0-md5: 733dbac01e202b94437ada154bee64ce
Source1: http://framework.zend.com/releases/%{name}-%{version}/%{name}-%{version}-manual-en.tar.gz
-# Source1-md5: 7e9c5012fbf80f2207de2d48eddfb20f
+# Source1-md5: 134eb187573d9e4970a133fb11048085
Source2: %{name}-find-lang.sh
Patch0: %{name}-additional-locales.patch
Patch1: %{name}-deps.patch
URL: http://framework.zend.com/
BuildRequires: /usr/bin/php
-BuildRequires: php-pecl-runkit
BuildRequires: rpm-php-pearprov >= 4.4.2-11
BuildRequires: sed >= 4.0
-Requires: php-common >= 4:5.1.4
+Requires: php-common >= 4:5.2.4
Requires: php-pear
Requires: rpm-whiteout >= 1.32
Obsoletes: ZendFramework-doc
%package Zend_Barcode
Summary: Zend_Barcode - barcode generator
-Summary(pl.UTF_8): Zend_Barcode - generator kodów kreskowych
+Summary(pl.UTF-8): Zend_Barcode - generator kodów kreskowych
Group: Development/Languages/PHP
URL: http://framework.zend.com/manual/en/zend.barcode.html
Requires: %{name} = %{version}-%{release}
udostępnia różne backendy. Może być używana zarówno samodzielnie, jak
i w połączeniu z Zend_Form.
+%package Zend_Cloud
+Summary: Zend_Cloud - SimpleCloud API
+Group: Development/Languages/PHP
+URL: http://framework.zend.com/manual/en/zend.cloud.html
+Requires: %{name} = %{version}-%{release}
+
+%description Zend_Cloud
+SimpleCloud API
+
%package Zend_CodeGenerator
Summary: Zend_CodeGenerator - generate arbitrary code using OO interface
Group: Development/Languages/PHP
Group: Development/Languages/PHP
URL: http://framework.zend.com/manual/en/zend.openid.html
Requires: %{name} = %{version}-%{release}
+# needed for dh keys: any of these tree can do for
+Suggests: php-bcmath
+Suggests: php-gmp
+Suggests: php-openssl
%description Zend_OpenId
Zend_OpenId is a Zend Framework component that provides a simple API
and simple interface to the DeveloperGarden API and additionally
offers functionality to improve handling and performance
+%package Zend_Service_Ebay
+Summary: Zend_Service_Ebay is a simple group of APIs for using eBay web services
+Group: Development/Languages/PHP
+URL: http://framework.zend.com/manual/en/zend.service.ebay.html
+Requires: %{name} = %{version}-%{release}
+
+%description Zend_Service_Ebay
+Zend_Service_Ebay is a simple group of APIs for using eBay web
+services.
+
+Zend_Service_Ebay implements the eBay APIs:
+- Finding
+
%package Zend_Service_Flickr
Summary: Zend_Service_Flickr
Group: Development/Languages/PHP
more domains with the service in order to generate public and private
keys.
+%package Zend_Service_ShortUrl
+Summary: Zend_Service_ShortUrl
+Group: Development/Languages/PHP
+URL: http://framework.zend.com/manual/en/zend.service.short-url.html
+Requires: %{name} = %{version}-%{release}
+
+%description Zend_Service_ShortUrl
+URL shorteners have exploded in popularity in the last several years,
+in large part due to the social nature of the web and the desire to
+share links.
+
+Zend_Service_ShortUrl provides an API for accessing a number of
+different URL shortener services, with the ability to both create
+short URLs as well as retrieve the original URL.
+
%package Zend_Service_Simpy
Summary: Zend_Service_Simpy
Group: Development/Languages/PHP
Group: Development/Languages/PHP
URL: http://framework.zend.com/manual/en/zend.test.html
Requires: %{name} = %{version}-%{release}
-Requires: php-PHPUnit
%description Zend_Test
Zend_Test provides tools to facilitate unit testing of your Zend
find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
%build
-# check *.php files syntax using runkit extension
+%if %{with tests}
lint_php() {
- php -r '
- $errors = 0;
- array_shift($argv);
- echo "Checking syntax of ", count($argv), " PHP files";
- foreach ($argv as $file) {
- echo ".";
- if (!runkit_lint_file($file)) {
- echo "PHP Lint: $file\n";
- $errors++;
- }
- }
- echo "\nDONE!\n";
- exit($errors ? 1 : 0);
- ' $(find library -name '*.php')
+ for a in $(find library -name '*.php'); do
+ php -n -l $a
+ done
}
lint_php
+%endif
%install
rm -rf $RPM_BUILD_ROOT
cp -a library/* $RPM_BUILD_ROOT%{php_pear_dir}
# create script in bindir
-cp -a bin/zf.php $RPM_BUILD_ROOT%{php_pear_dir}/bin
+install -p bin/zf.php $RPM_BUILD_ROOT%{php_pear_dir}/bin
cat >> $RPM_BUILD_ROOT%{_bindir}/zf <<-'EOF'
#!/bin/sh
cd %{php_pear_dir}/bin
%defattr(644,root,root,755)
%{php_pear_dir}/Zend/Captcha
+%files Zend_Cloud
+%defattr(644,root,root,755)
+%dir %{php_pear_dir}/Zend/Cloud
+%{php_pear_dir}/Zend/Cloud/AbstractFactory.php
+%{php_pear_dir}/Zend/Cloud/Exception.php
+%{php_pear_dir}/Zend/Cloud/OperationNotAvailableException.php
+
+# subpackages?
+%{php_pear_dir}/Zend/Cloud/DocumentService
+%{php_pear_dir}/Zend/Cloud/QueueService
+%{php_pear_dir}/Zend/Cloud/StorageService
+
%files Zend_CodeGenerator
%defattr(644,root,root,755)
%{php_pear_dir}/Zend/CodeGenerator
%defattr(644,root,root,755)
%{php_pear_dir}/Zend/Service/DeveloperGarden
+%files Zend_Service_Ebay
+%defattr(644,root,root,755)
+%{php_pear_dir}/Zend/Service/Ebay
+
%files Zend_Service_Flickr
%defattr(644,root,root,755)
%{php_pear_dir}/Zend/Service/Flickr
%{php_pear_dir}/Zend/Service/ReCaptcha
%{php_pear_dir}/Zend/Service/ReCaptcha.php
+%files Zend_Service_ShortUrl
+%defattr(644,root,root,755)
+%{php_pear_dir}/Zend/Service/ShortUrl
+
%files Zend_Service_Simpy
%defattr(644,root,root,755)
%{php_pear_dir}/Zend/Service/Simpy