diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-02-26 08:43:14 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-02-26 08:43:14 +0000 |
commit | 128b31bc17bcf7e073ee63c742ff5279981b3967 (patch) | |
tree | f311230d76af3a2a8105829a2649e37ea8274dae | |
parent | 706f68d15284d8f716f9847f10ad543dc5a4a0aa (diff) |
automatic import of rubygem-rails
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | rubygem-rails.spec | 88 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 90 insertions, 0 deletions
@@ -0,0 +1 @@ +/rails-7.0.4.2.gem diff --git a/rubygem-rails.spec b/rubygem-rails.spec new file mode 100644 index 0000000..d9f64ad --- /dev/null +++ b/rubygem-rails.spec @@ -0,0 +1,88 @@ +%global _empty_manifest_terminate_build 0 +%global gem_name rails +Name: rubygem-rails +Version: 7.0.4.2 +Release: 1 +Summary: Full-stack web application framework. +License: MIT +URL: https://rubyonrails.org +Source0: https://rubygems.org/gems/rails-7.0.4.2.gem +BuildArch: noarch + +Requires: rubygem-actioncable +Requires: rubygem-actionmailbox +Requires: rubygem-actionmailer +Requires: rubygem-actionpack +Requires: rubygem-actiontext +Requires: rubygem-actionview +Requires: rubygem-activejob +Requires: rubygem-activemodel +Requires: rubygem-activerecord +Requires: rubygem-activestorage +Requires: rubygem-activesupport +Requires: rubygem-bundler +Requires: rubygem-railties +BuildRequires: ruby +BuildRequires: ruby-devel +BuildRequires: rubygems +BuildRequires: rubygems-devel +BuildRequires: rsync +Provides: rubygem-rails + +%description +Ruby on Rails is a full-stack web framework optimized for programmer happiness and sustainable productivity. It encourages beautiful code by favoring convention over configuration. + +%package help +Summary: Development documents and examples for rails +Provides: rubygem-rails-doc +BuildArch: noarch + +%description help +Ruby on Rails is a full-stack web framework optimized for programmer happiness and sustainable productivity. It encourages beautiful code by favoring convention over configuration. + +%prep +%autosetup -n rails-7.0.4.2 +gem spec %{SOURCE0} -l --ruby > rails.gemspec + +%build +gem build rails.gemspec +%gem_install + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ +rsync -a --exclude=".*" .%{gem_dir}/* %{buildroot}%{gem_dir}/ +if [ -d .%{_bindir} ]; then + mkdir -p %{buildroot}%{_bindir} + cp -a .%{_bindir}/* %{buildroot}%{_bindir}/ +fi +if [ -d ext ]; then + mkdir -p %{buildroot}%{gem_extdir_mri}/%{gem_name} + if [ -d .%{gem_extdir_mri}/%{gem_name} ]; then + cp -a .%{gem_extdir_mri}/%{gem_name}/*.so %{buildroot}%{gem_extdir_mri}/%{gem_name} + else + cp -a .%{gem_extdir_mri}/*.so %{buildroot}%{gem_extdir_mri}/%{gem_name} +fi + cp -a .%{gem_extdir_mri}/gem.build_complete %{buildroot}%{gem_extdir_mri}/ + rm -rf %{buildroot}%{gem_instdir}/ext/ +fi +pushd %{buildroot} +touch filelist.lst +if [ -d %{buildroot}%{_bindir} ]; then + find .%{_bindir} -type f -printf "/%h/%f\n" >> filelist.lst +fi +popd +mv %{buildroot}/filelist.lst . + +%files -n rubygem-rails -f filelist.lst +%dir %{gem_instdir} +%{gem_instdir}/* +%exclude %{gem_cache} +%{gem_spec} + +%files help +%{gem_docdir}/* + +%changelog +* Sun Feb 26 2023 Ruby_Bot <Ruby_Bot@openeuler.org> +- Package Spec generated @@ -0,0 +1 @@ +24df1671c4f9c8c44760c2bd5a665bf6 rails-7.0.4.2.gem |