%define drupaldir %{_datadir}/drupal Name: drupal6-mimedetect Version: 1.3 Release: 1%{?dist} Summary: MimeDetect provides an API for consistent server side mime detection Group: Applications/Publishing License: GPLv2 URL: http://drupal.org/project/mimedetect Source0: http://ftp.drupal.org/files/projects/mimedetect-6.x-1.3.tar.gz Source1: drupal6-mimedetect-fedora-README.txt BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: drupal >= 6.0 %description MimeDetect provides an API for consistent server side mime detection using the PHP FileInfo extension, the UNIX 'file' command, user supplied mime data, or file extension look ups. It is distributed with its own magic library for use with the PHP FileInfo extension to make mime detection more consistent in different environments. %prep %setup -qn mimedetect %build chmod -x mimedetect.module cp %{SOURCE1} . %install rm -rf %{buildroot} install -d %{buildroot}%{drupaldir}/modules/mimedetect cp -pr * %{buildroot}%{drupaldir}/modules/mimedetect %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc LICENSE.txt drupal6-mimedetect-fedora-README.txt README.txt %exclude %{drupaldir}/modules/mimedetect/README.txt %exclude %{drupaldir}/modules/mimedetect/LICENSE.txt %exclude %{drupaldir}/modules/mimedetect/drupal6-mimedetect-fedora-README.txt %{drupaldir}/modules/mimedetect %changelog * Thu Nov 23 2010 Peter Borsa - 1.3 - Initial packaging.