| |
@@ -3,26 +3,19 @@
|
| |
|
| |
Summary: Generate XPath expressions from Ruby
|
| |
Name: rubygem-%{gem_name}
|
| |
- Version: 2.0.0
|
| |
- Release: 7%{?dist}
|
| |
- Group: Development/Languages
|
| |
+ Version: 3.0.0
|
| |
+ Release: 1%{?dist}
|
| |
License: MIT
|
| |
- URL: http://github.com/jnicklas/xpath
|
| |
+ URL: https://github.com/teamcapybara/xpath
|
| |
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
| |
- # Fix test suite in RSpec 3.
|
| |
- # https://github.com/jnicklas/xpath/pull/74.patch
|
| |
- Patch0: rubygem-xpath-2.0.0-fix-test-for-rspec-3.patch
|
| |
Requires: ruby(release)
|
| |
Requires: ruby(rubygems)
|
| |
- Requires: rubygem(nokogiri) >= 1.3
|
| |
- Requires: rubygem(nokogiri) < 2
|
| |
BuildRequires: ruby(release)
|
| |
BuildRequires: rubygems-devel
|
| |
BuildRequires: rubygem(rspec-core)
|
| |
BuildRequires: rubygem(rspec-mocks)
|
| |
BuildRequires: rubygem(rspec-expectations)
|
| |
- BuildRequires: rubygem(nokogiri) >= 1.3
|
| |
- BuildRequires: rubygem(nokogiri) < 2
|
| |
+ BuildRequires: rubygem(nokogiri)
|
| |
BuildArch: noarch
|
| |
|
| |
%description
|
| |
@@ -31,7 +24,6 @@
|
| |
|
| |
%package doc
|
| |
Summary: Documentation for %{name}
|
| |
- Group: Documentation
|
| |
Requires: %{name} = %{version}-%{release}
|
| |
BuildArch: noarch
|
| |
|
| |
@@ -51,9 +43,8 @@
|
| |
|
| |
%check
|
| |
pushd .%{gem_instdir}
|
| |
- # kill bundler
|
| |
- sed -i '2d' spec/spec_helper.rb
|
| |
- patch -p1 < %{PATCH0}
|
| |
+ sed -i "/^require 'pry'$/ s/^/#/" spec/spec_helper.rb
|
| |
+
|
| |
rspec -Ilib spec
|
| |
popd
|
| |
|
| |
@@ -61,7 +52,7 @@
|
| |
%dir %{gem_instdir}
|
| |
%doc %{gem_instdir}/README.md
|
| |
%{gem_libdir}
|
| |
- %{gem_cache}
|
| |
+ %exclude %{gem_cache}
|
| |
%{gem_spec}
|
| |
|
| |
%files doc
|
| |
@@ -70,6 +61,9 @@
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Mon May 14 2018 Pavel Valena <pvalena@redhat.com> - 3.0.0-1
|
| |
+ - Update to XPath 3.0.0.
|
| |
+
|
| |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-7
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
| |
|
| |
I think this is good try.