initial commit

This commit is contained in:
Mamoru TASAKA 2014-12-02 16:19:48 +09:00
commit 027d1bb277
3 changed files with 94 additions and 0 deletions

1
.gitignore vendored
View file

@ -0,0 +1 @@
/power_assert-0.2.2.gem

92
rubygem-power_assert.spec Normal file
View file

@ -0,0 +1,92 @@
%global gem_name power_assert
Name: rubygem-%{gem_name}
Version: 0.2.2
Release: 2%{?dist}
Summary: Power Assert for Ruby
License: Ruby or BSD
URL: https://github.com/k-tsj/power_assert
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: rubygems-devel
BuildRequires: rubygem(test-unit)
%if 0%{?fedora} < 21
Requires: ruby(release)
Requires: ruby(rubygems)
Provides: rubygem(%{gem_name}) = %{version}
%endif
BuildArch: noarch
%description
Power Assert for Ruby. Power Assert shows each value of variables and method
calls in the expression. It is useful for testing, providing which value
wasn't correct when the condition is not satisfied.
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}.
%prep
gem unpack %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%build
gem build %{gem_name}.gemspec
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
# cleanup
pushd %{buildroot}%{gem_instdir}
rm -rf \
.gitignore .travis.yml \
Gemfile LEGAL \
Rakefile \
*gemspec \
test/
popd
%check
pushd .%{gem_instdir}
ruby -Ilib:. \
-e \
'gem "test-unit"; Dir.glob("test/test*.rb").each {|f| require f}'
popd
%files
%dir %{gem_instdir}
%license %{gem_instdir}/BSDL
%license %{gem_instdir}/COPYING
%doc %{gem_instdir}/README.rdoc
%{gem_libdir}
%{gem_spec}
%exclude %{gem_cache}
%files doc
%doc %{gem_docdir}
%changelog
* Tue Dec 2 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.2.2-2
- Misc cleanup
* Thu Nov 27 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.2.2-1
- 0.2.2
- Kill unneeded BR
* Sun Nov 16 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.2.1-1
- Initial package

View file

@ -0,0 +1 @@
10d3de6325ff9a11cbf92b9328a0673f power_assert-0.2.2.gem