packages: kohana/kohana.spec - autoscan deps, some might be optional - cosm...

glen glen at pld-linux.org
Wed Sep 8 08:55:00 CEST 2010


Author: glen                         Date: Wed Sep  8 06:55:00 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- autoscan deps, some might be optional
- cosmetics

---- Files affected:
packages/kohana:
   kohana.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: packages/kohana/kohana.spec
diff -u packages/kohana/kohana.spec:1.3 packages/kohana/kohana.spec:1.4
--- packages/kohana/kohana.spec:1.3	Wed Sep  8 08:48:26 2010
+++ packages/kohana/kohana.spec	Wed Sep  8 08:54:55 2010
@@ -1,4 +1,5 @@
 # $Revision$, $Date$
+%define		php_min_version 5.2.4
 %include	/usr/lib/rpm/macros.php
 Summary:	Swift PHP framework
 Summary(pl.UTF-8):	Szybki framework dla PHP
@@ -11,13 +12,37 @@
 # Source0-md5:	d317c1fdcbe649d2862a3f602b1f6cd6
 URL:		http://www.kohanaframework.org/
 BuildRequires:	rpm-php-pearprov >= 4.3
+BuildRequires:	rpmbuild(macros) >= 1.461
 BuildRequires:	sed >= 4.0
-Requires:	php-common >= 4:5.1.3
+Requires:	php-common >= 4:%{php_min_version}
+Requires:	php-ctype
+Requires:	php-date
+Requires:	php-dom
+Requires:	php-filter
+Requires:	php-gd
+Requires:	php-hash
+Requires:	php-json
+Requires:	php-mbstring
+Requires:	php-mysql
+Requires:	php-pcre
+Requires:	php-session
+Requires:	php-simplexml
+Requires:	php-spl
+Requires:	php-xml
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_appdir	%{php_data_dir}/kohana
 
+# want no pear deps
+%define		_noautopear	pear
+
+# exclude optional php dependencies
+%define		_noautophp	%{nil}
+
+# put it together for rpmbuild
+%define		_noautoreq	%{?_noautophp} %{?_noautopear}
+
 %description
 Kohana is a PHP5 framework that uses the Model View Controller
 architectural pattern. It aims to be secure, lightweight and easy to
@@ -45,9 +70,6 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
-%{__sed} -i -e "s,\$kohana_system = 'system',\$kohana_system = '%{_appdir}/system'," index.php
-
 install -d $RPM_BUILD_ROOT%{_appdir}
 cp -a system modules $RPM_BUILD_ROOT%{_appdir}
 
@@ -60,17 +82,12 @@
 %files
 %defattr(644,root,root,755)
 %dir %{_appdir}
-%dir %{_appdir}/system
-%dir %{_appdir}/modules
-%{_appdir}/system/*
-%{_appdir}/modules/*
+%{_appdir}/system
+%{_appdir}/modules
 
 %files examples
 %defattr(644,root,root,755)
-%dir %{_examplesdir}/%{name}
-%dir %{_examplesdir}/%{name}/application
-%{_examplesdir}/%{name}/application/*
-%{_examplesdir}/%{name}/index.php
+%{_examplesdir}/%{name}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -78,6 +95,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2010/09/08 06:54:55  glen
+- autoscan deps, some might be optional
+- cosmetics
+
 Revision 1.3  2010/09/08 06:48:26  glen
 - up to 3.0.7.1 release tarball, license is now bsd
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/kohana/kohana.spec?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list