%global drupal_release 7 %global drupal_base %{_datadir}/drupal%{drupal_release} %global drupal_themedir %{drupal_base}/themes %global drupal_themename ninesixty Name: drupal7-theme-%{drupal_themename} Version: 1.0 Release: 1%{?dist} Summary: Ninesixty theme for Drupal %{drupal_release} Group: Applications/Publishing License: GPLv2+ and GPL+ or MIT URL: http://drupal.org/project/ninesixty Source0: http://ftp.drupal.org/files/projects/%{drupal_themename}-%{drupal_release}.x-%{version}.tar.gz Source1: LICENSE.txt BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: drupal7 %description This theme is based on the 960 Grid System by Nathan Smith. NineSixty is a base theme with all the files provided by the 960 Grid System. From the sketch sheets to all the styles from the framework are included. There are a few modifications so it better fits into Drupal. All the details are inside the README.txt file. %prep %setup -qn %{drupal_themename} # Remove empty index.html and others find -size 0 | xargs rm -f cp -p %{SOURCE1} . %build %install rm -rf $RPM_BUILD_ROOT %{__mkdir} -p $RPM_BUILD_ROOT/%{drupal_themedir}/%{drupal_themename} cp -pr . $RPM_BUILD_ROOT/%{drupal_themedir}/%{drupal_themename} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc LICENSE.txt README.txt %{drupal_themedir}/%{drupal_themename} %changelog * Sun Feb 5 2012 Peter Borsa - 1.0-1 - Initial packaging.