Blob Blame History Raw
%global drupaldir %{_datadir}/drupal7

Name:      drupal7-ctools
Version:   1.1
Release:   1%{?dist}
Summary:   This suite is primarily a set of APIs and tools for other Drupal modules

Group:     Applications/Publishing
License:   GPLv2+
URL:       http://drupal.org/project/ctools
Source0:   http://ftp.drupal.org/files/projects/ctools-7.x-%{version}.tar.gz
Source1:   %{name}-fedora-README.txt
Source2:   LICENSE.txt

BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires:  drupal7

%description
This suite is primarily a set of APIs and tools
to improve the developer experience.
It also contains a module called the Page Manager whose job is to manage pages.
In particular it manages panel pages,
but as it grows it will be able to manage far more than just Panels.

For the moment, it includes the following tools:

Plug-ins -- tools to make it easy for modules
to let other modules implement plug-ins from .inc files.

Ex-portables -- tools to make it easier for modules to have objects
that live in database or live in code, such as 'default views'.

AJAX responder -- tools to make it easier for the server to handle AJAX requests
and tell the client what to do with them.

Form tools -- tools to make it easier for forms to deal with AJAX.

Object caching -- tool to make it easier to edit an object
across multiple page requests and cache the editing work.

Contexts -- the notion of wrapping objects in a unified wrapper
and providing an API to create and accept these contexts as input.

Modal dialog -- tool to make it simple to put a form in a modal dialog.

Dependent -- a simple form widget to make form items appear
and disappear based upon the selections in another item.

Content -- plug-gable content types used as panes in Panels
and other modules like Dashboard.

Form wizard -- an API to make multiple-step forms much easier.

CSS tools -- tools to cache and sanitize CSS easily to make user-input CSS safe.

%prep
%setup -qn ctools
chmod -x ctools.module

%build
cp -p %{SOURCE1} .
cp -p %{SOURCE2} .

%install
rm -rf %{buildroot}
install -d %{buildroot}%{drupaldir}/modules/ctools
cp -pr * %{buildroot}%{drupaldir}/modules/ctools
find %{buildroot} -size 0 -delete

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc LICENSE.txt %{name}-fedora-README.txt CHANGELOG.txt API.txt
%exclude %{drupaldir}/modules/ctools/*.txt
%{drupaldir}/modules/ctools

%changelog
* Thu Aug 09 2012 Peter Borsa <peter.borsa@gmail.com> - 1.1-1
- Update to upstream 1.1 release

* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Thu Mar 29 2012 Jared Smith <jsmith@fedoraproject.org> - 1.0-1
- Update to upstream 1.0 release

* Wed Mar 28 2012 Jared Smith <jsmith@fedoraproject.org> - 1.0-0.2.rc2
- Update to upstream rc2 release

* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.2.rc1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Sun Sep 11 2011 Jared Smith <jsmith@fedoraproject.org> - 1.0-0.1.rc1
- Initial version for Drupal 7

* Sat Aug 06 2011 Jared Smith <jsmith@fedoraproject.org> - 1.0-rc1
- Initial version for Drupal 7