Name: magento Summary: ecommmerce platform Version: 1.3.2.4 Release: 2%{?dist} Group: Applications/Internet License: AFL and OSL 3.0 URL: http://www.magento.org Source: http://www.magentocommerce.com/downloads/assets/%{version}/magento-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: httpd >= 2.2.13, php >= 5.2.11, php-mysql >= 5.2.11, php-pdo >= 5.2.11, php-pear >= 1.7.2, php-mcrypt >= 5.2.11, php-mhash >= 5.2.11, php-xml >= 5.2.11, php-gd >= 5.2.11, mysql >= 5.1.40, mysql-server >= 5.1.40, mysql-libs >= 5.1.40 %description Magento is an ecommerce web application. Since it is a web application, this electronic commerce browser works on many platforms, making your store application easily manageable from any location. Magento is the perfect ecommerce browser for the sell professional and novice alike. %prep %setup -q -n %{name}-%{version} %build find . \( -name "*.orig" -o -name "*~" -o -name .cvsignore \) -print0 | \ xargs -0 rm -f find . -type f -print0 | xargs -0 chmod -x %install rm -rf $RPM_BUILD_ROOT install -d -m755 $RPM_BUILD_ROOT%{_datadir}/%{name} cp -a * $RPM_BUILD_ROOT%{_datadir}/%{name} cp -a .[a-zA-Z0-9]* $RPM_BUILD_ROOT%{_datadir}/%{name} install -d -m755 $RPM_BUILD_ROOT%{_sysconfdir}/%{name} chmod 777 $RPM_BUILD_ROOT%{_datadir}/%{name}/app/etc $RPM_BUILD_ROOT%{_datadir}/%{name}/var $RPM_BUILD_ROOT%{_datadir}/%{name}/media $RPM_BUILD_ROOT%{_datadir}/%{name}/media/downloadable $RPM_BUILD_ROOT%{_datadir}/%{name}/media/import cat <%{name}.conf # # %{summary} # Alias /%{name} %{_datadir}/%{name} Order Deny,Allow #Comment the following line and uncomment the next for public use Deny from all #Allow from all #Uncomment the following line for setup Allow from 127.0.0.1 AllowOverride All #Uncomment the next line if using with SSL/TLS #php_flag session.cookie_secure on EOF install -d $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d install -m644 %{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d %clean rm -rf $RPM_BUILD_ROOT %post if [ `cat /selinux/enforce` -ne 0 ] then setsebool -P httpd_enable_cgi 1 fi %files %defattr(-,root,root,-) %config(noreplace) %{_sysconfdir}/httpd/conf.d/*.conf %{_datadir}/%{name} %doc LICENSE.txt LICENSE_AFL.txt LICENSE.html STATUS.txt %changelog * Mon Jan 04 2010 Frederic Hornain - 1.3.2.4-2 - Unwanted tabs - line no. 28 - removed in the spec file. * Wed Dec 23 2009 Frederic Hornain - 1.3.2.4-1 - Initial release.