Blame SPECS/rubygem-uglifier.spec

074a53
%{?scl:%scl_package rubygem-%{gem_name}}
074a53
%{!?scl:%global pkg_name %{name}}
074a53
074a53
# Generated from uglifier-1.2.6.gem by gem2rpm -*- rpm-spec -*-
074a53
%global gem_name uglifier
074a53
074a53
Summary: Ruby wrapper for UglifyJS JavaScript compressor
074a53
Name: %{?scl_prefix}rubygem-%{gem_name}
074a53
Version: 2.4.0
074a53
Release: 1%{?dist}
074a53
Group: Development/Languages
074a53
# Uglifier itself is MIT
074a53
# the bundled JavaScript from UglifyJS is BSD
074a53
License: MIT and BSD
074a53
URL: http://github.com/lautis/uglifier
074a53
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
074a53
Requires: %{?scl_prefix_ruby}ruby(release)
074a53
Requires: %{?scl_prefix_ruby}ruby(rubygems)
074a53
Requires: %{?scl_prefix}rubygem(execjs) >= 0.3.0
074a53
Requires: %{?scl_prefix_ruby}rubygem(json) => 1.8
074a53
BuildRequires: %{?scl_prefix_ruby}ruby(release)
074a53
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
074a53
BuildRequires: %{?scl_prefix_ruby}ruby
074a53
BuildRequires: %{?scl_prefix}rubygem(execjs) >= 0.3.0
074a53
BuildRequires: %{?scl_prefix_ruby}rubygem(json) => 1.8
074a53
BuildRequires: %{?scl_prefix}rubygem(rspec)
074a53
BuildRequires: %{?scl_prefix}rubygem(therubyracer)
074a53
BuildRequires: %{?scl_prefix_v8}v8
074a53
BuildArch: noarch
074a53
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
074a53
074a53
%description
074a53
Ruby wrapper for UglifyJS JavaScript compressor.
074a53
074a53
074a53
%package doc
074a53
Summary: Documentation for %{pkg_name}
074a53
Group: Documentation
074a53
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
074a53
BuildArch: noarch
074a53
074a53
%description doc
074a53
Documentation for %{pkg_name}
074a53
074a53
%prep
074a53
%setup -n %{pkg_name}-%{version} -q -c -T
074a53
%{?scl:scl enable %scl - << \EOF}
074a53
%gem_install -n %{SOURCE0}
074a53
%{?scl:EOF}
074a53
074a53
%build
074a53
074a53
%install
074a53
mkdir -p %{buildroot}%{gem_dir}
074a53
cp -a .%{gem_dir}/* \
074a53
        %{buildroot}%{gem_dir}/
074a53
074a53
%check
074a53
pushd .%{gem_instdir}
074a53
074a53
# source_map is not part of the collection, ged rid of source_map in specs
074a53
sed -i "s/require 'source_map'//"  spec/spec_helper.rb
074a53
rm spec/source_map_spec.rb
074a53
074a53
%{?scl:scl enable %scl %scl_v8 - << \EOF}
074a53
rspec spec
074a53
%{?scl:EOF}
074a53
popd
074a53
074a53
074a53
%files
074a53
%dir %{gem_instdir}
074a53
%doc %{gem_instdir}/LICENSE.txt
074a53
%{gem_libdir}
074a53
%exclude %{gem_instdir}/.*
074a53
%exclude %{gem_cache}
074a53
%exclude %{gem_instdir}/gemfiles
074a53
%{gem_spec}
074a53
074a53
%files doc
074a53
%doc %{gem_docdir}
074a53
%{gem_instdir}/Gemfile
074a53
%{gem_instdir}/Rakefile
074a53
%doc %{gem_instdir}/README.md
074a53
%{gem_instdir}/spec
074a53
%{gem_instdir}/%{gem_name}.gemspec
074a53
%doc %{gem_instdir}/CHANGELOG.md
074a53
%doc %{gem_instdir}/CONTRIBUTING.md
074a53
074a53
%changelog
074a53
* Mon Jan 26 2015 Josef Stribny <jstribny@redhat.com> - 2.4.0-1
074a53
- Update to 2.4.0
074a53
074a53
* Mon Feb 17 2014 Josef Stribny <jstribny@redhat.com> - 2.2.1-4
074a53
- Depend on scldevel(v8) virtual provide
074a53
074a53
* Thu Jan 23 2014 Vít Ondruch <vondruch@redhat.com> - 2.2.1-3
074a53
- Fix rubygems dependency.
074a53
074a53
* Tue Nov 26 2013 Josef Stribny <jstribny@redhat.com> - 2.2.1-2
074a53
- Use v8 scl macro
074a53
074a53
* Mon Oct 21 2013 Josef Stribny <jstribny@redhat.com> - 2.2.1-1
074a53
- Update to uglifier 2.2.1
074a53
074a53
* Wed Jun 12 2013 Josef Stribny <jstribny@redhat.com> - 1.2.6-3
074a53
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
074a53
074a53
* Thu Jul 26 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.6-2
074a53
- Imported from Fedora again.
074a53
074a53
* Mon Jul 16 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.6-1
074a53
- Initial package