Blame SPECS/rubygem-sass.spec

2e7fc6
%{?scl:%scl_package rubygem-%{gem_name}}
2e7fc6
%{!?scl:%global pkg_name %{name}}
2e7fc6
2e7fc6
# Generated from sass-3.1.4.gem by gem2rpm -*- rpm-spec -*-
2e7fc6
%global gem_name sass
2e7fc6
2e7fc6
Summary: A powerful but elegant CSS compiler that makes CSS fun again
2e7fc6
Name: %{?scl_prefix}rubygem-%{gem_name}
2e7fc6
Version: 3.3.8
2e7fc6
Release: 1%{?dist}
2e7fc6
Group: Development/Languages
2e7fc6
License: MIT
2e7fc6
URL: http://sass-lang.com/
2e7fc6
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
2e7fc6
# Minitest 5
2e7fc6
# https://github.com/sass/sass/pull/1282
2e7fc6
Patch0: rubygem-sass-minitest5.patch
2e7fc6
Requires: %{?scl_prefix_ruby}ruby(release)
2e7fc6
Requires: %{?scl_prefix_ruby}ruby(rubygems)
2e7fc6
Requires: %{?scl_prefix_ruby}ruby
2e7fc6
BuildRequires: %{?scl_prefix_ruby}ruby(release)
2e7fc6
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
2e7fc6
BuildRequires: %{?scl_prefix_ruby}ruby
2e7fc6
BuildRequires: %{?scl_prefix_ruby}rubygem(minitest)
2e7fc6
BuildArch: noarch
2e7fc6
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
2e7fc6
2e7fc6
%description
2e7fc6
Sass makes CSS fun again. Sass is an extension of CSS3, adding
2e7fc6
nested rules, variables, mixins, selector inheritance, and more.
2e7fc6
It's translated to well-formatted, standard CSS using the
2e7fc6
command line tool or a web-framework plugin.
2e7fc6
2e7fc6
2e7fc6
%package doc
2e7fc6
Summary: Documentation for %{pkg_name}
2e7fc6
Group: Documentation
2e7fc6
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
2e7fc6
BuildArch: noarch
2e7fc6
2e7fc6
%description doc
2e7fc6
Documentation for %{pkg_name}
2e7fc6
2e7fc6
2e7fc6
%prep
2e7fc6
%setup -n %{pkg_name}-%{version} -q -c -T
2e7fc6
%{?scl:scl enable %scl - << \EOF}
2e7fc6
%gem_install -n %{SOURCE0}
2e7fc6
%{?scl:EOF}
2e7fc6
2e7fc6
pushd .%{gem_instdir}
2e7fc6
# Remove bundled rubygem-listener:
2e7fc6
# https://github.com/nex3/sass/issues/458
2e7fc6
rm -rf vendor
2e7fc6
%patch0 -p1
2e7fc6
popd
2e7fc6
2e7fc6
%build
2e7fc6
2e7fc6
%install
2e7fc6
mkdir -p %{buildroot}%{gem_dir}
2e7fc6
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
2e7fc6
2e7fc6
mkdir -p %{buildroot}%{_bindir}
2e7fc6
cp -a .%{_bindir}/* %{buildroot}%{_bindir}/
2e7fc6
2e7fc6
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
2e7fc6
2e7fc6
%check
2e7fc6
pushd .%{gem_instdir}
2e7fc6
export LANG=en_US.utf8
2e7fc6
%{?scl:scl enable %scl - << \EOF}
2e7fc6
ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
2e7fc6
%{?scl:EOF}
2e7fc6
popd
2e7fc6
2e7fc6
%files
2e7fc6
%dir %{gem_instdir}
2e7fc6
%{_bindir}/sass
2e7fc6
%{_bindir}/sass-convert
2e7fc6
%{_bindir}/scss
2e7fc6
%{gem_instdir}/bin
2e7fc6
%{gem_libdir}
2e7fc6
%exclude %{gem_instdir}/.*
2e7fc6
%{gem_instdir}/init.rb
2e7fc6
%dir %{gem_instdir}/rails
2e7fc6
%{gem_instdir}/rails/init.rb
2e7fc6
%dir %{gem_instdir}/extra
2e7fc6
%{gem_instdir}/extra/update_watch.rb
2e7fc6
%{gem_instdir}/VERSION
2e7fc6
%{gem_instdir}/VERSION_NAME
2e7fc6
%{gem_instdir}/VERSION_DATE
2e7fc6
%doc %{gem_instdir}/MIT-LICENSE
2e7fc6
%doc %{gem_instdir}/CONTRIBUTING
2e7fc6
%doc %{gem_instdir}/README.md
2e7fc6
%doc %{gem_instdir}/REVISION
2e7fc6
%exclude %{gem_cache}
2e7fc6
%{gem_spec}
2e7fc6
2e7fc6
%files doc
2e7fc6
%doc %{gem_docdir}
2e7fc6
%{gem_instdir}/Rakefile
2e7fc6
%{gem_instdir}/test
2e7fc6
2e7fc6
%changelog
2e7fc6
* Mon Jan 26 2015 Josef Stribny <jstribny@redhat.com> - 3.3.8-1
2e7fc6
- Update to 3.3.8
2e7fc6
2e7fc6
* Fri Mar 21 2014 Vít Ondruch <vondruch@redhat.com> - 3.2.6-2
2e7fc6
- Rebuid against new scl-utils to depend on -runtime package.
2e7fc6
  Resolves: rhbz#1069109
2e7fc6
2e7fc6
* Wed Jun 12 2013 Josef Stribny <jstribny@redhat.com> - 3.2.6-1
2e7fc6
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
2e7fc6
- Update to sass 3.2.6.
2e7fc6
- Own extra and rails directories (rhbz#911648).
2e7fc6
2e7fc6
* Thu Apr 25 2013 Vít Ondruch <vondruch@redhat.com> - 3.1.20-3
2e7fc6
- Own extra and rails directories (rhbz#911648, rhbz#956236).
2e7fc6
2e7fc6
* Thu Jul 26 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 3.1.20-2
2e7fc6
- Rebuilt for SCL.
2e7fc6
2e7fc6
* Mon Jul 23 2012 Vít Ondruch <vondruch@redhat.com> - 3.1.20-1
2e7fc6
- Update to sass 3.1.20.
2e7fc6
2e7fc6
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.7-7
2e7fc6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2e7fc6
2e7fc6
* Tue Jan 31 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 3.1.7-6
2e7fc6
- Rebuilt for Ruby 1.9.3.
2e7fc6
2e7fc6
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.7-5
2e7fc6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2e7fc6
2e7fc6
* Fri Jul 22 2011 Chris Lalancette <clalance@redhat.com> - 3.1.4-4
2e7fc6
- Add patches to make sass work in Fedora
2e7fc6
2e7fc6
* Thu Jul 21 2011 Mo Morsi <mmorsi@redhat.com> - 3.1.4-3
2e7fc6
- changed ruby(fssm) dep to rubygem(fssm)
2e7fc6
2e7fc6
* Thu Jul 14 2011 Mo Morsi <mmorsi@redhat.com> - 3.1.4-2
2e7fc6
- corrected license, whitespace fixes
2e7fc6
2e7fc6
* Wed Jul 13 2011 Mo Morsi <mmorsi@redhat.com> - 3.1.4-1
2e7fc6
- Initial package