diff --git a/rb-inotify-0.10.0.gem b/rb-inotify-0.10.0.gem new file mode 100644 index 0000000..a5b9a85 Binary files /dev/null and b/rb-inotify-0.10.0.gem differ diff --git a/rubygem-rb-inotify.spec b/rubygem-rb-inotify.spec new file mode 100644 index 0000000..d2c7c18 --- /dev/null +++ b/rubygem-rb-inotify.spec @@ -0,0 +1,58 @@ +%global gem_name rb-inotify +Name: rubygem-%{gem_name} +Version: 0.10.0 +Release: 1 +Summary: A Ruby wrapper for Linux inotify, using FFI +License: MIT +URL: https://github.com/guard/rb-inotify +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +BuildRequires: ruby(release) rubygems-devel ruby rubygem(ffi) rubygem-rspec-core +BuildRequires: rubygem(concurrent-ruby) rubygem-rspec-expectations +BuildArch: noarch +%description +A Ruby wrapper for Linux inotify, using FFI. + +%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 "/bundler\/setup/ s/^/#/" spec/spec_helper.rb +rspec -rpathname spec +popd + +%files +%dir %{gem_instdir} +%exclude %{gem_instdir}/.* +%license %{gem_instdir}/LICENSE.md +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%{gem_instdir}/Gemfile +%doc %{gem_instdir}/README.md +%{gem_instdir}/Rakefile +%{gem_instdir}/rb-inotify.gemspec +%{gem_instdir}/spec + +%changelog +* Tue Aug 18 2020 huangyangke - 0.10.0-1 +- package init diff --git a/rubygem-rb-inotify.yaml b/rubygem-rb-inotify.yaml new file mode 100644 index 0000000..81c0282 --- /dev/null +++ b/rubygem-rb-inotify.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: guard/rb-inotify +tag_prefix: "^v" +separator: "."