[packages/ruby-compass] new, version 0.12.5

glen glen at pld-linux.org
Mon Dec 8 12:58:41 CET 2014


commit ba66646d182d1d4605c6efbb2e6c54ae99a4c87c
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Dec 8 13:57:59 2014 +0200

    new, version 0.12.5
    
    based on fedora spec a8a101c

 ruby-compass.spec | 92 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 92 insertions(+)
---
diff --git a/ruby-compass.spec b/ruby-compass.spec
new file mode 100644
index 0000000..864c78f
--- /dev/null
+++ b/ruby-compass.spec
@@ -0,0 +1,92 @@
+#
+# Conditional build:
+%bcond_with	tests		# build without tests
+
+%define pkgname compass
+Summary:	A Sass-based CSS Meta-Framework
+Name:		ruby-%{pkgname}
+Version:	0.12.5
+Release:	1
+License:	MIT
+Group:		Development/Languages
+Source0:	http://gemcutter.org/downloads/compass-%{version}.gem
+# Source0-md5:	8cd8ccbeebbba9ca592396e38498fb3e
+URL:		http://compass-style.org/
+BuildRequires:	rpm-rubyprov
+BuildRequires:	rpmbuild(macros) >= 1.656
+BuildRequires:	sed >= 4.0
+%if %{with tests}
+# For Testing
+BuildRequires:	rubygem(chunky_png)
+#BuildRequires: rubygem(cucumber)
+BuildRequires:	rubygem(diff-lcs)
+BuildRequires:	rubygem(minitest)
+BuildRequires:	rubygem(mocha)
+BuildRequires:	rubygem(sass)
+%endif
+Requires:	rubygem(chunky_png)
+Requires:	rubygem(fssm) >= 0.2.7
+Requires:	rubygem(haml) >= 3.1
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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 -n %{pkgname}-%{version}
+%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
+
+%build
+%if %{with tests}
+# Original test
+#find -type f -name *_test.rb | xargs testrb -Ilib:test
+# Only run the tests that run
+testrb -Ilib:test \
+./test/integrations/sprites_test.rb \
+./test/units/actions_test.rb \
+./test/units/command_line_test.rb \
+./test/units/compass_module_test.rb \
+./test/units/configuration_test.rb  \
+./test/units/sprites/engine_test.rb \
+./test/units/sprites/image_row_test.rb \
+./test/units/sprites/importer_test.rb \
+./test/units/sprites/layout_test.rb \
+./test/units/sprites/sprite_command_test.rb \
+./test/units/sprites/sprite_map_test.rb \
+
+# These tests fail for various reasons
+#./test/units/sprites/image_test.rb \
+#./test/units/sprites/row_fitter_test.rb \
+#./test/units/compiler_test.rb \
+#./test/units/compass_png_test.rb \
+#./test/units/sass_extensions_test.rb \
+#./test/integrations/compass_test.rb
+#./test/units/regressions_test.rb \
+
+# rpmlint will complain about these files
+rm -rf test/fixtures/stylesheets/*/sass/.sass-cache
+rm -rf .sass-cache
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{_bindir}}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/compass
+%doc LICENSE.markdown README.markdown VERSION.yml
+%{ruby_vendorlibdir}/compass.rb
+%{ruby_vendorlibdir}/compass
+%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-compass.git/commitdiff/ba66646d182d1d4605c6efbb2e6c54ae99a4c87c



More information about the pld-cvs-commit mailing list