File zendframework-1.spec of Package zendframework-1

#
# spec file for package ZendFramework 1 
#

#SuSe specific Part
%if %{?sles_version:1}0
Requires:		php53
BuildRequires:		php53
%define	phpsharedir	/usr/share/php5
%endif

%if %{?centos_version:1}0
Requires:			coreutils php
BuildRequires:			coreutils php
%define phpsharedir     /usr/share/php
%endif

#RedHat specific Part
%if %{?rhel_version:1}0
Requires:		php
%define phpsharedir     /usr/share/php
%endif

#Fedora specific Part
%if %{?fedora_version:1}0
%define phpsharedir     /usr/share/php
%endif

#all Distros
Name:           zendframework-1
Version:	1.12.7
Release:	0
License:	http://framework.zend.com/license
Summary:	Open source framework for developing web applications
Url:		http://framework.zend.com/
Group:		devel/php
Source:		https://packages.zendframework.com/releases/ZendFramework-1.12.7/ZendFramework-1.12.7.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description

%prep

%build

%install
cd %{_sourcedir}
#ZendFramework needs no compilation. It just has to be around. PHP has to find it (use the php include_path)
tar -xf ZendFramework-%{version}.tar.gz
mkdir -p %{buildroot}%{phpsharedir}/Zend/
cp -rp %{_sourcedir}/ZendFramework-%{version}/library/Zend/* %{buildroot}%{phpsharedir}/Zend/


%post

%postun

%files
%defattr(-,root,root)
%dir %{phpsharedir}/Zend
%{phpsharedir}/Zend/*


%changelog

openSUSE Build Service is sponsored by