summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-10 17:01:33 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-10 17:01:33 +0000
commitfbc9ff189970bca4f735a086037e43e3abfe1087 (patch)
treeac7b79c5f33a57aad0afe76e85b8ce126d82dc57
parent3833fb0056569cc8ae21de675daa0204868ad985 (diff)
automatic import of rubygem-bundler_extopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--rubygem-bundler_ext.spec76
-rw-r--r--sources1
3 files changed, 78 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..8e1bf8d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/bundler_ext-0.4.2.gem
diff --git a/rubygem-bundler_ext.spec b/rubygem-bundler_ext.spec
new file mode 100644
index 0000000..2e9cda6
--- /dev/null
+++ b/rubygem-bundler_ext.spec
@@ -0,0 +1,76 @@
+%global _empty_manifest_terminate_build 0
+%global gem_name bundler_ext
+Name: rubygem-bundler_ext
+Version: 0.4.2
+Release: 1
+Summary: Load system gems via Bundler DSL
+License: MIT
+URL: https://github.com/bundlerext/bundler_ext
+Source0: https://rubygems.org/gems/bundler_ext-0.4.2.gem
+BuildArch: noarch
+
+Requires: rubygem-bundler
+BuildRequires: ruby
+BuildRequires: ruby-devel
+BuildRequires: rubygems
+BuildRequires: rubygems-devel
+BuildRequires: rsync
+Provides: rubygem-bundler_ext
+
+%description
+Simple library leveraging the Bundler Gemfile DSL to load gems already on the system and managed by the systems package manager (like yum/apt)
+
+%package help
+Summary: Development documents and examples for bundler_ext
+Provides: rubygem-bundler_ext-doc
+BuildArch: noarch
+
+%description help
+Simple library leveraging the Bundler Gemfile DSL to load gems already on the system and managed by the systems package manager (like yum/apt)
+
+%prep
+%autosetup -n bundler_ext-0.4.2
+gem spec %{SOURCE0} -l --ruby > bundler_ext.gemspec
+
+%build
+gem build bundler_ext.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-bundler_ext -f filelist.lst
+%dir %{gem_instdir}
+%{gem_instdir}/*
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files help
+%{gem_docdir}/*
+
+%changelog
+* Fri Mar 10 2023 Ruby_Bot <Ruby_Bot@openeuler.org>
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..8d2c9d9
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+8a8954e23c0e3648f3d2c76ddd89a2a5 bundler_ext-0.4.2.gem