Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 4f66c71e482f25714c4c1cc27320271f > files > 2

drupal6-filefield-3.10-1.fc14.src.rpm

%global drupalver 6
%{?rhel: %{expand: %%global drupal drupal%%{drupalver}}}
%if 0%{?fedora} >= 15
%global drupal drupal%{drupalver}
%endif
%{!?drupal: %{expand: %%global drupal drupal}}
# e.g. "/usr/share/drupal6"
%global drupaldir %{_datadir}/%{drupal}
# Use upstream name as expressed in URL and tarball
%global modname filefield

# Bump epoch since old release illegally started with '6.x'
Epoch:   1
Name:    drupal6-%{modname}
Version: 3.10
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/%{modname}-%{drupalver}.x-%{version}.tar.gz
Source1: %{name}-fedora-README.txt
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
cp %{SOURCE1} .

%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
%exclude %{drupaldir}/modules/%{modname}/%{name}-fedora-README.txt
%{drupaldir}/modules/%{modname}

%changelog
* Sun Aug  7 2011 Paul W. Frields <stickster@gmail.com> - 1:3.10-1
- Bump epoch and use legal version (#696991)
- Update to upstream 3.10

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