packages: kohana/kohana.spec - up to 3.0.7.1 release tarball, license is no...

glen glen at pld-linux.org
Wed Sep 8 08:48:32 CEST 2010


Author: glen                         Date: Wed Sep  8 06:48:32 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 3.0.7.1 release tarball, license is now bsd

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

---- Diffs:

================================================================
Index: packages/kohana/kohana.spec
diff -u packages/kohana/kohana.spec:1.2 packages/kohana/kohana.spec:1.3
--- packages/kohana/kohana.spec:1.2	Wed Sep  8 08:43:42 2010
+++ packages/kohana/kohana.spec	Wed Sep  8 08:48:26 2010
@@ -1,24 +1,23 @@
 # $Revision$, $Date$
-%define		rel 1690
-%define		kohanadir	%{_datadir}/php/kohana
-
 %include	/usr/lib/rpm/macros.php
 Summary:	Swift PHP framework
 Summary(pl.UTF-8):	Szybki framework dla PHP
 Name:		kohana
-Version:	2.1
-Release:	0.%{rel}.1
-License:	Kohana License (http://kohanaphp.com/license.html)
+Version:	3.0.7.1
+Release:	0.1
+License:	BSD
 Group:		Development/Languages/PHP
-Source0:	%{name}-trunk-r%{rel}.zip
-# Source0-md5:	4a491482ed5ed6e345fb80aeba3a0f50
-URL:		http://kohanaphp.com/
+Source0:	http://dev.kohanaframework.org/attachments/download/1596/%{name}-%{version}.zip
+# Source0-md5:	d317c1fdcbe649d2862a3f602b1f6cd6
+URL:		http://www.kohanaframework.org/
 BuildRequires:	rpm-php-pearprov >= 4.3
 BuildRequires:	sed >= 4.0
-Requires:	php-common >= 5.1.3
+Requires:	php-common >= 4:5.1.3
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		_appdir	%{php_data_dir}/kohana
+
 %description
 Kohana is a PHP5 framework that uses the Model View Controller
 architectural pattern. It aims to be secure, lightweight and easy to
@@ -41,29 +40,30 @@
 Pakiet zawiera podstawową strukturę aplikacji.
 
 %prep
-%setup -q -c
+%setup -qc
+mv kohana/* .; rmdir kohana
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__sed} -i -e "s,$kohana_system = 'system',$kohana_system = '/usr/share/php/kohana/system'," trunk/index.php
+%{__sed} -i -e "s,\$kohana_system = 'system',\$kohana_system = '%{_appdir}/system'," index.php
 
-install -d $RPM_BUILD_ROOT%{kohanadir}
-cp -r trunk/{system,modules} $RPM_BUILD_ROOT%{kohanadir}
+install -d $RPM_BUILD_ROOT%{_appdir}
+cp -a system modules $RPM_BUILD_ROOT%{_appdir}
 
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}
-cp -r trunk/application trunk/index.php $RPM_BUILD_ROOT%{_examplesdir}/%{name}
+cp -a application index.php $RPM_BUILD_ROOT%{_examplesdir}/%{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%dir %{kohanadir}
-%dir %{kohanadir}/system
-%dir %{kohanadir}/modules
-%{kohanadir}/system/*
-%{kohanadir}/modules/*
+%dir %{_appdir}
+%dir %{_appdir}/system
+%dir %{_appdir}/modules
+%{_appdir}/system/*
+%{_appdir}/modules/*
 
 %files examples
 %defattr(644,root,root,755)
@@ -78,6 +78,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2010/09/08 06:48:26  glen
+- up to 3.0.7.1 release tarball, license is now bsd
+
 Revision 1.2  2010/09/08 06:43:42  glen
 - merge from DEVEL (heck, why you add initial spec to DEVEL?)
 
================================================================

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



More information about the pld-cvs-commit mailing list