From 18328d0069a67854befb00a6af7ce56d57b805b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Tue, 24 Jul 2012 13:40:05 +0200 Subject: [PATCH] Update to rb-inotify 0.8.8. --- .gitignore | 1 + rubygem-rb-inotify.spec | 51 +++++++++++++++++++++++++++-------------- sources | 2 +- 3 files changed, 36 insertions(+), 18 deletions(-) diff --git a/.gitignore b/.gitignore index c6fb842..406b47d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /rb-inotify-0.8.1.gem +/rb-inotify-0.8.8.gem diff --git a/rubygem-rb-inotify.spec b/rubygem-rb-inotify.spec index 5dcf26d..d3ccf95 100644 --- a/rubygem-rb-inotify.spec +++ b/rubygem-rb-inotify.spec @@ -1,17 +1,20 @@ %global gem_name rb-inotify +%global rubyabi 1.9.1 Summary: A Ruby wrapper for Linux's inotify, using FFI Name: rubygem-%{gem_name} -Version: 0.8.1 -Release: 6%{?dist} +Version: 0.8.8 +Release: 1%{?dist} Group: Development/Languages License: MIT URL: http://github.com/nex3/rb-inotify Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem +Requires: ruby(abi) = %{rubyabi} Requires: ruby(rubygems) -Requires: ruby(abi) = 1.9.1 Requires: rubygem(ffi) +BuildRequires: ruby(abi) = %{rubyabi} BuildRequires: rubygems-devel +BuildRequires: ruby BuildArch: noarch Provides: rubygem(%{gem_name}) = %{version} @@ -19,36 +22,50 @@ Provides: rubygem(%{gem_name}) = %{version} 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 +mkdir -p .%{gem_dir} +gem install --local --install-dir .%{gem_dir} \ + --force %{SOURCE0} %build %install -rm -rf %{buildroot} mkdir -p %{buildroot}%{gem_dir} -gem install --local --install-dir %{buildroot}%{gem_dir} \ - --force --rdoc %{SOURCE0} -rm -f %{buildroot}/%{gem_instdir}/.gitignore -rm -f %{buildroot}/%{gem_instdir}/.yardopts - -%clean -rm -rf %{buildroot} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ %files -%defattr(-, root, root, -) %dir %{gem_instdir} +%exclude %{gem_instdir}/.* %{gem_libdir} -%doc %{gem_instdir}/Rakefile %doc %{gem_docdir} -%doc %{gem_instdir}/README.md %doc %{gem_instdir}/MIT-LICENSE -%doc %{gem_instdir}/VERSION -%doc %{gem_instdir}/%{gem_name}.gemspec -%{gem_cache} +%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 Jul 24 2012 Vít Ondruch - 0.8.8-1 +- Update to rb-inotify 0.8.8. + * Sat Jul 21 2012 Fedora Release Engineering - 0.8.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild diff --git a/sources b/sources index 7a35632..751c569 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -bdda71fa9eddcc0aa16811001f797b33 rb-inotify-0.8.1.gem +81609a5253f033951c80721b721f0065 rb-inotify-0.8.8.gem