1 %define php_min_version 5.2.4
2 %include /usr/lib/rpm/macros.php
3 Summary: A powerful PHP framework with a very small footprint
8 Group: Development/Languages/PHP
9 Source0: http://www.codeigniter.com/download_files/reactor/%{name}_%{version}.zip
10 # Source0-md5: e75bab8cf27d2fb2483c5bb61b85a524
11 Source1: INSTALL-PLD.txt
12 URL: http://www.kohanaframework.org/
13 BuildRequires: rpm-php-pearprov >= 4.3
14 BuildRequires: rpmbuild(macros) >= 1.461
15 BuildRequires: sed >= 4.0
17 Requires: php-common >= 4:%{php_min_version}
21 Requires: php-mbstring
25 Requires: php-simplexml
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define _appdir %{_datadir}/%{name}
33 CodeIgniter is a powerful PHP framework with a very small footprint,
34 built for PHP coders who need a simple and elegant toolkit to create
35 full-featured web applications. If you're a developer who lives in the
36 real world of shared hosting accounts and clients with deadlines, and
37 if you're tired of ponderously large and thoroughly undocumented
41 %setup -q -n %{name}_%{version}
42 %{__sed} -i 's,\$application_folder.*=.*,$application_folder = "PLEASE SET TO CORRECT PATH";,' index.php
43 %{__sed} -i '59 s,\$system_path.*=.*,$system_path = "/usr/share/CodeIgniter"\;, ' index.php
46 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT%{_appdir}
49 install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
51 cp -r index.php application system $RPM_BUILD_ROOT%{_appdir}
52 cp -r user_guide/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
53 install %{SOURCE1} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
56 rm -rf $RPM_BUILD_ROOT
59 %banner -e %{name} <<-EOF
60 Please read INSTALL-PLD.txt to know how can use the users the installed CodeIgniter!
64 %defattr(644,root,root,755)
65 %doc %{_docdir}/%{name}-%{version}