%global drupaldir %{_datadir}/drupal6 Name: drupal6-imageapi Version: 1.9 Release: 3%{?dist} Summary: This API is meant to be used in place of the API provided by image.inc Group: Applications/Publishing License: GPLv2+ URL: http://drupal.org/project/imageapi Source0: http://ftp.drupal.org/files/projects/imageapi-6.x-%{version}.tar.gz Source1: %{name}-fedora-README.txt BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: drupal6 %description This API is meant to be used in place of the API provided by image.inc. You probably do not need to install this module unless another module are you using requires it. It provides no new features to your Drupal site. It only provides an API other modules can leverage. Currently GD2 and ImageMagick support are distributed with ImageAPI. %prep %setup -qn imageapi chmod -x imageapi.module cp -p %{SOURCE1} . %build %install rm -rf %{buildroot} install -d %{buildroot}%{drupaldir}/modules/imageapi cp -pr * %{buildroot}%{drupaldir}/modules/imageapi %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc LICENSE.txt %{name}-fedora-README.txt README.txt %dir %{drupaldir}/modules/imageapi %{drupaldir}/modules/imageapi/image* %dir %{drupaldir}/modules/imageapi/translations %lang(ar) %{drupaldir}/modules/imageapi/translations/ar.po %lang(fr) %{drupaldir}/modules/imageapi/translations/fr.po %lang(hu) %{drupaldir}/modules/imageapi/translations/hu.po %lang(ja) %{drupaldir}/modules/imageapi/translations/ja.po %lang(uk-ua) %{drupaldir}/modules/imageapi/translations/uk-ua.po %lang(uk) %{drupaldir}/modules/imageapi/translations/uk.po %exclude %{drupaldir}/modules/imageapi/*.txt %changelog * Mon Jan 31 2011 Peter Borsa - 1.9-3 - Version macro is added. - Lang macro is also added. * Mon Jan 24 2011 Peter Borsa - 1.9-2 - Changed License to GPLv2+. - Chmod and cp are copied under prep section. - Fixed exclude lines. * Thu Nov 23 2010 Peter Borsa - 1.9-1 - Initial packaging.