From 125173afcc01f6ea62cccf348c626fc2800f4ff9 Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Tue, 12 Nov 2019 14:30:29 +0100 Subject: [PATCH] Update to listen 3.2.0 also enhance .gitignore file. --- .gitignore | 12 ++---------- rubygem-listen.spec | 26 +++++++++----------------- sources | 4 ++-- 3 files changed, 13 insertions(+), 29 deletions(-) diff --git a/.gitignore b/.gitignore index 59586bd..18e112e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,2 @@ -/listen-0.4.7-specs.tar.gz -/listen-0.4.7.gem -/listen-2.7.9.gem -/listen-2.7.11.gem -/listen-3.0.3.gem -/rubygem-listen-3.0.3-tests.tgz -/listen-3.0.6.gem -/rubygem-listen-3.0.6-tests.tgz -/listen-3.1.5.gem -/rubygem-listen-3.1.5-tests.tgz +/listen-*.gem +/rubygem-listen-*-tests.tgz diff --git a/rubygem-listen.spec b/rubygem-listen.spec index cffd9bc..1429833 100644 --- a/rubygem-listen.spec +++ b/rubygem-listen.spec @@ -2,19 +2,15 @@ %global gem_name listen Name: rubygem-%{gem_name} -Version: 3.1.5 -Release: 8%{?dist} +Version: 3.2.0 +Release: 1%{?dist} Summary: Listen to file modifications License: MIT URL: https://github.com/guard/listen Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem -# git clone https://github.com/guard/listen.git && cd listen -# git checkout v3.1.5 && tar czvf rubygem-listen-3.1.5-tests.tgz spec -Source1: rubygem-listen-%{version}-tests.tgz -# Fix test suite on Ruby 2.6. -# https://github.com/guard/listen/commit/466594233b9ee4377cc9f3a845ab8c60b33134a8 -# https://github.com/guard/listen/commit/2908365366792ac3ba010fa32bc3be2beaed451a -Patch0: rubygem-listen-3.1.5-Fix-issue-with-2.6.patch +# git clone https://github.com/guard/listen.git --no-checkout +# cd listen && git archive -v -o rubygem-listen-3.2.0-spec.txz v3.2.0 spec +Source1: rubygem-listen-%{version}-spec.txz BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby @@ -40,21 +36,14 @@ Documentation for %{name}. %setup -q -n %{gem_name}-%{version} -b 1 pushd %{_builddir} -%patch0 -p1 popd # Remove the hardcoded dependencies. We don't have them in Fedora # (except rb-inotify), they are platform specifis and not needed. # https://github.com/guard/listen/pull/54 -%gemspec_remove_dep -g rb-fsevent [">= 0.9.4", "~> 0.9"] +%gemspec_remove_dep -g rb-fsevent [">= 0.10.3", "~> 0.10"] sed -i '/def self.usable?$/a return false' lib/listen/adapter/darwin.rb -# Remove ruby_dep dependency. We don't need to warn about Ruby versions. -%gemspec_remove_dep -g ruby_dep "~> 1.2" -sed -i '/ruby_dep/ s/^/#/' lib/listen.rb -sed -i '/RubyDep/ s/^/#/' lib/listen.rb - - %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec @@ -103,6 +92,9 @@ popd %doc %{gem_instdir}/README.md %changelog +* Tue Nov 12 2019 Pavel Valena - 3.2.0-1 +- Update to listen 3.2.0. + * Fri Jul 26 2019 Fedora Release Engineering - 3.1.5-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index 564d33f..a290142 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -526af08cfe7d65d44a8680fd5d89d97e listen-3.1.5.gem -062926e3343312d89c20e6955f54f135 rubygem-listen-3.1.5-tests.tgz +SHA512 (listen-3.2.0.gem) = 6aade02e09bc212154646c0d69f105cd4203bf6d537ba1d0ccdf9e0fa075451918d79dcdd4fdd6c3cca7d5b0dd1df1344568d0deb7d444c31ba5df3c0c8a38fe +SHA512 (rubygem-listen-3.2.0-spec.txz) = 687d6c507bc0fe64c69866964ab0ff8091bb810df84bd59184a936f92cdea6cc4e7c3626789bcc0a673558903645256d95c76151a74eedf10c5c6c3986e87a54