[packages/ruby-listen] Up to 3.10.0

arekm arekm at pld-linux.org
Sat Mar 28 00:06:16 CET 2026


commit a25e5d719cddd803d4e20524a54142906ecea966
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Mar 28 00:05:20 2026 +0100

    Up to 3.10.0

 deps.patch       | 19 -------------------
 ruby-listen.spec | 32 +++++++++-----------------------
 2 files changed, 9 insertions(+), 42 deletions(-)
---
diff --git a/ruby-listen.spec b/ruby-listen.spec
index 175fd73..728268e 100644
--- a/ruby-listen.spec
+++ b/ruby-listen.spec
@@ -5,24 +5,18 @@
 %define	pkgname	listen
 Summary:	Listen to file modifications
 Name:		ruby-%{pkgname}
-Version:	2.7.11
-Release:	3
+Version:	3.10.0
+Release:	1
 License:	MIT
 Group:		Development/Languages
-Source0:	https://github.com/guard/listen/archive/v%{version}/%{pkgname}-%{version}.tar.gz
-# Source0-md5:	2b1378df84cd0e5ab94d172c3a92d70d
-Patch0:		deps.patch
+Source0:	https://rubygems.org/downloads/%{pkgname}-%{version}.gem
+# Source0-md5:	3f567f78d0328b7a9148e95497b1f30f
 URL:		https://github.com/guard/listen
 BuildRequires:	rpm-rubyprov
-BuildRequires:	rpmbuild(macros) >= 1.656
+BuildRequires:	rpmbuild(macros) >= 1.665
 %if %{with tests}
-BuildRequires:	ruby-bundler >= 1.3.5
-BuildRequires:	ruby-rake
-BuildRequires:	ruby-rspec >= 2.14
-BuildRequires:	ruby-rspec-retry
+BuildRequires:	ruby-rspec >= 3
 %endif
-Requires:	ruby-celluloid >= 0.15.2
-Requires:	ruby-celluloid-io >= 0.15.0
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -32,18 +26,10 @@ the changes. Works everywhere!
 
 %prep
 %setup -q -n %{pkgname}-%{version}
-%patch -P0 -p1
 
 %build
-# make gemspec self-contained
-ruby -r rubygems -e 'spec = eval(File.read("%{pkgname}.gemspec"))
-	File.open("%{pkgname}-%{version}.gemspec", "w") do |file|
-	file.puts spec.to_ruby_for_cache
-end'
-
-%if %{with tests}
-rspec spec
-%endif
+# write .gemspec
+%__gem_helper spec
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -56,7 +42,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README.md CHANGELOG.md
+%doc README.md CHANGELOG.md LICENSE.txt
 %{ruby_vendorlibdir}/%{pkgname}.rb
 %{ruby_vendorlibdir}/%{pkgname}
 %{ruby_specdir}/%{pkgname}-%{version}.gemspec
diff --git a/deps.patch b/deps.patch
deleted file mode 100644
index efa306e..0000000
--- a/deps.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-Remove the hardcoded dependencies.
-they are platform specific and not needed.
-
-https://github.com/guard/listen/pull/54
-
-the fix is committed, but visible in .gemspec:
-https://github.com/guard/listen/commit/2b7e3521629e75be13f703af89d66a8293921caf
-
---- listen-2.7.11/listen.gemspec~	2014-09-26 20:31:45.000000000 +0300
-+++ listen-2.7.11/listen.gemspec	2014-12-14 19:41:38.193631843 +0200
-@@ -22,8 +22,6 @@
-   s.required_ruby_version = '>= 1.9.3'
- 
-   s.add_dependency 'celluloid',  '>= 0.15.2'
--  s.add_dependency 'rb-fsevent', '>= 0.9.3'
--  s.add_dependency 'rb-inotify', '>= 0.9'
- 
-   s.add_development_dependency 'bundler', '>= 1.3.5'
-   s.add_development_dependency 'celluloid-io', '>= 0.15.0'
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-listen.git/commitdiff/a25e5d719cddd803d4e20524a54142906ecea966



More information about the pld-cvs-commit mailing list