summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-10 17:24:21 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-10 17:24:21 +0000
commit6070bb39d2bf8eaa6097309f78739c0ce0ed807a (patch)
tree0c49ffebe8cf1b35ea890daad18d5d769f32083a
parentd9f85b04b5092a28fdf68fae11f7c80f8ee8b198 (diff)
automatic import of rubygem-fog-jsonopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--rubygem-fog-json.spec79
-rw-r--r--sources1
3 files changed, 81 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..de833f6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fog-json-1.2.0.gem
diff --git a/rubygem-fog-json.spec b/rubygem-fog-json.spec
new file mode 100644
index 0000000..7e8d9a7
--- /dev/null
+++ b/rubygem-fog-json.spec
@@ -0,0 +1,79 @@
+%global _empty_manifest_terminate_build 0
+%global gem_name fog-json
+Name: rubygem-fog-json
+Version: 1.2.0
+Release: 1
+Summary: JSON parsing for fog providers
+License: MIT
+URL: http://github.com/fog/fog-json
+Source0: https://rubygems.org/gems/fog-json-1.2.0.gem
+BuildArch: noarch
+
+Requires: rubygem-fog-core
+Requires: rubygem-multi_json
+BuildRequires: ruby
+BuildRequires: ruby-devel
+BuildRequires: rubygems
+BuildRequires: rubygems-devel
+BuildRequires: rsync
+Provides: rubygem-fog-json
+
+%description
+Extraction of the JSON parsing tools shared between a
+ number of providers in the 'fog' gem.
+
+%package help
+Summary: Development documents and examples for fog-json
+Provides: rubygem-fog-json-doc
+BuildArch: noarch
+
+%description help
+Extraction of the JSON parsing tools shared between a
+ number of providers in the 'fog' gem.
+
+%prep
+%autosetup -n fog-json-1.2.0
+gem spec %{SOURCE0} -l --ruby > fog-json.gemspec
+
+%build
+gem build fog-json.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-fog-json -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..25b3412
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+7974a577a68d6bc655005bd1d206d818 fog-json-1.2.0.gem