Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 397f2f4d934e4ca52a4bf95b8c0efb3b > files > 3

cakephp-1.3.13-2.mga3.src.rpm

%define commit 924fb6f
%define tag 60df687

Name:		cakephp
Version:	1.3.13
Release:	%mkrel 2

Summary:	MVC rapid application development framework for PHP
License:	MIT
Group:		Development/PHP
URL:		http://cakephp.org/
		# https://github.com/cakephp/cakephp/tarball/%{version}:
Source0:	%{name}-%{name}-%{version}-0-g%{commit}.tar.gz
		# Fix the path to launch the console php script to an
		# absolute path:
Patch0:		%{name}-%{version}-mdv-fix-lib-path.patch

BuildArch:	noarch

Requires:	apache-mod_php
Requires:	php-pdo
Suggests:	cakephp-cli


%description
CakePHP is a free, open-source, model-view-controller rapid development
framework for PHP. It's a foundational structure for programmers to create
web applications. CakePHP reduces development costs and helps developers
write less code, making it swiftly and with the least amount of hassle:

* Compatible with versions 4 and 5 of PHP
* Integrated CRUD for database interaction
* Application scaffolding
* Code generation
* MVC architecture
* Request dispatcher with clean, custom URLs and routes
* Built-in validation
* Fast and flexible templating (PHP syntax, with helpers)
* View Helpers for AJAX, JavaScript, HTML Forms and more
* Email, Cookie, Security, Session, and Request Handling Components
* Flexible ACL
* Data Sanitization
* Flexible Caching
* Localization
* Works from any web site directory, with little to no Apache configuration
  involved


%package cli
Summary:	CakePHP console client
Group:		Development/PHP

Requires:	%{name}
Requires:	php-cli


%description cli
CakePHP is a free, open-source, model-view-controller rapid development
framework for PHP. It's a foundational structure for programmers to create
web applications.

This package contains the console command-line interface to CakePHP. It
features a number of console applications that are used in concert with
other CakePHP features (like ACL or i18n) and for general use in getting you
to launch quicker.


%prep
%setup -q -n %{name}-%{name}-%{tag}
%patch0 -p1


%build
# Remove unnecessary 'empty' files and directories.  These were added
# by upstream to workaround braindead MacOS X extracting utilities
# that would silently not create empty directories:
find ./ -type f -name empty -size 0 -print0 | xargs -0 rm -f
# We don't need the msdos command launcher:
CAKEBAT=cake/console/cake.bat
[[ -f ${CAKEBAT} ]] && rm -f ${CAKEBAT}


%install
mkdir -p %{buildroot}%{_datadir}/php/%{name}/cake/console
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_docdir}/%{name}

cp -r cake/libs \
    cake/tests \
    cake/config \
    cake/*.php \
    %{buildroot}%{_datadir}/php/%{name}/cake
cp -r cake/console/libs \
    cake/console/*.php \
    %{buildroot}%{_datadir}/php/%{name}/cake/console
cp -r cake/console/cake %{buildroot}%{_bindir}/cake

cp README %{buildroot}%{_docdir}/%{name}
cp cake/*.txt %{buildroot}%{_docdir}/%{name}


%files
%defattr(-,root,root)
%{_datadir}/php/%{name}/cake/libs
%{_datadir}/php/%{name}/cake/tests
%{_datadir}/php/%{name}/cake/config
%{_datadir}/php/%{name}/cake/*.php
%doc %{_docdir}/%{name}/README
%doc %{_docdir}/%{name}/VERSION.txt
%doc %{_docdir}/%{name}/LICENSE.txt


%files cli
%{_bindir}/cake
%{_datadir}/php/%{name}/cake/console




%changelog

* Fri Jan 11 2013 umeabot <umeabot> 1.3.13-2.mga3
+ Revision: 347322
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Thu Sep 27 2012 juancho <juancho> 1.3.13-1.mga3
+ Revision: 298531
- imported package cakephp