| |
@@ -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 @@
|
| |
%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 @@
|
| |
%doc %{gem_instdir}/README.md
|
| |
|
| |
%changelog
|
| |
+ * Tue Nov 12 2019 Pavel Valena <pvalena@redhat.com> - 3.2.0-1
|
| |
+ - Update to listen 3.2.0.
|
| |
+
|
| |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.5-8
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
| |
|
| |
also enhance .gitignore file.
To have latest listen gem in Fedora.
Up-to-date Koji scratch-build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=38965160
Up-to-date Copr build:
https://copr.fedorainfracloud.org/coprs/build/1093237
Checks:
errorsok