Blame SPECS/rubygem-rb-inotify.spec

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