diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-10 14:33:18 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-10 14:33:18 +0000 |
commit | 130b54ad6f8eb7879625533450f85fc20d4294b2 (patch) | |
tree | 952b0fa820217b8d8199c9de8ef83276264b69ed | |
parent | ee2a367f8754663cf7c22c99668a4a4dd56f7a55 (diff) |
automatic import of rubygem-posix-spawnopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | rubygem-posix-spawn.spec | 77 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 79 insertions, 0 deletions
@@ -0,0 +1 @@ +/posix-spawn-0.3.15.gem diff --git a/rubygem-posix-spawn.spec b/rubygem-posix-spawn.spec new file mode 100644 index 0000000..781c670 --- /dev/null +++ b/rubygem-posix-spawn.spec @@ -0,0 +1,77 @@ +%global _empty_manifest_terminate_build 0 +%global gem_name posix-spawn +Name: rubygem-posix-spawn +Version: 0.3.15 +Release: 1 +Summary: posix_spawnp(2) for ruby +License: MIT +URL: https://github.com/rtomayko/posix-spawn +Source0: https://rubygems.org/gems/posix-spawn-0.3.15.gem + +BuildRequires: ruby +BuildRequires: ruby-devel +BuildRequires: rubygems +BuildRequires: rubygems-devel +BuildRequires: rsync +BuildRequires: gcc +BuildRequires: gdb +Provides: rubygem-posix-spawn + +%description +posix-spawn uses posix_spawnp(2) for faster process spawning + +%package help +Summary: Development documents and examples for posix-spawn +Provides: rubygem-posix-spawn-doc +BuildArch: noarch + +%description help +posix-spawn uses posix_spawnp(2) for faster process spawning + +%prep +%autosetup -n posix-spawn-0.3.15 +gem spec %{SOURCE0} -l --ruby > posix-spawn.gemspec + +%build +gem build posix-spawn.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-posix-spawn -f filelist.lst +%dir %{gem_instdir} +%{gem_instdir}/* +%{gem_extdir_mri} +%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 @@ +9c5e345b3139ab02bdebac3148cd54ec posix-spawn-0.3.15.gem |