From 14a11bb261dbc4bb87b18da19053d28616eda071 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Tue, 18 Mar 2014 20:14:22 +0900 Subject: [PATCH] initial checkin --- .gitignore | 1 + rubygem-rspec-support.spec | 80 ++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 82 insertions(+) create mode 100644 rubygem-rspec-support.spec diff --git a/.gitignore b/.gitignore index e69de29..d13e497 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/rspec-support-3.0.0.beta2.gem diff --git a/rubygem-rspec-support.spec b/rubygem-rspec-support.spec new file mode 100644 index 0000000..04e5879 --- /dev/null +++ b/rubygem-rspec-support.spec @@ -0,0 +1,80 @@ +%global gem_name rspec-support + +%global mainver 3.0.0 +%global prever .beta2 + +%global mainrel 3 +%global prerpmver %(echo "%{?prever}" | sed -e 's|\\.||g') + + +Name: rubygem-%{gem_name} +Version: %{mainver} +Release: %{?prever:0.}%{mainrel}%{?prever:.%{prerpmver}}%{?dist} + +Summary: Common functionality to Rspec series +Group: Development/Languages +License: MIT +URL: https://github.com/rspec/rspec-support +Source0: https://rubygems.org/gems/%{gem_name}-%{mainver}%{?prever}.gem +Requires: ruby(release) +Requires: ruby(rubygems) +BuildRequires: ruby(release) +BuildRequires: rubygems-devel + +BuildArch: noarch +# Need fix +Provides: rubygem(%{gem_name}) = %{version}-%{release} + +%description +`RSpec::Support` provides common functionality to `RSpec::Core`, +`RSpec::Expectations` and `RSpec::Mocks`. It is considered +suitable for internal use only at this time. + +%package doc +Summary: Documentation for %{name} +Group: Documentation +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +Documentation for %{name} + +%global version_orig %{version} +%global version %{version_orig}%{?prever} + +%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 -pa .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +# No tests available currently + +%files +%dir %{gem_instdir} +%doc %{gem_instdir}/[A-Z]* + +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} + +%changelog +* Tue Mar 18 2014 Mamoru TASAKA - 3.0.0-0.2.beta1 +- 3.0.0 beta 2 + +* Mon Feb 10 2014 Mamoru TASAKA - 3.0.0-0.2.beta1 +- Modify Provides EVR + +* Mon Feb 03 2014 Mamoru TASAKA - 3.0.0-0.1.beta1 +- Initial package diff --git a/sources b/sources index e69de29..4e0fe75 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +12b9389f23a6bcee54cfaedd694b32b4 rspec-support-3.0.0.beta2.gem