|
|
|
%global gem_name rb-inotify
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 0.9.7
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Summary: A Ruby wrapper for Linux's inotify, using FFI
|
|
|
|
Group: Development/Languages
|
|
|
|
License: MIT
|
|
|
|
URL: http://github.com/nex3/rb-inotify
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
# The following two patches make rubygem-rerun test suite passing.
|
|
|
|
# When closing a notifier from within the callback-block of a watch, then
|
|
|
|
# the process call on the notifier will fail.
|
|
|
|
# https://github.com/nex3/rb-inotify/issues/41
|
|
|
|
Patch0: rubygem-rb-inotify-0.9.7-Prevent-error-when-closing-notifier-in-watch-callback.patch
|
|
|
|
# Avoid crashing on Ruby 2.3.1 when fd is closed.
|
|
|
|
# https://github.com/nex3/rb-inotify/pull/59
|
|
|
|
Patch1: rubygem-rb-inotify-0.9.7-Avoid-crashing-when-fd-is-closed.patch
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: ruby
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
A Ruby wrapper for Linux's inotify, using FFI.
|
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -c -T
|
|
|
|
%gem_install -n %{SOURCE0}
|
|
|
|
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
popd
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
cp -a .%{gem_dir}/* \
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
%files
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%exclude %{gem_instdir}/.*
|
|
|
|
%license %{gem_instdir}/MIT-LICENSE
|
|
|
|
%{gem_libdir}
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%doc %{gem_instdir}/VERSION
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
%{gem_instdir}/%{gem_name}.gemspec
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Tue Sep 06 2016 Vít Ondruch <vondruch@redhat.com> - 0.9.7-2
|
|
|
|
- Avoid crashing when fd is closed.
|
|
|
|
|
|
|
|
* Fri Jul 01 2016 Vít Ondruch <vondruch@redhat.com> - 0.9.7-1
|
|
|
|
- Update to rb-inotify 0.9.7.
|
|
|
|
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue Oct 07 2014 Josef Stribny <jstribny@redhat.com> - 0.9.5-1
|
|
|
|
- Update to 0.9.5
|
|
|
|
|
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Mar 07 2013 Vít Ondruch <vondruch@redhat.com> - 0.8.8-3
|
|
|
|
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
|
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue Jul 24 2012 Vít Ondruch <vondruch@redhat.com> - 0.8.8-1
|
|
|
|
- Update to rb-inotify 0.8.8.
|
|
|
|
|
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Feb 03 2012 Vít Ondruch <vondruch@redhat.com> - 0.8.1-5
|
|
|
|
- Rebuilt for Ruby 1.9.3.
|
|
|
|
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon Oct 11 2010 Michal Fojtik <mfojtik@patashnik> - 0.8.1-2
|
|
|
|
- Removed unused macros
|
|
|
|
- Moved Rakefile into doc
|
|
|
|
|
|
|
|
* Tue Oct 05 2010 Michal Fojtik <mfojtik@patashnik> - 0.8.1-1
|
|
|
|
- Initial package
|