From 2058a4be0880250f2b6e8fabe7a45315a27cadea Mon Sep 17 00:00:00 2001 From: Mamoru Tasaka Date: Wed, 2 Jan 2013 14:56:12 +0900 Subject: [PATCH] 2.12.1 --- .gitignore | 1 + rubygem-rspec-expectations.spec | 66 +++++++++++++++++++-------------- sources | 2 +- 3 files changed, 41 insertions(+), 28 deletions(-) diff --git a/.gitignore b/.gitignore index 10bb02b..9dfd539 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /rspec-expectations-2.6.0.gem /rspec-expectations-2.8.0.gem /rspec-expectations-2.11.3.gem +/rspec-expectations-2.12.1.gem diff --git a/rubygem-rspec-expectations.spec b/rubygem-rspec-expectations.spec index ec8ad14..3566ec1 100644 --- a/rubygem-rspec-expectations.spec +++ b/rubygem-rspec-expectations.spec @@ -1,14 +1,11 @@ -%global gemdir %{gem_dir} -%global majorver 2.11.3 +%global majorver 2.12.1 #%%global preminorver .rc6 %global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||') %global fullver %{majorver}%{?preminorver} %global fedorarel 1 -%global gemname rspec-expectations -%global gem_name %gemname -%global geminstdir %{gem_instdir} +%global gem_name rspec-expectations %global rubyabi 1.9.1 @@ -19,14 +16,14 @@ %{!?need_bootstrap: %global need_bootstrap %{need_bootstrap_set}} Summary: Rspec-2 expectations (should and matchers) -Name: rubygem-%{gemname} +Name: rubygem-%{gem_name} Version: %{majorver} Release: %{?preminorver:0.}%{fedorarel}%{?preminorver:%{rpmminorver}}%{?dist} Group: Development/Languages License: MIT URL: http://github.com/rspec/rspec-expectations -Source0: http://rubygems.org/gems/%{gemname}-%{fullver}.gem +Source0: http://rubygems.org/gems/%{gem_name}-%{fullver}.gem BuildRequires: ruby(abi) = %{rubyabi} BuildRequires: rubygems-devel @@ -36,7 +33,7 @@ BuildRequires: rubygem(minitest) %endif Requires: ruby(abi) = %{rubyabi} Requires: rubygem(diff-lcs) -Provides: rubygem(%{gemname}) = %{version}-%{release} +Provides: rubygem(%{gem_name}) = %{version}-%{release} BuildArch: noarch %description @@ -55,52 +52,67 @@ This package contains documentation for %{name}. %prep %setup -q -c -T -mkdir -p .%{gemdir} +TOPDIR=$(pwd) +mkdir tmpunpackdir +pushd tmpunpackdir + +gem unpack %{SOURCE0} +cd %{gem_name}-%{version} +gem specification -l --ruby %{SOURCE0} > %{gem_name}.gemspec +gem build %{gem_name}.gemspec +mv %{gem_name}-%{version}.gem $TOPDIR + +popd +rm -rf tmpunpackdir + +%build +mkdir -p .%{gem_dir} gem install \ -V \ --local \ - --install-dir .%{gemdir} \ + --install-dir .%{gem_dir} \ --force \ --rdoc \ - %{SOURCE0} + %{gem_name}-%{version}.gem -chmod 0644 .%{gemdir}/cache/%{gemname}-%{fullver}.gem - -%build +#chmod 0644 ./%{gem_cache} %install -mkdir -p %{buildroot}%{gemdir} -cp -a .%{gemdir}/* %{buildroot}%{gemdir}/ +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ # cleanups -rm -f %{buildroot}%{geminstdir}/{.document,.gitignore,.travis.yml,.yardopts} +rm -f %{buildroot}%{gem_instdir}/{.document,.gitignore,.travis.yml,.yardopts} %if 0%{?need_bootstrap} < 1 %check -pushd .%{geminstdir} +pushd .%{gem_instdir} ruby -rubygems -Ilib/ -S rspec spec/ popd %endif %files %defattr(-,root,root,-) -%dir %{geminstdir} +%dir %{gem_instdir} -%doc %{geminstdir}/License.txt -%doc %{geminstdir}/*.md -%{geminstdir}/lib/ +%doc %{gem_instdir}/License.txt +%doc %{gem_instdir}/*.md +%{gem_instdir}/lib/ -%{gemdir}/cache/%{gemname}-%{fullver}.gem -%{gemdir}/specifications/%{gemname}-%{fullver}.gemspec +%exclude %{gem_cache} +%{gem_spec} %files doc %defattr(-,root,root,-) -%{gemdir}/doc/%{gemname}-%{fullver} -%{geminstdir}/features/ -%{geminstdir}/spec/ +%{gem_docdir} +%{gem_instdir}/features/ +%exclude %{gem_instdir}/spec/ %changelog +* Wed Jan 2 2013 Mamoru TASAKA - 2.12.1-1 +- 2.12.1 + * Thu Oct 11 2012 Mamoru Tasaka - 2.11.3-1 - 2.11.3 diff --git a/sources b/sources index 487d28a..5a1040e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -6e9bf578efaf8018ed136e570ec4a0f5 rspec-expectations-2.11.3.gem +e318b42e00a559a7348c0021383b1554 rspec-expectations-2.12.1.gem