!1 init rubygem-rb-inotify package
Merge pull request !1 from PokeHuang/master
This commit is contained in:
commit
96a01d71a9
BIN
rb-inotify-0.10.0.gem
Normal file
BIN
rb-inotify-0.10.0.gem
Normal file
Binary file not shown.
58
rubygem-rb-inotify.spec
Normal file
58
rubygem-rb-inotify.spec
Normal file
@ -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 <huangyangke@huawei.com> - 0.10.0-1
|
||||
- package init
|
||||
4
rubygem-rb-inotify.yaml
Normal file
4
rubygem-rb-inotify.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: guard/rb-inotify
|
||||
tag_prefix: "^v"
|
||||
separator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user