rubygem-rb-inotify/rubygem-rb-inotify.spec

62 lines
1.5 KiB
RPMSpec
Raw Permalink Normal View History

2020-08-25 14:23:18 +08:00
%global gem_name rb-inotify
Name: rubygem-%{gem_name}
2022-07-28 12:17:03 +08:00
Version: 0.10.1
2020-08-25 14:23:18 +08:00
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
2022-07-28 12:17:03 +08:00
* Thu Jul 28 2022 hkgy <kaguyahatu@outlook.com> - 0.10.1-1
- Update to 0.10.1
2020-08-25 14:23:18 +08:00
* Tue Aug 18 2020 huangyangke <huangyangke@huawei.com> - 0.10.0-1
- package init