[packages/ruby-getoptlong] - new, no longer bundled in ruby 3

qboosh qboosh at pld-linux.org
Sun Jun 14 08:50:58 CEST 2026


commit 5cdd3e645b4d57147631ab65e6982e264d05ec1d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jun 14 08:50:53 2026 +0200

    - new, no longer bundled in ruby 3

 ruby-getoptlong.spec | 101 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 101 insertions(+)
---
diff --git a/ruby-getoptlong.spec b/ruby-getoptlong.spec
new file mode 100644
index 0000000..1d004b5
--- /dev/null
+++ b/ruby-getoptlong.spec
@@ -0,0 +1,101 @@
+#
+# Conditional build:
+%bcond_without	doc	# ri/rdoc documentation
+
+Summary:	GetoptLong for Ruby
+Summary(pl.UTF-8):	GetoptLong dla języka Ruby
+Name:		ruby-getoptlong
+Version:	0.2.1
+Release:	1
+License:	BSD
+Source0:	https://rubygems.org/downloads/getoptlong-%{version}.gem
+# Source0-md5:	ded8176bd043e45b082c05872fc513c3
+Group:		Development/Languages
+URL:		https://github.com/ruby/getoptlong
+BuildRequires:	rpm-rubyprov
+BuildRequires:	rpmbuild(macros) >= 1.665
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The GetoptLong class allows you to parse command line options
+similarly to the GNU getopt_long() C library call. Note, however, that
+GetoptLong is a pure Ruby implementation.
+
+%description -l pl.UTF-8
+Klasa GetoptLong pozwala analizować opcje linii poleceń, podobnie do
+wywołania getopt_long() biblioteki GNU C - jednak GetoptLong jest
+implementacją w czystym języku Ruby.
+
+%package rdoc
+Summary:	HTML documentation for Ruby getoptlong module
+Summary(pl.UTF-8):	Dokumentacja w formacie HTML dla modułu języka Ruby getoptlong
+Group:		Documentation
+Requires:	ruby >= 1:1.8.7-4
+
+%description rdoc
+HTML documentation for Ruby getoptlong module.
+
+%description rdoc -l pl.UTF-8
+Dokumentacja w formacie HTML dla modułu języka Ruby getoptlong.
+
+%package ri
+Summary:	ri documentation for Ruby getoptlong module
+Summary(pl.UTF-8):	Dokumentacja w formacie ri dla modułu języka Ruby getoptlong
+Group:		Documentation
+Requires:	ruby
+
+%description ri
+ri documentation for Ruby getoptlong module.
+
+%description ri -l pl.UTF-8
+Dokumentacja w formacie ri dla modułu języka Ruby getoptlong.
+
+%prep
+%setup -q -n getoptlong-%{version}
+
+%build
+%__gem_helper spec
+
+%if %{with doc}
+rdoc --ri --op ri lib
+rdoc --op rdoc lib
+%{__rm} ri/{cache.ri,created.rid}
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
+
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+cp -p getoptlong-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
+
+%if %{with doc}
+install -d $RPM_BUILD_ROOT{%{ruby_rdocdir}/%{name}-%{version},%{ruby_ridir}}
+cp -a rdoc/* $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
+cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
+%endif
+
+# install examples
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -p sample/getoptlong/*.rb $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE.txt README.md
+%{ruby_vendorlibdir}/getoptlong.rb
+%{ruby_specdir}/getoptlong-%{version}.gemspec
+%{_examplesdir}/%{name}-%{version}
+
+%if %{with doc}
+%files rdoc
+%defattr(644,root,root,755)
+%{ruby_rdocdir}/%{name}-%{version}
+
+%files ri
+%defattr(644,root,root,755)
+%{ruby_ridir}/GetoptLong
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-getoptlong.git/commitdiff/5cdd3e645b4d57147631ab65e6982e264d05ec1d



More information about the pld-cvs-commit mailing list