]> git.pld-linux.org Git - packages/CodeIgniter.git/blame - CodeIgniter.spec
- codeigniter-install script
[packages/CodeIgniter.git] / CodeIgniter.spec
CommitLineData
db1f333d
ZU
1%define php_min_version 5.2.4
2%include /usr/lib/rpm/macros.php
3Summary: A powerful PHP framework with a very small footprint
4Name: CodeIgniter
5Version: 2.0.2
16ac96a4 6Release: 0.7
db1f333d
ZU
7License: other
8Group: Development/Languages/PHP
9Source0: http://www.codeigniter.com/download_files/reactor/%{name}_%{version}.zip
10# Source0-md5: e75bab8cf27d2fb2483c5bb61b85a524
f4d15a2e 11Source1: INSTALL-PLD.txt
16ac96a4 12Source2: codeigniter-install
db1f333d
ZU
13URL: http://www.kohanaframework.org/
14BuildRequires: rpm-php-pearprov >= 4.3
15BuildRequires: rpmbuild(macros) >= 1.461
16BuildRequires: sed >= 4.0
17BuildRequires: unzip
18Requires: php-common >= 4:%{php_min_version}
19Requires: php-ctype
20Requires: php-date
21Requires: php-hash
22Requires: php-mbstring
23Requires: php-mysql
24Requires: php-pcre
25Requires: php-session
26Requires: php-simplexml
27Requires: php-spl
28BuildArch: noarch
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%define _appdir %{_datadir}/%{name}
db1f333d
ZU
32
33%description
34CodeIgniter is a powerful PHP framework with a very small footprint,
35built for PHP coders who need a simple and elegant toolkit to create
36full-featured web applications. If you're a developer who lives in the
37real world of shared hosting accounts and clients with deadlines, and
38if you're tired of ponderously large and thoroughly undocumented
39frameworks.
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
47rm -rf $RPM_BUILD_ROOT
48
49install -d $RPM_BUILD_ROOT%{_appdir}
50install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
51
52cp -r index.php application system $RPM_BUILD_ROOT%{_appdir}
53cp -r user_guide/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
f4d15a2e 54install %{SOURCE1} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
db1f333d 55
16ac96a4
ZU
56install -d $RPM_BUILD_ROOT%{_bindir}
57install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}
58
db1f333d
ZU
59%clean
60rm -rf $RPM_BUILD_ROOT
61
f4d15a2e
ZU
62%post
63%banner -e %{name} <<-EOF
64Please read INSTALL-PLD.txt to know how can use the users the installed CodeIgniter!
65EOF
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}
This page took 0.137401 seconds and 4 git commands to generate.