Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 2de243191882bbaab59861189d80b25c > files > 3

drupal6-mobile_tools-2.3-2.fc15.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 mobile_tools

Name:    drupal%{drupalver}-%{modname}
Version: 2.3
Release: 2%{?dist}
Summary: The Mobile Tools provides some tools to assist in making a site mobile
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
# A corrected license file, upstream issue: http://drupal.org/node/1216278  
Source2: LICENSE.txt
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires:  %{drupal} >= 6.0

%description
The Mobile Tools module provides Drupal developers
with some tools to assist in making a site mobile

%prep
%setup -qn %{modname}
chmod -x README.txt
chmod -x INSTALL.txt

%build
cp %{SOURCE1} .
cp %{SOURCE2} .

%install
rm -rf %{buildroot}
install -d %{buildroot}%{drupaldir}/modules/%{modname}
find . -type f -exec install -m 0644 -D '{}' %{buildroot}%{drupaldir}/modules/%{modname}/'{}' \;
find %{buildroot} -size 0 -delete

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
# Remember to include other documentation text here as well
%doc INSTALL.txt LICENSE.txt README.txt %{name}-fedora-README.txt
# Remember to exclude all documentation texts from above
%exclude %{drupaldir}/modules/%{modname}/INSTALL.txt
%exclude %{drupaldir}/modules/%{modname}/LICENSE.txt
%exclude %{drupaldir}/modules/%{modname}/README.txt
%exclude %{drupaldir}/modules/%{modname}/%{name}-fedora-README.txt
%{drupaldir}/modules/%{modname}

%changelog
* Tue Jul 12 2011 Peter Borsa <peter.borsa@gmail.com> - 2.3-2
- A comment has added, see above the Source2 line. 

* Tue Jul  5 2011 Peter Borsa <peter.borsa@gmail.com> - 2.3-1
- Initial packaging.