]>
Commit | Line | Data |
---|---|---|
db1f333d ZU |
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 | |
4 | Name: CodeIgniter | |
5 | Version: 2.0.2 | |
16ac96a4 | 6 | Release: 0.7 |
db1f333d ZU |
7 | License: other |
8 | Group: Development/Languages/PHP | |
9 | Source0: http://www.codeigniter.com/download_files/reactor/%{name}_%{version}.zip | |
10 | # Source0-md5: e75bab8cf27d2fb2483c5bb61b85a524 | |
f4d15a2e | 11 | Source1: INSTALL-PLD.txt |
16ac96a4 | 12 | Source2: codeigniter-install |
db1f333d ZU |
13 | URL: http://www.kohanaframework.org/ |
14 | BuildRequires: rpm-php-pearprov >= 4.3 | |
15 | BuildRequires: rpmbuild(macros) >= 1.461 | |
16 | BuildRequires: sed >= 4.0 | |
17 | BuildRequires: unzip | |
18 | Requires: php-common >= 4:%{php_min_version} | |
19 | Requires: php-ctype | |
20 | Requires: php-date | |
21 | Requires: php-hash | |
22 | Requires: php-mbstring | |
23 | Requires: php-mysql | |
24 | Requires: php-pcre | |
25 | Requires: php-session | |
26 | Requires: php-simplexml | |
27 | Requires: php-spl | |
28 | BuildArch: noarch | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %define _appdir %{_datadir}/%{name} | |
db1f333d ZU |
32 | |
33 | %description | |
34 | CodeIgniter is a powerful PHP framework with a very small footprint, | |
35 | built for PHP coders who need a simple and elegant toolkit to create | |
36 | full-featured web applications. If you're a developer who lives in the | |
37 | real world of shared hosting accounts and clients with deadlines, and | |
38 | if you're tired of ponderously large and thoroughly undocumented | |
39 | frameworks. | |
40 | ||
41 | %prep | |
42 | %setup -q -n %{name}_%{version} | |
f4d15a2e | 43 | %{__sed} -i 's,\$application_folder.*=.*,$application_folder = "PLEASE SET TO CORRECT PATH";,' index.php |
16ac96a4 | 44 | %{__sed} -i '59 s,\$system_path.*=.*,$system_path = "%{_datadir}/CodeIgniter/system"\;, ' index.php |
db1f333d ZU |
45 | |
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | install -d $RPM_BUILD_ROOT%{_appdir} | |
50 | install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} | |
51 | ||
52 | cp -r index.php application system $RPM_BUILD_ROOT%{_appdir} | |
53 | cp -r user_guide/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} | |
f4d15a2e | 54 | install %{SOURCE1} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} |
db1f333d | 55 | |
16ac96a4 ZU |
56 | install -d $RPM_BUILD_ROOT%{_bindir} |
57 | install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir} | |
58 | ||
db1f333d ZU |
59 | %clean |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
f4d15a2e ZU |
62 | %post |
63 | %banner -e %{name} <<-EOF | |
64 | Please read INSTALL-PLD.txt to know how can use the users the installed CodeIgniter! | |
65 | EOF | |
db1f333d ZU |
66 | |
67 | %files | |
68 | %defattr(644,root,root,755) | |
db1f333d | 69 | %doc %{_docdir}/%{name}-%{version} |
16ac96a4 | 70 | %attr(755,root,root) %{_bindir}/codeigniter-install |
db1f333d | 71 | %{_appdir} |