[packages/ruby-slop] Up to 4.10.1

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


commit 13aeee6554be8b5628bdefcebe46050972799c8f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Mar 28 00:30:18 2026 +0100

    Up to 4.10.1

 ruby-slop.spec | 25 +++++++------------------
 1 file changed, 7 insertions(+), 18 deletions(-)
---
diff --git a/ruby-slop.spec b/ruby-slop.spec
index 8b1bf05..9ed87f6 100644
--- a/ruby-slop.spec
+++ b/ruby-slop.spec
@@ -5,16 +5,15 @@
 %define	pkgname	slop
 Summary:	Option gathering made easy
 Name:		ruby-%{pkgname}
-Version:	3.4.6
-Release:	2
-License:	GPL v2+ or Ruby
+Version:	4.10.1
+Release:	1
+License:	MIT
 Group:		Development/Languages
 Source0:	http://rubygems.org/downloads/%{pkgname}-%{version}.gem
-# Source0-md5:	a7c04794a673c5953a73dd3f0b5bf043
+# Source0-md5:	9cdc41fa13227c6a755ceb392854f786
 URL:		http://github.com/injekt/slop
 BuildRequires:	rpm-rubyprov
-BuildRequires:	rpmbuild(macros) >= 1.656
-BuildRequires:	sed >= 4.0
+BuildRequires:	rpmbuild(macros) >= 1.665
 %if %{with tests}
 BuildRequires:	ruby-minitest
 BuildRequires:	ruby-rake
@@ -25,14 +24,6 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 A simple DSL for gathering options and parsing the command line.
 
-%package doc
-Summary:	Documentation for %{name}
-Group:		Documentation
-Requires:	%{name} = %{version}-%{release}
-
-%description doc
-Documentation for %{name}.
-
 %prep
 %setup -q -n %{pkgname}-%{version}
 
@@ -40,9 +31,7 @@ Documentation for %{name}.
 %__gem_helper spec
 
 %if %{with tests}
-# if running via testrb, modify the check for invoked testing binary
-sed -i 's|Usage: rake_test_loader \[options\]|Usage: testrb: SlopTest#test_printing_help_with__help____true [options]|' test/slop_test.rb
-testrb -Ilib test/*_test.rb
+%{__ruby} -Ilib -Itest -e 'Dir["test/*_test.rb"].each{|f| require "./#{f}"}'
 %endif
 
 %install
@@ -56,7 +45,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README.md CHANGES.md LICENSE
+%doc README.md CHANGELOG.md LICENSE
 %{ruby_vendorlibdir}/slop.rb
 %{ruby_vendorlibdir}/slop
 %{ruby_specdir}/slop-%{version}.gemspec
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-slop.git/commitdiff/13aeee6554be8b5628bdefcebe46050972799c8f



More information about the pld-cvs-commit mailing list