Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 8284cfa2d76c268903eeff06d774c4a7 > files > 1

drupal6-filefield-6.x.3.9-1.fc13.src.rpm

%global drupalver 6
%if 0%{?fedora} <= 14
%global drupal drupal
%else
# e.g. "drupal6"
%global drupal drupal%{drupalver}
%endif
# e.g. "/usr/share/drupal6"
%global drupaldir %{_datadir}/%{drupal}
# Use upstream name as expressed in URL and tarball
%global modname filefield

Name:    drupal6-%{modname}
Version: 6.x.3.9
Release: 1%{?dist}
Summary: Defines a file field type
Group:   Applications/Publishing
License: GPLv2+
URL:     http://drupal.org/project/%{modname}
Source0: http://ftp.drupal.org/files/projects/filefield-6.x-3.9.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires:  %{drupal} >= 6.0

%description
FileField provides a universal file upload field for CCK. It is a robust 
alternative to core's Upload module and an absolute must for users uploading a
large number of files. Great for managing video and audio files for podcasts on
your own site.

%prep
%setup -qn %{modname}

%build

%install
rm -rf %{buildroot}
install -d %{buildroot}%{drupaldir}/modules/%{modname}
cp -pr * %{buildroot}%{drupaldir}/modules/%{modname}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc LICENSE.txt 
%exclude %{drupaldir}/modules/%{modname}/LICENSE.txt
%{drupaldir}/modules/%{modname}

%changelog
* Sat Mar 05 2011 Eric "Sparks" Christensen <sparks@fedoraproject.org> - 6.x.3.9-1
- New package