# 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.8.17 Release: 3%{?dist} Group: Development/Languages License: MIT URL: http://compass-style.org Source0: http://gemcutter.org/downloads/compass-0.8.17.gem BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rubygems BuildRequires(check): rubygem(rake) BuildRequires(check): rubygem(haml) >= 2.2.0 Requires: ruby(abi) = %{rubyabi} Requires: rubygems Requires: rubygem(haml) >= 2.2.0 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 %build %install rm -rf %{buildroot} mkdir -p %{buildroot}%{gemdir} gem install --local --install-dir %{buildroot}%{gemdir} \ --force %{SOURCE0} --no-ri mkdir -p %{buildroot}/%{_bindir} mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir} rmdir %{buildroot}%{gemdir}/bin 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 run_tests # rpmlint will complain about these files rm -rf test/fixtures/stylesheets/*/sass/.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}/CHANGELOG.markdown %doc %{geminstdir}/VERSION.yml %doc %{geminstdir}/REVISION %doc %{geminstdir}/deps.rip %doc %{geminstdir}/examples %doc %{geminstdir}/test %doc %{gemdir}/doc/%{gemname}-%{version} %{gemdir}/cache/%{gemname}-%{version}.gem %{gemdir}/specifications/%{gemname}-%{version}.gemspec %changelog * 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