diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-10 14:13:18 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-10 14:13:18 +0000 |
commit | 74ebf63407053c23a8e1f6adb6fe252059b255b0 (patch) | |
tree | 4ee5f806eddece0c24c1a5fc0d72850badf48b9f | |
parent | d98defc79bc6a7a70a7464b3914a59a75db2b3d2 (diff) |
automatic import of rubygem-hiera-vaultopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | rubygem-hiera-vault.spec | 76 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 78 insertions, 0 deletions
@@ -0,0 +1 @@ +/hiera-vault-0.2.2.gem diff --git a/rubygem-hiera-vault.spec b/rubygem-hiera-vault.spec new file mode 100644 index 0000000..18e9634 --- /dev/null +++ b/rubygem-hiera-vault.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +%global gem_name hiera-vault +Name: rubygem-hiera-vault +Version: 0.2.2 +Release: 1 +Summary: Module for using vault as a hiera backend +License: Apache-2.0 +URL: http://github.com/jsok/hiera-vault +Source0: https://rubygems.org/gems/hiera-vault-0.2.2.gem +BuildArch: noarch + +Requires: rubygem-vault +BuildRequires: ruby +BuildRequires: ruby-devel +BuildRequires: rubygems +BuildRequires: rubygems-devel +BuildRequires: rsync +Provides: rubygem-hiera-vault + +%description +Hiera backend for looking up secrets stored in Vault + +%package help +Summary: Development documents and examples for hiera-vault +Provides: rubygem-hiera-vault-doc +BuildArch: noarch + +%description help +Hiera backend for looking up secrets stored in Vault + +%prep +%autosetup -n hiera-vault-0.2.2 +gem spec %{SOURCE0} -l --ruby > hiera-vault.gemspec + +%build +gem build hiera-vault.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-hiera-vault -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 @@ -0,0 +1 @@ +25fb95f1a7dee3b94941fa7f99973eec hiera-vault-0.2.2.gem |