diff --git a/rubygem-xpath.spec b/rubygem-xpath.spec new file mode 100644 index 0000000..7517ef2 --- /dev/null +++ b/rubygem-xpath.spec @@ -0,0 +1,53 @@ +%global gem_name xpath +Name: rubygem-%{gem_name} +Version: 3.1.0 +Release: 1 +Summary: Generate XPath expressions from Ruby +License: MIT +URL: https://github.com/teamcapybara/xpath +Source0: https://rubygems.org/gems/xpath-%{version}.gem +BuildRequires: ruby(release) rubygems-devel rubygem-rspec-core rubygem-rspec-expectations +BuildRequires: rubygem(nokogiri) +BuildArch: noarch +%description +XPath is a Ruby DSL for generating XPath expressions. + +%package doc +Summary: Documentation for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch +%description doc +Documentation for %{name}. + +%prep +%setup -q -n %{gem_name}-%{version} + +%build +gem build ../%{gem_name}-%{version}.gemspec +%gem_install + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +%check +pushd .%{gem_instdir} +sed -i "/^require 'pry'$/ s/^/#/" spec/spec_helper.rb +rspec spec +popd + +%files +%dir %{gem_instdir} +%doc %{gem_instdir}/README.md +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%{gem_instdir}/spec + +%changelog +* Sat Aug 8 2020 yanan li - 3.1.0-1 +- Package init diff --git a/rubygem-xpath.yaml b/rubygem-xpath.yaml new file mode 100644 index 0000000..ec193e5 --- /dev/null +++ b/rubygem-xpath.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/teamcapybara/xpath.git +version_control: github +src_repo: teamcapybara/xpath +tag_prefix: "" +seperator: "." diff --git a/xpath-3.1.0.gem b/xpath-3.1.0.gem new file mode 100644 index 0000000..02ea2bf Binary files /dev/null and b/xpath-3.1.0.gem differ