[packages/ruby-rubygems] up to 2.6.13
glen
glen at pld-linux.org
Thu Oct 5 21:58:13 CEST 2017
commit afc235a179848442c9b53914a1cb82f8333775fe
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Wed Sep 27 00:06:11 2017 +0300
up to 2.6.13
ruby-rubygems.spec | 87 ++++++++++++++++++++++++++++++------------------------
1 file changed, 49 insertions(+), 38 deletions(-)
---
diff --git a/ruby-rubygems.spec b/ruby-rubygems.spec
index cb6e2af..97f7d3c 100644
--- a/ruby-rubygems.spec
+++ b/ruby-rubygems.spec
@@ -1,28 +1,25 @@
+#
+# Conditional build:
+%bcond_with doc # don't build ri/rdoc
+
%define pkgname rubygems
Summary: Ruby package manager
Summary(pl.UTF-8): Zarządca pakietów dla języka Ruby
Name: ruby-%{pkgname}
-Version: 2.0.0
-Release: 0.1
+Version: 2.6.13
+Release: 1
License: GPL
Group: Development/Languages
-Source0: http://production.cf.rubygems.org/rubygems/%{pkgname}-%{version}.tgz
-# Source0-md5: 89ce467eb2d55657e9965a46559acbcf
-Patch0: %{name}-setup.patch
-Patch1: %{name}-ruby-1.9.2.patch
-URL: http://rubygems.org/
-BuildRequires: ruby >= 1:1.8.7
-BuildRequires: ruby-devel
-BuildRequires: sed >= 4.0
-%{?ruby_mod_ver_requires_eq}
+Source0: https://rubygems.org/gems/rubygems-update-%{version}.gem
+# Source0-md5: cad98b534ae8e1d65f9a5cf00fdaa89f
+URL: https://rubygems.org/
+BuildRequires: rpm-rubyprov
+BuildRequires: rpmbuild(macros) >= 1.665
+Provides: rubygems = %{version}
Obsoletes: ruby-RubyGems
-Provides: ruby-RubyGems
-#BuildArch: noarch
+BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-# nothing to be placed there. we're not noarch only because of ruby packaging
-%define _enable_debug_packages 0
-
%description
RubyGems is the Ruby standard for publishing and managing third party
libraries.
@@ -56,30 +53,38 @@ Ruby Gem package manager HTML documentation.
Dokumentacja w formacie HTML dla menadżera pakietów Ruby.
%prep
-%setup -q -n rubygems-%{version}
-#%patch0 -p1
-%patch1 -p1
+%setup -q -n %{pkgname}-%{version}
%build
+# write .gemspec
+%__gem_helper spec
+
+%if %{with doc}
rdoc --ri --op ri lib
rdoc --op rdoc lib
rm -f ri/created.rid
# external packages?
rm -rf ri/{*Config,Kernel,OpenSSL,TempIO}
+%endif
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{ruby_ridir},%{ruby_rdocdir}}
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+cp -p %{pkgname}-update-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
-ruby setup.rb \
- --vendor \
- --no-rdoc \
- --no-ri \
- --destdir=$RPM_BUILD_ROOT
+# please use system ca-certificagtes
+%{__rm} -r $RPM_BUILD_ROOT%{ruby_vendorlibdir}/rubygems/ssl_certs
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir},%{_bindir}}
+cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
+
+%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}
-cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
+%endif
%clean
rm -rf $RPM_BUILD_ROOT
@@ -87,20 +92,25 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README*
-%attr(755,root,root) %{_bindir}/*
-%{ruby_vendorlibdir}/*.rb
+%attr(755,root,root) %{_bindir}/gem
+%attr(755,root,root) %{_bindir}/update_rubygems
+#%%dir %{_libdir}/ruby/gems
%dir %{ruby_vendorlibdir}/rubygems
+%{ruby_vendorlibdir}/*.rb
%{ruby_vendorlibdir}/rubygems/*.rb
-%dir %{ruby_vendorlibdir}/rubygems/commands
-%dir %{ruby_vendorlibdir}/rubygems/ext
-%dir %{ruby_vendorlibdir}/rubygems/package
-%dir %{ruby_vendorlibdir}/rubygems/package/tar_reader
-%{ruby_vendorlibdir}/rubygems/package/tar_reader/*.rb
-%{ruby_vendorlibdir}/rubygems/*/*.rb
-%dir %{ruby_vendorlibdir}/rbconfig
-%{ruby_vendorlibdir}/rbconfig/datadir.rb
-#%%dir %{_libdir}/ruby/gems
-
+%{ruby_vendorlibdir}/rubygems/commands
+%{ruby_vendorlibdir}/rubygems/core_ext
+%{ruby_vendorlibdir}/rubygems/ext
+%{ruby_vendorlibdir}/rubygems/package
+%{ruby_vendorlibdir}/rubygems/request
+%{ruby_vendorlibdir}/rubygems/request_set
+%{ruby_vendorlibdir}/rubygems/resolver
+%{ruby_vendorlibdir}/rubygems/security
+%{ruby_vendorlibdir}/rubygems/source
+%{ruby_vendorlibdir}/rubygems/util
+%{ruby_specdir}/rubygems-update-%{version}.gemspec
+
+%if %{with doc}
%files ri
%defattr(644,root,root,755)
%{ruby_ridir}/Gem*
@@ -108,3 +118,4 @@ rm -rf $RPM_BUILD_ROOT
%files rdoc
%defattr(644,root,root,755)
%{ruby_rdocdir}/%{name}-%{version}
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-rubygems.git/commitdiff/afc235a179848442c9b53914a1cb82f8333775fe
More information about the pld-cvs-commit
mailing list