1 %define php_min_version 5.2.4
2 Summary: A powerful PHP framework with a very small footprint
7 Group: Development/Languages/PHP
8 Source0: https://github.com/bcit-ci/CodeIgniter/archive/%{version}/%{name}-%{version}.tar.gz
9 # Source0-md5: 042f94f7c59b22111c7cf56673769c8b
10 Source1: INSTALL-PLD.txt
11 Source2: codeigniter-install
13 URL: http://codeigniter.com/
14 BuildRequires: rpm-php-pearprov >= 4.3
15 BuildRequires: rpmbuild(macros) >= 1.461
16 BuildRequires: sed >= 4.0
18 Requires: php(core) >= %{php_min_version}
22 Requires: php(mbstring)
25 Requires: php(session)
26 Requires: php(simplexml)
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 %define _appdir %{_datadir}/%{name}
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
42 Summary: CodeIgniter documentation
43 Group: Development/Languages/PHP
46 CodeIgniter documentation.
52 cp -p %{SOURCE1} user_guide
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT{%{_appdir},%{_bindir}}
57 cp -r index.php application system $RPM_BUILD_ROOT%{_appdir}
58 install -p %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}
60 find $RPM_BUILD_ROOT%{_datadir}/%{name} -name index.html | xargs rm -v
61 rm -r $RPM_BUILD_ROOT%{_appdir}/application/{cache,core,helpers,hooks,libraries}
64 rm -rf $RPM_BUILD_ROOT
67 %banner -e %{name} <<-EOF
68 Please read INSTALL-PLD.txt to know how can use the users the installed CodeIgniter!
72 %defattr(644,root,root,755)
73 %attr(755,root,root) %{_bindir}/codeigniter-install
76 %dir %{_appdir}/application
77 %dir %{_appdir}/application/config
78 %dir %{_appdir}/application/controllers
79 %dir %{_appdir}/application/errors
80 %dir %{_appdir}/application/language
81 %dir %{_appdir}/application/views
82 %dir %{_appdir}/system
83 %dir %{_appdir}/system/core
84 %dir %{_appdir}/system/database
85 %dir %{_appdir}/system/database/drivers
86 %dir %{_appdir}/system/fonts
87 %dir %{_appdir}/system/helpers
88 %dir %{_appdir}/system/language
89 %dir %{_appdir}/system/libraries
92 %{_appdir}/application/.htaccess
93 %{_appdir}/system/.htaccess
95 %{_appdir}/application/config/*
96 %{_appdir}/application/controllers/*
97 %{_appdir}/application/errors/*
98 %{_appdir}/application/language/*
99 %{_appdir}/application/views/*
101 %{_appdir}/system/core/*
102 %{_appdir}/system/database/DB*.php
103 %{_appdir}/system/database/drivers/*
104 %{_appdir}/system/fonts/*
105 %{_appdir}/system/helpers/*
106 %{_appdir}/system/language/*
107 %{_appdir}/system/libraries/*
110 %defattr(644,root,root,755)