# Generated from compass-0.8.17.gem by gem2rpm -*- rpm-spec -*- %global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']") %global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) %global gemname compass %global geminstdir %{gemdir}/gems/%{gemname}-%{version} %global rubyabi 1.8 Name: rubygem-%{gemname} Summary: A Sass-based CSS Meta-Framework Version: 0.11.5 Release: 2%{?dist} Group: Development/Languages License: MIT URL: http://compass-style.org Source0: http://gemcutter.org/downloads/compass-%{version}.gem Patch1: compass-0.11.5-test-fixes.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rubygems BuildRequires: rubygem(rake) BuildRequires: rubygem(cucumber) BuildRequires: rubygem(mocha) BuildRequires: rubygem(chunky_png) BuildRequires: rubygem(timecop) BuildRequires: rubygem(haml) >= 3.1 Requires: ruby(abi) = %{rubyabi} Requires: rubygems Requires: rubygem(haml) >= 3.1 Requires: rubygem(chunky_png) Requires: rubygem(fssm) >= 0.2.7 BuildArch: noarch Provides: rubygem(%{gemname}) = %{version} %description A Sass-based CSS Meta-Framework that allows you to mix and match any of the following CSS frameworks: Compass Core, Blueprint, 960, Susy, YUI, and others. %prep %setup -q -c -T mkdir -p .%{gemdir} gem install --local --install-dir .%{gemdir} --bindir .%{_bindir} \ --force %{SOURCE0} pushd .%{geminstdir} %patch1 %build %install mkdir -p %{buildroot}%{gemdir} cp -a .%{gemdir}/* %{buildroot}%{gemdir}/ mkdir -p %{buildroot}/%{_bindir} cp -a .%{_bindir}/* %{buildroot}%{_bindir}/ find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x # rpmlint will complain about these files #rm %{buildroot}%{geminstdir}/frameworks/compass/stylesheets/compass/utilities/general/_tabs.sass %check pushd %{buildroot}/%{geminstdir} rake test # rpmlint will complain about these files rm -rf test/fixtures/stylesheets/*/sass/.sass-cache rm -rf .sass-cache popd %clean rm -rf %{buildroot} %files %defattr(-, root, root, -) %{_bindir}/compass %dir %{geminstdir} %{geminstdir}/frameworks %{geminstdir}/lib %{geminstdir}/bin %{geminstdir}/Rakefile %doc %{geminstdir}/LICENSE.markdown %doc %{geminstdir}/README.markdown %doc %{geminstdir}/VERSION.yml %doc %{geminstdir}/examples %doc %{geminstdir}/test %doc %{geminstdir}/features %doc %{geminstdir}/.yardoc %doc %{gemdir}/doc/%{gemname}-%{version} %{gemdir}/cache/%{gemname}-%{version}.gem %{gemdir}/specifications/%{gemname}-%{version}.gemspec %changelog * Wed Sep 28 2011 Mo Morsi <mmorsi@redhat.com> - 0.11.5-2 - include fssm and chunky_png dependencies * Wed Sep 28 2011 Mo Morsi <mmorsi@redhat.com> - 0.11.5-1 - update to latest upstream release * Tue Mar 29 2011 Mo Morsi <mmorsi@redhat.com> - 0.10.6-1 - update to latest upstream release * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Apr 14 2010 Mohammed Morsi <mmorsi@redhat.com> - 0.8.17-3 - file list fixes to remove duplicate files * Wed Apr 14 2010 Mohammed Morsi <mmorsi@redhat.com> - 0.8.17-2 - small fixes based on feedback - replace defines w/ globals - added check section / run tests * Wed Feb 03 2010 Mohammed Morsi <mmorsi@redhat.com> - 0.8.17-1 - Initial package