62 lines
1.5 KiB
RPMSpec
62 lines
1.5 KiB
RPMSpec
%global gem_name rb-inotify
|
|
Name: rubygem-%{gem_name}
|
|
Version: 0.10.1
|
|
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
|
|
* Thu Jul 28 2022 hkgy <kaguyahatu@outlook.com> - 0.10.1-1
|
|
- Update to 0.10.1
|
|
|
|
* Tue Aug 18 2020 huangyangke <huangyangke@huawei.com> - 0.10.0-1
|
|
- package init
|