|
%{?scl:%scl_package rubygem-%{gem_name}}
|
|
%{!?scl:%global pkg_name %{name}}
|
|
|
|
%global gem_name single_test
|
|
|
|
Name: %{?scl_prefix}rubygem-%{gem_name}
|
|
Version: 0.5.2
|
|
Release: 2%{?dist}
|
|
Summary: Rake tasks to invoke single tests/specs with rakish syntax
|
|
Group: Development/Languages
|
|
License: Public Domain
|
|
URL: http://github.com/grosser/single_test
|
|
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
%if 0%{?fedora} > 18
|
|
Requires: %{?scl_prefix}ruby(release)
|
|
%else
|
|
Requires: %{?scl_prefix}ruby(abi) = 1.9.1
|
|
%endif
|
|
Requires: %{?scl_prefix}ruby(rubygems)
|
|
Requires: %{?scl_prefix}rubygem(rake) > 0.9
|
|
|
|
BuildRequires: %{?scl_prefix}rubygems-devel
|
|
BuildRequires: %{?scl_prefix}rubygems
|
|
|
|
BuildArch: noarch
|
|
|
|
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
|
|
|
%description
|
|
Runs a single test/spec via rake.
|
|
|
|
|
|
%package doc
|
|
Summary: Documentation for %{pkg_name}
|
|
Group: Documentation
|
|
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
Documentation for %{pkg_name}
|
|
|
|
%prep
|
|
%{?scl:scl enable %{scl} "}
|
|
gem unpack %{SOURCE0}
|
|
%{?scl:"}
|
|
|
|
%setup -q -D -T -n %{gem_name}-%{version}
|
|
|
|
%{?scl:scl enable %{scl} "}
|
|
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
%{?scl:"}
|
|
|
|
%build
|
|
mkdir -p .%{gem_dir}
|
|
|
|
# Create the gem as gem install only works on a gem file
|
|
%{?scl:scl enable %{scl} "}
|
|
gem build %{gem_name}.gemspec
|
|
%{?scl:"}
|
|
|
|
# gem install installs into a directory. We set that to be a local
|
|
# directory so that we can move it into the buildroot in %%install
|
|
%{?scl:scl enable %{scl} "}
|
|
gem install --local --install-dir ./%{gem_dir} \
|
|
--force --rdoc %{gem_name}-%{version}.gem
|
|
%{?scl:"}
|
|
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
cp -pa .%{gem_dir}/* \
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
%files
|
|
%dir %{gem_instdir}
|
|
%{gem_libdir}
|
|
%exclude %{gem_cache}
|
|
%{gem_spec}
|
|
|
|
%exclude %{gem_instdir}/spec
|
|
|
|
%files doc
|
|
%doc %{gem_docdir}
|
|
%doc %{gem_instdir}/Readme.md
|
|
%doc %{gem_instdir}/VERSION
|
|
%exclude %{gem_instdir}/Gemfile*
|
|
%exclude %{gem_instdir}/Rakefile
|
|
%exclude %{gem_instdir}/*gemspec
|
|
|
|
%changelog
|
|
* Thu Jun 13 2013 Lukas Zapletal <lzap+git@redhat.com> 0.5.2-2
|
|
- post gem2rpm changes (lzap+git@redhat.com)
|
|
|
|
* Thu Jun 13 2013 Lukas Zapletal <lzap+git@redhat.com> 0.5.2-1
|
|
- new package built with tito
|
|
|