%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}} %define pear_name symfony %define channel pear.symfony-project.com Summary: Open-Source PHP Web Framework Name: php-pear-symfony Version: 1.0.11 Release: 1%{?dist} License: MIT Group: Development/Tools Source0: http://%{channel}/get/symfony-%{version}.tgz Patch0: %{pear_name}-internallibfix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) URL: http://www.symfony-project.com/ BuildArch: noarch BuildRequires: php-pear BuildRequires: php-channel(%{channel}) BuildRequires: dos2unix Requires: php-cli >= 5.0.1 Requires: php-pear Requires: php-pear-pake Requires: php-pear-phing Requires: php-pear-creole Requires: php-pear-propel_runtime Requires: php-pear-propel_generator Requires: php-channel(%{channel}) Requires(post): %{__pear} Requires(postun): %{__pear} Provides: php-pear(%{channel}/%{pear_name}) = %{version} %description Based on the best practices of web development, thoroughly tried on several active websites, symfony aims to speed up the creation and maintenance of web applications, and to replace the repetitive coding tasks by power, control and pleasure. Symfony provides a lot of features seamlessly integrated together, such as: - simple templating and helpers - cache management - smart URLs - scaffolding - multilingualism and I18N support - object model and MVC separation - Ajax support - enterprise ready %prep %setup -qc %{__mv} package.xml %{pear_name}-%{version}/%{pear_name}.xml %patch0 -p0 -b .internallibfix cd %{pear_name}-%{version} %build %install %{__rm} -rf $RPM_BUILD_ROOT cd %{pear_name}-%{version} %{__rm} -rf docdir %{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{pear_name}.xml # symfony needs a slightly different build file for propel %{__mkdir_p} $RPM_BUILD_ROOT%{pear_datadir}/propel_generator %{__install} -pm 644 lib/vendor/propel-generator/build.xml $RPM_BUILD_ROOT%{pear_datadir}/propel_generator/symfony-build.xml %{__chmod} 755 $RPM_BUILD_ROOT%{pear_datadir}/%{pear_name}/bin/create_sandbox.sh %{__chmod} 755 $RPM_BUILD_ROOT%{_bindir}/symfony %{__mkdir_p} docdir %{__mv} $RPM_BUILD_ROOT%{pear_docdir}/* docdir dos2unix docdir/symfony/licenses/LICENSE.{ICU,PHPMailer} %{__rm} -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??* %{__mkdir_p} $RPM_BUILD_ROOT%{pear_xmldir} %{__install} -pm 644 %{pear_name}.xml $RPM_BUILD_ROOT%{pear_xmldir} %clean %{__rm} -rf $RPM_BUILD_ROOT %post %{__pear} install --nodeps --soft --force --register-only \ %{pear_xmldir}/%{pear_name}.xml >/dev/null || : %postun if [ $1 -eq 0 ] ; then %{__pear} uninstall --nodeps --ignore-errors --register-only \ %{channel}/%{pear_name} >/dev/null || : fi %files %defattr(-,root,root,-) %{_bindir}/%{pear_name} %doc %{pear_name}-%{version}/docdir/%{pear_name} %{pear_datadir}/%{pear_name} %{pear_datadir}/propel_generator/symfony-build.xml %{pear_phpdir}/%{pear_name} %{pear_xmldir}/%{pear_name}.xml %changelog * Mon Mar 17 2008 Alexander Kahl - 1.0.11-1 - updated to upstream release 1.0.11 - updated propel dependencies - updated patch * Thu Oct 25 2007 Alexander Kahl - 1.0.8-1 - initial release