]> git.pld-linux.org Git - packages/CodeIgniter.git/commitdiff
- remove *.conf files, unneeded
authorZsolt Udvari <uzsolt@pld-linux.org>
Wed, 13 Apr 2011 07:45:42 +0000 (07:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- remove triggers
- add banner
- added INSTALL-PLD.txt

Changed files:
    CodeIgniter.spec -> 1.2

CodeIgniter.spec

index f439502100357dc6bb8e3916f42d23b265d0eb54..1e55bfda785e0b030f1f20316f7320a3bfb7decd 100644 (file)
@@ -3,14 +3,12 @@
 Summary:       A powerful PHP framework with a very small footprint
 Name:          CodeIgniter
 Version:       2.0.2
-Release:       0.2
+Release:       0.5
 License:       other
 Group:         Development/Languages/PHP
 Source0:       http://www.codeigniter.com/download_files/reactor/%{name}_%{version}.zip
 # Source0-md5: e75bab8cf27d2fb2483c5bb61b85a524
-Source1:       apache.conf
-Source2:       httpd.conf
-Source3:       lighttpd.conf
+Source1:       INSTALL-PLD.txt
 URL:           http://www.kohanaframework.org/
 BuildRequires: rpm-php-pearprov >= 4.3
 BuildRequires: rpmbuild(macros) >= 1.461
@@ -30,9 +28,6 @@ BuildArch:    noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _appdir         %{_datadir}/%{name}
-%define                _webapps        /etc/webapps
-%define                _webapp         %{name}
-%define                _sysconfdir     %{_webapps}/%{_webapp}
 
 %description
 CodeIgniter is a powerful PHP framework with a very small footprint,
@@ -44,7 +39,8 @@ frameworks.
 
 %prep
 %setup -q -n %{name}_%{version}
-%{__sed} -i 's,\$application_folder.*=.*,$application_folder = "/home/users";,' index.php
+%{__sed} -i 's,\$application_folder.*=.*,$application_folder = "PLEASE SET TO CORRECT PATH";,' index.php
+%{__sed} -i '59 s,\$system_path.*=.*,$system_path = "/usr/share/CodeIgniter"\;, ' index.php
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -54,38 +50,17 @@ install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
 
 cp -r index.php application system $RPM_BUILD_ROOT%{_appdir}
 cp -r user_guide/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
-
-install -d $RPM_BUILD_ROOT%{_sysconfdir}
-install %{SOURCE1} %{SOURCE2} %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%triggerin -- apache1 < 1.3.37-3, apache1-base
-%webapp_register apache %{_webapp}
-
-%triggerun -- apache1 < 1.3.37-3, apache1-base
-%webapp_unregister apache %{_webapp}
-
-%triggerin -- apache < 2.2.0, apache-base
-%webapp_register httpd %{_webapp}
-
-%triggerun -- apache < 2.2.0, apache-base
-%webapp_unregister httpd %{_webapp}
-
-%triggerin -- lighttpd
-%webapp_register lighttpd %{_webapp}
-
-%triggerun -- lighttpd
-%webapp_unregister lighttpd %{_webapp}
+%post
+%banner -e %{name} <<-EOF
+Please read INSTALL-PLD.txt to know how can use the users the installed CodeIgniter!
+EOF
 
 %files
 %defattr(644,root,root,755)
-%dir %attr(750,root,http) %{_sysconfdir}
 %doc %{_docdir}/%{name}-%{version}
-
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
-
 %{_appdir}
This page took 0.499391 seconds and 4 git commands to generate.