packages: php-symfony/php-symfony.spec - up to 1.4.6, exclude deps if enabled
glen
glen at pld-linux.org
Thu Sep 9 15:16:37 CEST 2010
Author: glen Date: Thu Sep 9 13:16:37 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- up to 1.4.6, exclude deps if enabled
---- Files affected:
packages/php-symfony:
php-symfony.spec (1.22 -> 1.23)
---- Diffs:
================================================================
Index: packages/php-symfony/php-symfony.spec
diff -u packages/php-symfony/php-symfony.spec:1.22 packages/php-symfony/php-symfony.spec:1.23
--- packages/php-symfony/php-symfony.spec:1.22 Tue Jan 5 13:19:53 2010
+++ packages/php-symfony/php-symfony.spec Thu Sep 9 15:16:31 2010
@@ -1,32 +1,39 @@
# $Revision$, $Date$
# TODO
-# - use system creole, propel, phing packages (or better do not do that to avoid incompatibilities)
+# - use system creole, propel, phing packages (or better do not do that to avoid incompatibilities?)
# - php deps autofinder finds a lot of crap (that's why we use manual R now), maybe there is a way to improve
-%define sname symfony
+%define pkgname symfony
+%define php_min_version 5.2.1
+#include /usr/lib/rpm/macros.php
Summary: Open-source PHP web framework
Summary(pl.UTF-8): Szkielet aplikacji WWW w PHP o otwartych źródłach
-Name: php-%{sname}
-Version: 1.4.1
+Name: php-%{pkgname}
+Version: 1.4.6
Release: 1
License: various free licenses
Group: Libraries
Source0: http://www.symfony-project.org/get/symfony-%{version}.tgz
-# Source0-md5: b80e8efe2415d388480e8aea738b12b3
+# Source0-md5: 0d17b1ef8b9e02d196fdb528c443ccd8
URL: http://www.symfony-project.org/
BuildRequires: rpmbuild(macros) >= 1.461
Requires: Smarty
-Requires: php-common
+Requires: php-common >= 4:%{php_min_version}
Requires: php-ctype
Requires: php-pear-Archive_Tar
Requires: php-pear-Log
-Requires: php-pear-PEAR
Requires: php-pear-PEAR-core
-Requires: php-pear-PEAR_PackageFileManager
-Requires: php-pear-PHPUnit2
-Requires: php-pear-VersionControl_SVN
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+# bad depsolver
+%define _noautopear pear(Doctrine/.* pear(PHPUnit/.*) pear(PHPUnit2/.*) pear(phing/.*) pear(propel/.*) pear(simpletest/.*)
+
+# exclude optional php dependencies
+%define _noautophp %{nil}
+
+# put it together for rpmbuild
+%define _noautoreq %{?_noautophp} %{?_noautopear}
+
%description
Based on the best practices of web development, thoroughly tried on
several active websites, symfony aims to speed up the creation and
@@ -62,14 +69,14 @@
- gotowość na zastosowania enterprise
%prep
-%setup -q -n %{sname}-%{version}
+%setup -q -n %{pkgname}-%{version}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{php_data_dir}/%{sname}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{php_data_dir}/%{pkgname}}
-cp -a data lib $RPM_BUILD_ROOT%{php_data_dir}/%{sname}
-ln -s %{php_data_dir}/%{sname}/data/bin/symfony $RPM_BUILD_ROOT%{_bindir}/%{sname}
+cp -a data lib $RPM_BUILD_ROOT%{php_data_dir}/%{pkgname}
+ln -s %{php_data_dir}/%{pkgname}/data/bin/symfony $RPM_BUILD_ROOT%{_bindir}/%{pkgname}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -78,12 +85,12 @@
%defattr(644,root,root,755)
%doc licenses CHANGELOG COPYRIGHT LICENSE README
%attr(755,root,root) %{_bindir}/*
-%dir %{php_data_dir}/%{sname}
-%dir %{php_data_dir}/%{sname}/data
-%dir %{php_data_dir}/%{sname}/data/bin
-%attr(755,root,root) %{php_data_dir}/%{sname}/data/bin/*
-%{php_data_dir}/%{sname}/data/[!b]*
-%{php_data_dir}/%{sname}/lib
+%dir %{php_data_dir}/%{pkgname}
+%dir %{php_data_dir}/%{pkgname}/data
+%dir %{php_data_dir}/%{pkgname}/data/bin
+%attr(755,root,root) %{php_data_dir}/%{pkgname}/data/bin/*
+%{php_data_dir}/%{pkgname}/data/[!b]*
+%{php_data_dir}/%{pkgname}/lib
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -91,6 +98,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.23 2010/09/09 13:16:31 glen
+- up to 1.4.6, exclude deps if enabled
+
Revision 1.22 2010/01/05 12:19:53 arekm
- include changelog
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-symfony/php-symfony.spec?r1=1.22&r2=1.23&f=u
More information about the pld-cvs-commit
mailing list