%{?drupal7_find_provides_and_requires} %global module imce Name: drupal7-%{module} Version: 1.9 Release: 1%{?dist} Summary: IMCE is an image/file uploader and browser Group: Applications/Publishing License: GPLv2+ URL: http://drupal.org/project/%{module} Source0: http://ftp.drupal.org/files/projects/%{module}-7.x-%{version}.tar.gz Source1: %{name}-RPM-README.txt BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: drupal7-rpmbuild >= 7.23-3 # phpcompatinfo (computed from version 1.9) Requires: php-pcre Requires: php-xml %description IMCE is an image/file uploader and browser that supports personal directories and quota. This package provides the following Drupal modules: * %{module} %prep %setup -qn %{module} cp -p %{SOURCE1} . # Remove executable bit chmod a-x LICENSE.txt %build # Empty build section, nothing to build %install mkdir -pm 0755 %{buildroot}%{drupal7_modules}/%{module} cp -pr * %{buildroot}%{drupal7_modules}/%{module}/ %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc *.txt %{drupal7_modules}/%{module} %exclude %{drupal7_modules}/%{module}/*.txt %changelog * Wed May 21 2014 Peter Borsa - 1.9-1 - Initial package